Class CreateUserLegacyRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.security.CreateUserLegacyRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<CreateUserLegacyRequest.Builder,CreateUserLegacyRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class CreateUserLegacyRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<CreateUserLegacyRequest.Builder,CreateUserLegacyRequest>
Creates or replaces the specified user. Legacy API.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CreateUserLegacyRequest> Json deserializer forCreateUserLegacyRequeststatic final Endpoint<CreateUserLegacyRequest, CreateUserLegacyResponse, ErrorResponse> Endpoint "security.create_user_legacy". -
Method Summary
Modifier and TypeMethodDescriptionAPI name:attributesAPI name:backend_rolesbuilder()final StringAPI name:descriptionbooleanfinal Stringhash()API name:hashinthashCode()final Booleanhidden()API name:hiddenstatic CreateUserLegacyRequestAPI name:opendistro_security_rolesfinal Stringpassword()API name:passwordfinal Booleanreserved()API name:reservedvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Booleanstatic_()API name:staticCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.final Stringusername()Required - The name of the user to create.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
applyQueryParameters, errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forCreateUserLegacyRequest -
_ENDPOINT
public static final Endpoint<CreateUserLegacyRequest,CreateUserLegacyResponse, _ENDPOINTErrorResponse> Endpoint "security.create_user_legacy".
-
-
Method Details
-
of
public static CreateUserLegacyRequest of(Function<CreateUserLegacyRequest.Builder, ObjectBuilder<CreateUserLegacyRequest>> fn) -
attributes
API name:attributes -
backendRoles
API name:backend_roles -
description
API name:description -
hash
API name:hash -
opendistroSecurityRoles
API name:opendistro_security_roles -
password
API name:password -
reserved
API name:reserved -
static_
API name:static -
username
Required - The name of the user to create.API name:
username -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateUserLegacyRequest.Builder,CreateUserLegacyRequest> - Returns:
- a new builder instance.
-
builder
-
setupCreateUserLegacyRequestDeserializer
protected static void setupCreateUserLegacyRequestDeserializer(ObjectDeserializer<CreateUserLegacyRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-