Class GeoJSONData.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.geospatial.GeoJSONData.Builder
- All Implemented Interfaces:
CopyableBuilder<GeoJSONData.Builder,,GeoJSONData> MutableBuilder<GeoJSONData.Builder,,GeoJSONData> ObjectBuilder<GeoJSONData>
- Enclosing class:
GeoJSONData
public static class GeoJSONData.Builder
extends ObjectBuilderBase
implements CopyableBuilder<GeoJSONData.Builder,GeoJSONData>
Builder for
GeoJSONData.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGeoJSONData.copy()Create a new builderCopyableBuilderthat is a copy of this one.final GeoJSONData.BuilderRequired - API name:geometryfinal GeoJSONData.Builderproperties(String key, JsonData value) API name:propertiesfinal GeoJSONData.Builderproperties(Map<String, JsonData> map) API name:propertiesfinal GeoJSONData.Buildertype(GeoJSONDataType value) Required - API name:typeMethods 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<GeoJSONData.Builder,GeoJSONData> - Returns:
- a new builder instance.
-
geometry
Required - API name:geometry -
properties
API name:propertiesAdds all elements of
maptoproperties. -
properties
API name:propertiesAdds an entry to
properties. -
type
Required - API name:type -
build
Builds aGeoJSONData.- Specified by:
buildin interfaceObjectBuilder<GeoJSONData>- Throws:
NullPointerException- if some of the required fields are null.
-