Class NodeAttributes
- java.lang.Object
-
- org.opensearch.client.opensearch._types.NodeAttributes
-
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<NodeAttributes.Builder,NodeAttributes>
@JsonpDeserializable @Generated("org.opensearch.client.codegen.CodeGenerator") public class NodeAttributes extends java.lang.Object implements PlainJsonSerializable, ToCopyableBuilder<NodeAttributes.Builder,NodeAttributes>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNodeAttributes.BuilderBuilder forNodeAttributes.
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<NodeAttributes>_DESERIALIZERJson deserializer forNodeAttributes
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>attributes()Required - A list of node attributes.static NodeAttributes.Builderbuilder()java.lang.StringephemeralId()Required - API name:ephemeral_idbooleanequals(java.lang.Object o)java.lang.StringexternalId()The roles of the node.inthashCode()java.lang.Stringid()API name:idjava.lang.Stringname()Required - API name:namestatic NodeAttributesof(java.util.function.Function<NodeAttributes.Builder,ObjectBuilder<NodeAttributes>> fn)java.util.List<NodeRole>roles()API name:rolesvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupNodeAttributesDeserializer(ObjectDeserializer<NodeAttributes.Builder> op)NodeAttributes.BuildertoBuilder()Create a new builderToCopyableBuilderthat is initialised with the current state of this object.java.lang.StringtransportAddress()Required - API name:transport_address-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Methods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<NodeAttributes> _DESERIALIZER
Json deserializer forNodeAttributes
-
-
Method Detail
-
of
public static NodeAttributes of(java.util.function.Function<NodeAttributes.Builder,ObjectBuilder<NodeAttributes>> fn)
-
attributes
@Nonnull public final java.util.Map<java.lang.String,java.lang.String> attributes()
Required - A list of node attributes.API name:
attributes
-
ephemeralId
@Nonnull public final java.lang.String ephemeralId()
Required - API name:ephemeral_id
-
externalId
@Nullable public final java.lang.String externalId()
The roles of the node.API name:
external_id
-
id
@Nullable public final java.lang.String id()
API name:id
-
name
@Nonnull public final java.lang.String name()
Required - API name:name
-
roles
@Nonnull public final java.util.List<NodeRole> roles()
API name:roles
-
transportAddress
@Nonnull public final java.lang.String transportAddress()
Required - API name:transport_address
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
toBuilder
@Nonnull public NodeAttributes.Builder toBuilder()
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<NodeAttributes.Builder,NodeAttributes>- Returns:
- a new builder instance.
-
builder
@Nonnull public static NodeAttributes.Builder builder()
-
setupNodeAttributesDeserializer
protected static void setupNodeAttributesDeserializer(ObjectDeserializer<NodeAttributes.Builder> op)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-