Class BaseNode.AbstractBuilder<BuilderT extends BaseNode.AbstractBuilder<BuilderT>>

java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.BaseNode.AbstractBuilder<BuilderT>
All Implemented Interfaces:
WithJson<BuilderT>
Direct Known Subclasses:
ReindexNode.Builder, UpdateByQueryRethrottleNode.Builder
Enclosing class:
BaseNode

protected abstract static class BaseNode.AbstractBuilder<BuilderT extends BaseNode.AbstractBuilder<BuilderT>>
extends WithJsonObjectBuilderBase<BuilderT>
  • Constructor Details

    • AbstractBuilder

      protected AbstractBuilder()
  • Method Details

    • attributes

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

      Adds all entries of map to attributes.

    • attributes

      public final BuilderT attributes​(java.lang.String key, java.lang.String value)
      Required - API name: attributes

      Adds an entry to attributes.

    • host

      public final BuilderT host​(java.lang.String value)
      Required - API name: host
    • ip

      public final BuilderT ip​(java.lang.String value)
      Required - API name: ip
    • name

      public final BuilderT name​(java.lang.String value)
      Required - API name: name
    • roles

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

      Adds all elements of list to roles.

    • roles

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

      Adds one or more values to roles.

    • transportAddress

      public final BuilderT transportAddress​(java.lang.String value)
      Required - API name: transport_address
    • self

      protected abstract BuilderT self()
      Specified by:
      self in class WithJsonObjectBuilderBase<BuilderT extends BaseNode.AbstractBuilder<BuilderT>>