Class CreateTenantRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.security.CreateTenantRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<CreateTenantRequest.Builder,CreateTenantRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class CreateTenantRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<CreateTenantRequest.Builder,CreateTenantRequest>
Creates or replaces the specified tenant.
-
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<CreateTenantRequest> Json deserializer forCreateTenantRequeststatic final Endpoint<CreateTenantRequest, CreateTenantResponse, ErrorResponse> Endpoint "security.create_tenant". -
Method Summary
Modifier and TypeMethodDescriptionstatic CreateTenantRequest.Builderbuilder()final StringAPI name:descriptionbooleaninthashCode()static CreateTenantRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringtenant()Required - The name of the tenant to create.Create 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 forCreateTenantRequest -
_ENDPOINT
Endpoint "security.create_tenant".
-
-
Method Details
-
of
public static CreateTenantRequest of(Function<CreateTenantRequest.Builder, ObjectBuilder<CreateTenantRequest>> fn) -
description
API name:description -
tenant
Required - The name of the tenant to create.API name:
tenant -
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<CreateTenantRequest.Builder,CreateTenantRequest> - Returns:
- a new builder instance.
-
builder
-
setupCreateTenantRequestDeserializer
protected static void setupCreateTenantRequestDeserializer(ObjectDeserializer<CreateTenantRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-