Class LatLonGeoLocation
java.lang.Object
org.opensearch.client.opensearch._types.LatLonGeoLocation
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<LatLonGeoLocation.Builder,LatLonGeoLocation>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class LatLonGeoLocation
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<LatLonGeoLocation.Builder,LatLonGeoLocation>
The geographical location specified using latitude and longitude.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<LatLonGeoLocation> Json deserializer forLatLonGeoLocation -
Method Summary
Modifier and TypeMethodDescriptionstatic LatLonGeoLocation.Builderbuilder()booleaninthashCode()final doublelat()Required - The latitude coordinate.final doublelon()Required - The longitude coordinate.static LatLonGeoLocationvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate 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 forLatLonGeoLocation
-
-
Method Details
-
of
public static LatLonGeoLocation of(Function<LatLonGeoLocation.Builder, ObjectBuilder<LatLonGeoLocation>> fn) -
lat
public final double lat()Required - The latitude coordinate.API name:
lat -
lon
public final double lon()Required - The longitude coordinate.API name:
lon -
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<LatLonGeoLocation.Builder,LatLonGeoLocation> - Returns:
- a new builder instance.
-
builder
-
setupLatLonGeoLocationDeserializer
protected static void setupLatLonGeoLocationDeserializer(ObjectDeserializer<LatLonGeoLocation.Builder> op) -
hashCode
public int hashCode() -
equals
-