Class HasPrivilegesUserProfileResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<HasPrivilegesUserProfileResponse.Builder>
co.elastic.clients.elasticsearch.security.HasPrivilegesUserProfileResponse.Builder
- All Implemented Interfaces:
WithJson<HasPrivilegesUserProfileResponse.Builder>
,ObjectBuilder<HasPrivilegesUserProfileResponse>
- Enclosing class:
- HasPrivilegesUserProfileResponse
public static class HasPrivilegesUserProfileResponse.Builder
extends WithJsonObjectBuilderBase<HasPrivilegesUserProfileResponse.Builder>
implements ObjectBuilder<HasPrivilegesUserProfileResponse>
Builder for
HasPrivilegesUserProfileResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aHasPrivilegesUserProfileResponse
.The subset of the requested profile IDs for which an error was encountered.errors
(Function<HasPrivilegesUserProfileErrors.Builder, ObjectBuilder<HasPrivilegesUserProfileErrors>> fn) The subset of the requested profile IDs for which an error was encountered.hasPrivilegeUids
(String value, String... values) Required - The subset of the requested profile IDs of the users that have all the requested privileges.hasPrivilegeUids
(List<String> list) Required - The subset of the requested profile IDs of the users that have all the requested privileges.protected HasPrivilegesUserProfileResponse.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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
hasPrivilegeUids
Required - The subset of the requested profile IDs of the users that have all the requested privileges.API name:
has_privilege_uids
Adds all elements of
list
tohasPrivilegeUids
. -
hasPrivilegeUids
public final HasPrivilegesUserProfileResponse.Builder hasPrivilegeUids(String value, String... values) Required - The subset of the requested profile IDs of the users that have all the requested privileges.API name:
has_privilege_uids
Adds one or more values to
hasPrivilegeUids
. -
errors
public final HasPrivilegesUserProfileResponse.Builder errors(@Nullable HasPrivilegesUserProfileErrors value) The subset of the requested profile IDs for which an error was encountered. It does not include the missing profile IDs or the profile IDs of the users that do not have all the requested privileges. This field is absent if empty.API name:
errors
-
errors
public final HasPrivilegesUserProfileResponse.Builder errors(Function<HasPrivilegesUserProfileErrors.Builder, ObjectBuilder<HasPrivilegesUserProfileErrors>> fn) The subset of the requested profile IDs for which an error was encountered. It does not include the missing profile IDs or the profile IDs of the users that do not have all the requested privileges. This field is absent if empty.API name:
errors
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<HasPrivilegesUserProfileResponse.Builder>
-
build
Builds aHasPrivilegesUserProfileResponse
.- Specified by:
build
in interfaceObjectBuilder<HasPrivilegesUserProfileResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-