Class CompositeDateHistogramAggregationSource.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.aggregations.CompositeValuesSource.AbstractBuilder<CompositeDateHistogramAggregationSource.Builder>
org.opensearch.client.opensearch._types.aggregations.CompositeDateHistogramAggregationSource.Builder
- All Implemented Interfaces:
CopyableBuilder<CompositeDateHistogramAggregationSource.Builder,,CompositeDateHistogramAggregationSource> MutableBuilder<CompositeDateHistogramAggregationSource.Builder,,CompositeDateHistogramAggregationSource> ObjectBuilder<CompositeDateHistogramAggregationSource>
- Enclosing class:
CompositeDateHistogramAggregationSource
public static class CompositeDateHistogramAggregationSource.Builder
extends CompositeValuesSource.AbstractBuilder<CompositeDateHistogramAggregationSource.Builder>
implements CopyableBuilder<CompositeDateHistogramAggregationSource.Builder,CompositeDateHistogramAggregationSource>
Builder for
CompositeDateHistogramAggregationSource.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCompositeDateHistogramAggregationSource.API name:calendar_intervalcalendarInterval(Time value) API name:calendar_intervalcopy()Create a new builderCopyableBuilderthat is a copy of this one.API name:fixed_intervalfixedInterval(Time value) API name:fixed_intervalAPI name:formatAPI name:offsetAPI name:offsetself()API name:time_zoneMethods inherited from class org.opensearch.client.opensearch._types.aggregations.CompositeValuesSource.AbstractBuilder
field, missingBucket, missingOrder, order, script, script, valueTypeMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<CompositeDateHistogramAggregationSource.Builder,CompositeDateHistogramAggregationSource> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classCompositeValuesSource.AbstractBuilder<CompositeDateHistogramAggregationSource.Builder>
-
calendarInterval
@Nonnull public final CompositeDateHistogramAggregationSource.Builder calendarInterval(@Nullable Time value) API name:calendar_interval -
calendarInterval
@Nonnull public final CompositeDateHistogramAggregationSource.Builder calendarInterval(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:calendar_interval -
fixedInterval
@Nonnull public final CompositeDateHistogramAggregationSource.Builder fixedInterval(@Nullable Time value) API name:fixed_interval -
fixedInterval
@Nonnull public final CompositeDateHistogramAggregationSource.Builder fixedInterval(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:fixed_interval -
format
@Nonnull public final CompositeDateHistogramAggregationSource.Builder format(@Nullable String value) API name:format -
offset
API name:offset -
offset
@Nonnull public final CompositeDateHistogramAggregationSource.Builder offset(Function<Time.Builder, ObjectBuilder<Time>> fn) API name:offset -
timeZone
@Nonnull public final CompositeDateHistogramAggregationSource.Builder timeZone(@Nullable String value) API name:time_zone -
build
Builds aCompositeDateHistogramAggregationSource.- Specified by:
buildin interfaceObjectBuilder<CompositeDateHistogramAggregationSource>- Throws:
NullPointerException- if some of the required fields are null.
-