Class NodeAttributes

java.lang.Object
co.elastic.clients.elasticsearch._types.NodeAttributes
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable
public class NodeAttributes
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static NodeAttributes of​(java.util.function.Function<NodeAttributes.Builder,​ObjectBuilder<NodeAttributes>> fn)
    • attributes

      public final java.util.Map<java.lang.String,​java.lang.String> attributes()
      Required - Lists node attributes.

      API name: attributes

    • ephemeralId

      public final java.lang.String ephemeralId()
      Required - The ephemeral ID of the node.

      API name: ephemeral_id

    • id

      @Nullable public final java.lang.String id()
      The unique identifier of the node.

      API name: id

    • name

      public final java.lang.String name()
      Required - The unique identifier of the node.

      API name: name

    • transportAddress

      public final java.lang.String transportAddress()
      Required - The host and port where transport HTTP connections are accepted.

      API name: transport_address

    • roles

      public final java.util.List<NodeRole> roles()
      API name: roles
    • serialize

      public void serialize​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupNodeAttributesDeserializer

      protected static void setupNodeAttributesDeserializer​(ObjectDeserializer<NodeAttributes.Builder> op)