Class HasPrivilegesUserProfileErrors.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<HasPrivilegesUserProfileErrors.Builder>
co.elastic.clients.elasticsearch.security.has_privileges_user_profile.HasPrivilegesUserProfileErrors.Builder
- All Implemented Interfaces:
WithJson<HasPrivilegesUserProfileErrors.Builder>
,ObjectBuilder<HasPrivilegesUserProfileErrors>
- Enclosing class:
- HasPrivilegesUserProfileErrors
public static class HasPrivilegesUserProfileErrors.Builder extends WithJsonObjectBuilderBase<HasPrivilegesUserProfileErrors.Builder> implements ObjectBuilder<HasPrivilegesUserProfileErrors>
Builder for
HasPrivilegesUserProfileErrors
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description HasPrivilegesUserProfileErrors
build()
Builds aHasPrivilegesUserProfileErrors
.HasPrivilegesUserProfileErrors.Builder
count(long value)
Required - API name:count
HasPrivilegesUserProfileErrors.Builder
details(java.lang.String key, ErrorCause value)
Required - API name:details
HasPrivilegesUserProfileErrors.Builder
details(java.lang.String key, java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)
Required - API name:details
HasPrivilegesUserProfileErrors.Builder
details(java.util.Map<java.lang.String,ErrorCause> map)
Required - API name:details
protected HasPrivilegesUserProfileErrors.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
count
Required - API name:count
-
details
public final HasPrivilegesUserProfileErrors.Builder details(java.util.Map<java.lang.String,ErrorCause> map)Required - API name:details
Adds all entries of
map
todetails
. -
details
public final HasPrivilegesUserProfileErrors.Builder details(java.lang.String key, ErrorCause value)Required - API name:details
Adds an entry to
details
. -
details
public final HasPrivilegesUserProfileErrors.Builder details(java.lang.String key, java.util.function.Function<ErrorCause.Builder,ObjectBuilder<ErrorCause>> fn)Required - API name:details
Adds an entry to
details
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<HasPrivilegesUserProfileErrors.Builder>
-
build
Builds aHasPrivilegesUserProfileErrors
.- Specified by:
build
in interfaceObjectBuilder<HasPrivilegesUserProfileErrors>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-