Class CreateRoleMappingRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.security.CreateRoleMappingRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<CreateRoleMappingRequest.Builder,CreateRoleMappingRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class CreateRoleMappingRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<CreateRoleMappingRequest.Builder,CreateRoleMappingRequest>
Creates or replaces the specified role mapping.
-
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<CreateRoleMappingRequest> Json deserializer forCreateRoleMappingRequestEndpoint "security.create_role_mapping". -
Method Summary
Modifier and TypeMethodDescriptionAPI name:and_backend_rolesAPI name:backend_rolesbuilder()final StringAPI name:descriptionbooleaninthashCode()final Booleanhidden()API name:hiddenhosts()API name:hostsstatic CreateRoleMappingRequestfinal Booleanreserved()API name:reservedfinal Stringrole()Required - The name of the role for which to create a role mapping.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.users()API name:usersMethods 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 forCreateRoleMappingRequest -
_ENDPOINT
public static final Endpoint<CreateRoleMappingRequest,CreateRoleMappingResponse, _ENDPOINTErrorResponse> Endpoint "security.create_role_mapping".
-
-
Method Details
-
of
public static CreateRoleMappingRequest of(Function<CreateRoleMappingRequest.Builder, ObjectBuilder<CreateRoleMappingRequest>> fn) -
andBackendRoles
API name:and_backend_roles -
backendRoles
API name:backend_roles -
description
API name:description -
hosts
API name:hosts -
reserved
API name:reserved -
role
Required - The name of the role for which to create a role mapping.API name:
role -
users
API name:users -
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<CreateRoleMappingRequest.Builder,CreateRoleMappingRequest> - Returns:
- a new builder instance.
-
builder
-
setupCreateRoleMappingRequestDeserializer
protected static void setupCreateRoleMappingRequestDeserializer(ObjectDeserializer<CreateRoleMappingRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-