Class NodeInfoSettingsClusterElection
java.lang.Object
org.opensearch.client.opensearch.nodes.info.NodeInfoSettingsClusterElection
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<NodeInfoSettingsClusterElection.Builder,NodeInfoSettingsClusterElection>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class NodeInfoSettingsClusterElection
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<NodeInfoSettingsClusterElection.Builder,NodeInfoSettingsClusterElection>
The cluster election strategy configuration.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<NodeInfoSettingsClusterElection> Json deserializer forNodeInfoSettingsClusterElection -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleaninthashCode()of(Function<NodeInfoSettingsClusterElection.Builder, ObjectBuilder<NodeInfoSettingsClusterElection>> fn) voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsetupNodeInfoSettingsClusterElectionDeserializer(ObjectDeserializer<NodeInfoSettingsClusterElection.Builder> op) final Stringstrategy()Required - API name:strategyCreate 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 forNodeInfoSettingsClusterElection
-
-
Method Details
-
of
-
strategy
Required - API name:strategy -
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<NodeInfoSettingsClusterElection.Builder,NodeInfoSettingsClusterElection> - Returns:
- a new builder instance.
-
builder
-
setupNodeInfoSettingsClusterElectionDeserializer
protected static void setupNodeInfoSettingsClusterElectionDeserializer(ObjectDeserializer<NodeInfoSettingsClusterElection.Builder> op) -
hashCode
public int hashCode() -
equals
-