Class HasPrivilegesUserProfileRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<HasPrivilegesUserProfileRequest.Builder>
co.elastic.clients.elasticsearch.security.HasPrivilegesUserProfileRequest.Builder
- All Implemented Interfaces:
WithJson<HasPrivilegesUserProfileRequest.Builder>,ObjectBuilder<HasPrivilegesUserProfileRequest>
- Enclosing class:
- HasPrivilegesUserProfileRequest
public static class HasPrivilegesUserProfileRequest.Builder extends RequestBase.AbstractBuilder<HasPrivilegesUserProfileRequest.Builder> implements ObjectBuilder<HasPrivilegesUserProfileRequest>
Builder for
HasPrivilegesUserProfileRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description HasPrivilegesUserProfileRequestbuild()Builds aHasPrivilegesUserProfileRequest.HasPrivilegesUserProfileRequest.Builderprivileges(PrivilegesCheck value)Required - API name:privilegesHasPrivilegesUserProfileRequest.Builderprivileges(java.util.function.Function<PrivilegesCheck.Builder,ObjectBuilder<PrivilegesCheck>> fn)Required - API name:privilegesprotected HasPrivilegesUserProfileRequest.Builderself()HasPrivilegesUserProfileRequest.Builderuids(java.lang.String value, java.lang.String... values)Required - A list of profile IDs.HasPrivilegesUserProfileRequest.Builderuids(java.util.List<java.lang.String> list)Required - A list of profile IDs.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
privileges
Required - API name:privileges -
privileges
public final HasPrivilegesUserProfileRequest.Builder privileges(java.util.function.Function<PrivilegesCheck.Builder,ObjectBuilder<PrivilegesCheck>> fn)Required - API name:privileges -
uids
Required - A list of profile IDs. The privileges are checked for associated users of the profiles.API name:
uidsAdds all elements of
listtouids. -
uids
public final HasPrivilegesUserProfileRequest.Builder uids(java.lang.String value, java.lang.String... values)Required - A list of profile IDs. The privileges are checked for associated users of the profiles.API name:
uidsAdds one or more values to
uids. -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<HasPrivilegesUserProfileRequest.Builder>
-
build
Builds aHasPrivilegesUserProfileRequest.- Specified by:
buildin interfaceObjectBuilder<HasPrivilegesUserProfileRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-