Class CreateUserRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<CreateUserRequest.Builder>
org.opensearch.client.opensearch.security.CreateUserRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<CreateUserRequest.Builder,,CreateUserRequest> MutableBuilder<CreateUserRequest.Builder,,CreateUserRequest> ObjectBuilder<CreateUserRequest>
- Enclosing class:
CreateUserRequest
public static class CreateUserRequest.Builder
extends RequestBase.AbstractBuilder<CreateUserRequest.Builder>
implements CopyableBuilder<CreateUserRequest.Builder,CreateUserRequest>
Builder for
CreateUserRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionattributes(String key, String value) API name:attributesattributes(Map<String, String> map) API name:attributesbackendRoles(String value, String... values) API name:backend_rolesbackendRoles(List<String> list) API name:backend_rolesbuild()Builds aCreateUserRequest.copy()Create a new builderCopyableBuilderthat is a copy of this one.description(String value) API name:descriptionAPI name:hashAPI name:hiddenopendistroSecurityRoles(String value, String... values) API name:opendistro_security_rolesopendistroSecurityRoles(List<String> list) API name:opendistro_security_rolesAPI name:passwordAPI name:reservedprotected CreateUserRequest.Builderself()API name:staticRequired - The name of the user to create.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<CreateUserRequest.Builder,CreateUserRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<CreateUserRequest.Builder>
-
attributes
API name:attributesAdds all elements of
maptoattributes. -
attributes
API name:attributesAdds an entry to
attributes. -
backendRoles
API name:backend_rolesAdds all elements of
listtobackendRoles. -
backendRoles
API name:backend_rolesAdds one or more values to
backendRoles. -
description
API name:description -
hash
API name:hash -
opendistroSecurityRoles
API name:opendistro_security_rolesAdds all elements of
listtoopendistroSecurityRoles. -
opendistroSecurityRoles
@Nonnull public final CreateUserRequest.Builder opendistroSecurityRoles(String value, String... values) API name:opendistro_security_rolesAdds one or more values to
opendistroSecurityRoles. -
password
API name:password -
reserved
API name:reserved -
static_
API name:static -
username
Required - The name of the user to create.API name:
username -
build
Builds aCreateUserRequest.- Specified by:
buildin interfaceObjectBuilder<CreateUserRequest>- Throws:
NullPointerException- if some of the required fields are null.
-