Class CreateAllowlistRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.security.CreateAllowlistRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<CreateAllowlistRequest.Builder,CreateAllowlistRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class CreateAllowlistRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<CreateAllowlistRequest.Builder,CreateAllowlistRequest>
Creates or replaces APIs permitted for users on the allow list. Requires a super admin certificate or REST API permissions.
-
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<CreateAllowlistRequest> Json deserializer forCreateAllowlistRequeststatic final Endpoint<CreateAllowlistRequest, CreateAllowlistResponse, ErrorResponse> Endpoint "security.create_allowlist". -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final Booleanenabled()API name:enabledbooleaninthashCode()static CreateAllowlistRequestrequests()An object with APIs as key and array of HTTP methods as values.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.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 forCreateAllowlistRequest -
_ENDPOINT
public static final Endpoint<CreateAllowlistRequest,CreateAllowlistResponse, _ENDPOINTErrorResponse> Endpoint "security.create_allowlist".
-
-
Method Details
-
of
public static CreateAllowlistRequest of(Function<CreateAllowlistRequest.Builder, ObjectBuilder<CreateAllowlistRequest>> fn) -
enabled
API name:enabled -
requests
An object with APIs as key and array of HTTP methods as values.API name:
requests -
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<CreateAllowlistRequest.Builder,CreateAllowlistRequest> - Returns:
- a new builder instance.
-
builder
-
setupCreateAllowlistRequestDeserializer
protected static void setupCreateAllowlistRequestDeserializer(ObjectDeserializer<CreateAllowlistRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-