Class GenerateOboTokenRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.security.GenerateOboTokenRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<GenerateOboTokenRequest.Builder,GenerateOboTokenRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class GenerateOboTokenRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<GenerateOboTokenRequest.Builder,GenerateOboTokenRequest>
Generates a
On-Behalf-Of token for the current user.-
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<GenerateOboTokenRequest> Json deserializer forGenerateOboTokenRequeststatic final Endpoint<GenerateOboTokenRequest, GenerateOboTokenResponse, ErrorResponse> Endpoint "security.generate_obo_token". -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final StringRequired - The description supplied by the user to describe the token.final Stringduration()A duration in seconds.booleaninthashCode()static GenerateOboTokenRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) final Stringservice()The name of the service when generating a token for that service.protected static voidCreate 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 forGenerateOboTokenRequest -
_ENDPOINT
public static final Endpoint<GenerateOboTokenRequest,GenerateOboTokenResponse, _ENDPOINTErrorResponse> Endpoint "security.generate_obo_token".
-
-
Method Details
-
of
public static GenerateOboTokenRequest of(Function<GenerateOboTokenRequest.Builder, ObjectBuilder<GenerateOboTokenRequest>> fn) -
description
Required - The description supplied by the user to describe the token.API name:
description -
duration
A duration in seconds.API name:
duration -
service
The name of the service when generating a token for that service.API name:
service -
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<GenerateOboTokenRequest.Builder,GenerateOboTokenRequest> - Returns:
- a new builder instance.
-
builder
-
setupGenerateOboTokenRequestDeserializer
protected static void setupGenerateOboTokenRequestDeserializer(ObjectDeserializer<GenerateOboTokenRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-