java.lang.Object
co.elastic.clients.elasticsearch.cluster.allocation_explain.CurrentNode
All Implemented Interfaces:
JsonpSerializable

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

  • Method Details

    • of

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

      public final java.lang.String id()
      Required - API name: id
    • name

      public final java.lang.String name()
      Required - API name: name
    • attributes

      public final java.util.Map<java.lang.String,​java.lang.String> attributes()
      Required - API name: attributes
    • transportAddress

      public final java.lang.String transportAddress()
      Required - API name: transport_address
    • weightRanking

      public final int weightRanking()
      Required - API name: weight_ranking
    • 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)
    • setupCurrentNodeDeserializer

      protected static void setupCurrentNodeDeserializer​(ObjectDeserializer<CurrentNode.Builder> op)