Class CreateSnapshotResponse
java.lang.Object
org.opensearch.client.opensearch.snapshot.CreateSnapshotResponse
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<CreateSnapshotResponse.Builder,CreateSnapshotResponse>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class CreateSnapshotResponse
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<CreateSnapshotResponse.Builder,CreateSnapshotResponse>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CreateSnapshotResponse> Json deserializer forCreateSnapshotResponse -
Method Summary
Modifier and TypeMethodDescriptionfinal Booleanaccepted()Returnstrueif the snapshot was accepted.builder()booleaninthashCode()static CreateSnapshotResponsevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal SnapshotInfosnapshot()API name:snapshotCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods 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 forCreateSnapshotResponse
-
-
Method Details
-
of
public static CreateSnapshotResponse of(Function<CreateSnapshotResponse.Builder, ObjectBuilder<CreateSnapshotResponse>> fn) -
accepted
Returnstrueif the snapshot was accepted. Present when the request hadwait_for_completionset tofalse.API name:
accepted -
snapshot
API name:snapshot -
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<CreateSnapshotResponse.Builder,CreateSnapshotResponse> - Returns:
- a new builder instance.
-
builder
-
setupCreateSnapshotResponseDeserializer
protected static void setupCreateSnapshotResponseDeserializer(ObjectDeserializer<CreateSnapshotResponse.Builder> op) -
hashCode
public int hashCode() -
equals
-