Class AggregationRange
java.lang.Object
org.opensearch.client.opensearch._types.aggregations.AggregationRange
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<AggregationRange.Builder,AggregationRange>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class AggregationRange
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<AggregationRange.Builder,AggregationRange>
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<AggregationRange> Json deserializer forAggregationRange -
Method Summary
Modifier and TypeMethodDescriptionstatic AggregationRange.Builderbuilder()booleanfinal JsonDatafrom()Start of the range (inclusive).inthashCode()final Stringkey()Custom key to return the range with.static AggregationRangevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal JsonDatato()End of the range (exclusive).Create a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forAggregationRange
-
-
Method Details
-
of
public static AggregationRange of(Function<AggregationRange.Builder, ObjectBuilder<AggregationRange>> fn) -
from
Start of the range (inclusive).API name:
from -
key
Custom key to return the range with.API name:
key -
to
End of the range (exclusive).API name:
to -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<AggregationRange.Builder,AggregationRange> - Returns:
- a new builder instance.
-
builder
-
setupAggregationRangeDeserializer
protected static void setupAggregationRangeDeserializer(ObjectDeserializer<AggregationRange.Builder> op) -
hashCode
public int hashCode() -
equals
-