Class GeoPolygonPoints.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.query_dsl.GeoPolygonPoints.Builder
- All Implemented Interfaces:
CopyableBuilder<GeoPolygonPoints.Builder,,GeoPolygonPoints> MutableBuilder<GeoPolygonPoints.Builder,,GeoPolygonPoints> ObjectBuilder<GeoPolygonPoints>
- Enclosing class:
GeoPolygonPoints
public static class GeoPolygonPoints.Builder
extends ObjectBuilderBase
implements CopyableBuilder<GeoPolygonPoints.Builder,GeoPolygonPoints>
Builder for
GeoPolygonPoints.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGeoPolygonPoints.copy()Create a new builderCopyableBuilderthat is a copy of this one.final GeoPolygonPoints.BuilderRequired - API name:pointsfinal GeoPolygonPoints.Builderpoints(List<GeoLocation> list) Required - API name:pointsfinal GeoPolygonPoints.Builderpoints(GeoLocation value, GeoLocation... values) Required - API name:pointsMethods 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<GeoPolygonPoints.Builder,GeoPolygonPoints> - Returns:
- a new builder instance.
-
points
Required - API name:pointsAdds all elements of
listtopoints. -
points
Required - API name:pointsAdds one or more values to
points. -
points
@Nonnull public final GeoPolygonPoints.Builder points(Function<GeoLocation.Builder, ObjectBuilder<GeoLocation>> fn) Required - API name:pointsAdds a value to
pointsusing a builder lambda. -
build
Builds aGeoPolygonPoints.- Specified by:
buildin interfaceObjectBuilder<GeoPolygonPoints>- Throws:
NullPointerException- if some of the required fields are null.
-