Class NodeInfoTransport.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<NodeInfoTransport.Builder>
co.elastic.clients.elasticsearch.nodes.info.NodeInfoTransport.Builder
- All Implemented Interfaces:
WithJson<NodeInfoTransport.Builder>
,ObjectBuilder<NodeInfoTransport>
- Enclosing class:
- NodeInfoTransport
public static class NodeInfoTransport.Builder extends WithJsonObjectBuilderBase<NodeInfoTransport.Builder> implements ObjectBuilder<NodeInfoTransport>
Builder for
NodeInfoTransport
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description NodeInfoTransport.Builder
boundAddress(java.lang.String value, java.lang.String... values)
Required - API name:bound_address
NodeInfoTransport.Builder
boundAddress(java.util.List<java.lang.String> list)
Required - API name:bound_address
NodeInfoTransport
build()
Builds aNodeInfoTransport
.NodeInfoTransport.Builder
profiles(java.lang.String key, java.lang.String value)
Required - API name:profiles
NodeInfoTransport.Builder
profiles(java.util.Map<java.lang.String,java.lang.String> map)
Required - API name:profiles
NodeInfoTransport.Builder
publishAddress(java.lang.String value)
Required - API name:publish_address
protected NodeInfoTransport.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
boundAddress
Required - API name:bound_address
Adds all elements of
list
toboundAddress
. -
boundAddress
public final NodeInfoTransport.Builder boundAddress(java.lang.String value, java.lang.String... values)Required - API name:bound_address
Adds one or more values to
boundAddress
. -
publishAddress
Required - API name:publish_address
-
profiles
public final NodeInfoTransport.Builder profiles(java.util.Map<java.lang.String,java.lang.String> map)Required - API name:profiles
Adds all entries of
map
toprofiles
. -
profiles
Required - API name:profiles
Adds an entry to
profiles
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<NodeInfoTransport.Builder>
-
build
Builds aNodeInfoTransport
.- Specified by:
build
in interfaceObjectBuilder<NodeInfoTransport>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-