Class NodeAttributes.Builder

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch._types.NodeAttributes.Builder
All Implemented Interfaces:
ObjectBuilder<NodeAttributes>
Enclosing class:
NodeAttributes

public static class NodeAttributes.Builder
extends ObjectBuilderBase
implements ObjectBuilder<NodeAttributes>
Builder for NodeAttributes.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • attributes

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

      API name: attributes

      Adds all entries of map to attributes.

    • attributes

      public final NodeAttributes.Builder attributes​(java.lang.String key, java.lang.String value)
      Required - Lists node attributes.

      API name: attributes

      Adds an entry to attributes.

    • ephemeralId

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

      API name: ephemeral_id

    • id

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

      API name: id

    • name

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

      API name: name

    • transportAddress

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

      API name: transport_address

    • roles

      public final NodeAttributes.Builder roles​(java.util.List<NodeRole> list)
      API name: roles

      Adds all elements of list to roles.

    • roles

      public final NodeAttributes.Builder roles​(NodeRole value, NodeRole... values)
      API name: roles

      Adds one or more values to roles.

    • build

      public NodeAttributes build()
      Builds a NodeAttributes.
      Specified by:
      build in interface ObjectBuilder<NodeAttributes>
      Throws:
      java.lang.NullPointerException - if some of the required fields are null.