Class NodeInfoAggregation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<NodeInfoAggregation.Builder>
co.elastic.clients.elasticsearch.nodes.info.NodeInfoAggregation.Builder
- All Implemented Interfaces:
WithJson<NodeInfoAggregation.Builder>
,ObjectBuilder<NodeInfoAggregation>
- Enclosing class:
- NodeInfoAggregation
public static class NodeInfoAggregation.Builder extends WithJsonObjectBuilderBase<NodeInfoAggregation.Builder> implements ObjectBuilder<NodeInfoAggregation>
Builder for
NodeInfoAggregation
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description NodeInfoAggregation
build()
Builds aNodeInfoAggregation
.protected NodeInfoAggregation.Builder
self()
NodeInfoAggregation.Builder
types(java.lang.String value, java.lang.String... values)
Required - API name:types
NodeInfoAggregation.Builder
types(java.util.List<java.lang.String> list)
Required - API name:types
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
-
types
Required - API name:types
Adds all elements of
list
totypes
. -
types
Required - API name:types
Adds one or more values to
types
. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<NodeInfoAggregation.Builder>
-
build
Builds aNodeInfoAggregation
.- Specified by:
build
in interfaceObjectBuilder<NodeInfoAggregation>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-