Class TTestAggregate.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch._types.aggregations.AggregateBase.AbstractBuilder<TTestAggregate.Builder>
-
- org.opensearch.client.opensearch._types.aggregations.TTestAggregate.Builder
-
- All Implemented Interfaces:
ObjectBuilder<TTestAggregate>
- Enclosing class:
- TTestAggregate
public static class TTestAggregate.Builder extends AggregateBase.AbstractBuilder<TTestAggregate.Builder> implements ObjectBuilder<TTestAggregate>
Builder forTTestAggregate
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TTestAggregate
build()
Builds aTTestAggregate
.protected TTestAggregate.Builder
self()
TTestAggregate.Builder
value(double value)
Required - API name:value
TTestAggregate.Builder
valueAsString(java.lang.String value)
API name:value_as_string
-
Methods inherited from class org.opensearch.client.opensearch._types.aggregations.AggregateBase.AbstractBuilder
meta, meta
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
value
public final TTestAggregate.Builder value(double value)
Required - API name:value
Defaults to
0
if parsed from a JSONnull
value.
-
valueAsString
public final TTestAggregate.Builder valueAsString(@Nullable java.lang.String value)
API name:value_as_string
-
self
protected TTestAggregate.Builder self()
- Specified by:
self
in classAggregateBase.AbstractBuilder<TTestAggregate.Builder>
-
build
public TTestAggregate build()
Builds aTTestAggregate
.- Specified by:
build
in interfaceObjectBuilder<TTestAggregate>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-