Class ShardFailure
java.lang.Object
org.opensearch.client.opensearch._types.ShardFailure
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<ShardFailure.Builder,ShardFailure>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ShardFailure
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<ShardFailure.Builder,ShardFailure>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<ShardFailure> Json deserializer forShardFailure -
Method Summary
Modifier and TypeMethodDescriptionstatic ShardFailure.Builderbuilder()booleaninthashCode()final Stringindex()API name:indexfinal Stringnode()API name:nodestatic ShardFailurefinal ErrorCausereason()Required - API name:reasonvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal intshard()Required - API name:shardfinal Stringstatus()API name:statusCreate 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 forShardFailure
-
-
Method Details
-
of
-
index
API name:index -
node
API name:node -
reason
Required - API name:reason -
shard
public final int shard()Required - API name:shard -
status
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<ShardFailure.Builder,ShardFailure> - Returns:
- a new builder instance.
-
builder
-
setupShardFailureDeserializer
-
hashCode
public int hashCode() -
equals
-