Class CreateRoleRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.security.CreateRoleRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<CreateRoleRequest.Builder,CreateRoleRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class CreateRoleRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<CreateRoleRequest.Builder,CreateRoleRequest>
Creates or replaces the specified role.
-
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<CreateRoleRequest> Json deserializer forCreateRoleRequeststatic final Endpoint<CreateRoleRequest, CreateRoleResponse, ErrorResponse> Endpoint "security.create_role". -
Method Summary
Modifier and TypeMethodDescriptionstatic CreateRoleRequest.Builderbuilder()API name:cluster_permissionsfinal StringAPI name:descriptionbooleaninthashCode()final Booleanhidden()API name:hiddenfinal List<IndexPermission> API name:index_permissionsstatic CreateRoleRequestfinal Booleanreserved()API name:reservedfinal Stringrole()Required - The name of the role to create.voidserialize(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:staticfinal List<TenantPermission> API name:tenant_permissionsCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.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 forCreateRoleRequest -
_ENDPOINT
Endpoint "security.create_role".
-
-
Method Details
-
of
public static CreateRoleRequest of(Function<CreateRoleRequest.Builder, ObjectBuilder<CreateRoleRequest>> fn) -
clusterPermissions
API name:cluster_permissions -
description
API name:description -
indexPermissions
API name:index_permissions -
reserved
API name:reserved -
role
Required - The name of the role to create.API name:
role -
static_
API name:static -
tenantPermissions
API name:tenant_permissions -
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<CreateRoleRequest.Builder,CreateRoleRequest> - Returns:
- a new builder instance.
-
builder
-
setupCreateRoleRequestDeserializer
protected static void setupCreateRoleRequestDeserializer(ObjectDeserializer<CreateRoleRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-