Class TopRightBottomLeftGeoBounds.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.TopRightBottomLeftGeoBounds.Builder
- All Implemented Interfaces:
CopyableBuilder<TopRightBottomLeftGeoBounds.Builder,,TopRightBottomLeftGeoBounds> MutableBuilder<TopRightBottomLeftGeoBounds.Builder,,TopRightBottomLeftGeoBounds> ObjectBuilder<TopRightBottomLeftGeoBounds>
- Enclosing class:
TopRightBottomLeftGeoBounds
public static class TopRightBottomLeftGeoBounds.Builder
extends ObjectBuilderBase
implements CopyableBuilder<TopRightBottomLeftGeoBounds.Builder,TopRightBottomLeftGeoBounds>
Builder for
TopRightBottomLeftGeoBounds.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRequired - The lower-left corner coordinates.bottomLeft(GeoLocation value) Required - The lower-left corner coordinates.build()Builds aTopRightBottomLeftGeoBounds.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - The upper-right corner coordinates.topRight(GeoLocation value) Required - The upper-right corner coordinates.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<TopRightBottomLeftGeoBounds.Builder,TopRightBottomLeftGeoBounds> - Returns:
- a new builder instance.
-
bottomLeft
Required - The lower-left corner coordinates.API name:
bottom_left -
bottomLeft
@Nonnull public final TopRightBottomLeftGeoBounds.Builder bottomLeft(Function<GeoLocation.Builder, ObjectBuilder<GeoLocation>> fn) Required - The lower-left corner coordinates.API name:
bottom_left -
topRight
Required - The upper-right corner coordinates.API name:
top_right -
topRight
@Nonnull public final TopRightBottomLeftGeoBounds.Builder topRight(Function<GeoLocation.Builder, ObjectBuilder<GeoLocation>> fn) Required - The upper-right corner coordinates.API name:
top_right -
build
Builds aTopRightBottomLeftGeoBounds.- Specified by:
buildin interfaceObjectBuilder<TopRightBottomLeftGeoBounds>- Throws:
NullPointerException- if some of the required fields are null.
-