Class LatLonGeoLocation.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.LatLonGeoLocation.Builder
- All Implemented Interfaces:
CopyableBuilder<LatLonGeoLocation.Builder,,LatLonGeoLocation> MutableBuilder<LatLonGeoLocation.Builder,,LatLonGeoLocation> ObjectBuilder<LatLonGeoLocation>
- Enclosing class:
LatLonGeoLocation
public static class LatLonGeoLocation.Builder
extends ObjectBuilderBase
implements CopyableBuilder<LatLonGeoLocation.Builder,LatLonGeoLocation>
Builder for
LatLonGeoLocation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aLatLonGeoLocation.copy()Create a new builderCopyableBuilderthat is a copy of this one.lat(double value) Required - The latitude coordinate.lon(double value) Required - The longitude coordinate.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<LatLonGeoLocation.Builder,LatLonGeoLocation> - Returns:
- a new builder instance.
-
lat
Required - The latitude coordinate.API name:
lat -
lon
Required - The longitude coordinate.API name:
lon -
build
Builds aLatLonGeoLocation.- Specified by:
buildin interfaceObjectBuilder<LatLonGeoLocation>- Throws:
NullPointerException- if some of the required fields are null.
-