Class SnapshotShardFailure
java.lang.Object
org.opensearch.client.opensearch.snapshot.SnapshotShardFailure
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<SnapshotShardFailure.Builder,SnapshotShardFailure>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class SnapshotShardFailure
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<SnapshotShardFailure.Builder,SnapshotShardFailure>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SnapshotShardFailure> Json deserializer forSnapshotShardFailure -
Method Summary
Modifier and TypeMethodDescriptionstatic SnapshotShardFailure.Builderbuilder()booleaninthashCode()final Stringindex()The name of the index containing the failed shard.final StringnodeId()The ID of the node where the shard failure occurred.static SnapshotShardFailurefinal Stringreason()The reason for the shard failure.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 StringshardId()The ID of the failed shard.final Stringstatus()The status of the failed shard.Create 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 forSnapshotShardFailure
-
-
Method Details
-
of
public static SnapshotShardFailure of(Function<SnapshotShardFailure.Builder, ObjectBuilder<SnapshotShardFailure>> fn) -
index
The name of the index containing the failed shard.API name:
index -
nodeId
The ID of the node where the shard failure occurred.API name:
node_id -
reason
The reason for the shard failure.API name:
reason -
shardId
The ID of the failed shard.API name:
shard_id -
status
The status of the failed shard.API name:
status -
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<SnapshotShardFailure.Builder,SnapshotShardFailure> - Returns:
- a new builder instance.
-
builder
-
setupSnapshotShardFailureDeserializer
protected static void setupSnapshotShardFailureDeserializer(ObjectDeserializer<SnapshotShardFailure.Builder> op) -
hashCode
public int hashCode() -
equals
-