Class IntervalsAllOf.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.IntervalsAllOf.Builder
- All Implemented Interfaces:
CopyableBuilder<IntervalsAllOf.Builder,,IntervalsAllOf> MutableBuilder<IntervalsAllOf.Builder,,IntervalsAllOf> ObjectBuilder<IntervalsAllOf>
- Enclosing class:
IntervalsAllOf
public static class IntervalsAllOf.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IntervalsAllOf.Builder,IntervalsAllOf>
Builder for
IntervalsAllOf.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIntervalsAllOf.copy()Create a new builderCopyableBuilderthat is a copy of this one.final IntervalsAllOf.BuilderAPI name:filterfinal IntervalsAllOf.Builderfilter(IntervalsFilter value) API name:filterfinal IntervalsAllOf.BuilderRequired - An array of rules to combine.final IntervalsAllOf.BuilderRequired - An array of rules to combine.final IntervalsAllOf.BuilderRequired - An array of rules to combine.final IntervalsAllOf.BuilderMaximum number of positions between the matching terms.final IntervalsAllOf.BuilderIftrue, intervals produced by the rules should appear in the order in which they are specified.Methods 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<IntervalsAllOf.Builder,IntervalsAllOf> - Returns:
- a new builder instance.
-
filter
API name:filter -
filter
@Nonnull public final IntervalsAllOf.Builder filter(Function<IntervalsFilter.Builder, ObjectBuilder<IntervalsFilter>> fn) API name:filter -
intervals
Required - An array of rules to combine. All rules must produce a match in a document for the overall source to match.API name:
intervalsAdds all elements of
listtointervals. -
intervals
Required - An array of rules to combine. All rules must produce a match in a document for the overall source to match.API name:
intervalsAdds one or more values to
intervals. -
intervals
@Nonnull public final IntervalsAllOf.Builder intervals(Function<Intervals.Builder, ObjectBuilder<Intervals>> fn) Required - An array of rules to combine. All rules must produce a match in a document for the overall source to match.API name:
intervalsAdds a value to
intervalsusing a builder lambda. -
maxGaps
Maximum number of positions between the matching terms. Intervals produced by the rules further apart than this are not considered matches.API name:
max_gaps -
ordered
Iftrue, intervals produced by the rules should appear in the order in which they are specified.API name:
ordered -
build
Builds aIntervalsAllOf.- Specified by:
buildin interfaceObjectBuilder<IntervalsAllOf>- Throws:
NullPointerException- if some of the required fields are null.
-