Class GeojsonUploadPostRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.geospatial.GeojsonUploadPostRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<GeojsonUploadPostRequest.Builder,GeojsonUploadPostRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class GeojsonUploadPostRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<GeojsonUploadPostRequest.Builder,GeojsonUploadPostRequest>
Use an OpenSearch query to upload GeoJSON, operation will fail if index exists.
- When type is
geo_point, only Point geometry is allowed - When type is
geo_shape, all geometry types are allowed (Point, MultiPoint, LineString, MultiLineString, Polygon, MultiPolygon, GeometryCollection, Envelope).
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<GeojsonUploadPostRequest> Json deserializer forGeojsonUploadPostRequestEndpoint "geospatial.geojson_upload_post". -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final List<GeoJSONData> data()Required - Array of GeoJSON features.booleanfinal Stringfield()Field name for the geospatial data.inthashCode()final Stringindex()Required - API name:indexstatic GeojsonUploadPostRequestvoidserialize(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.final GeospatialFieldTypetype()Required - Field type for the geospatial data.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
applyQueryParameters, errorTrace, humanMethods 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 forGeojsonUploadPostRequest -
_ENDPOINT
public static final Endpoint<GeojsonUploadPostRequest,GeojsonUploadPostResponse, _ENDPOINTErrorResponse> Endpoint "geospatial.geojson_upload_post".
-
-
Method Details
-
of
public static GeojsonUploadPostRequest of(Function<GeojsonUploadPostRequest.Builder, ObjectBuilder<GeojsonUploadPostRequest>> fn) -
data
Required - Array of GeoJSON features.API name:
data -
field
Field name for the geospatial data.API name:
field -
index
Required - API name:index -
type
Required - Field type for the geospatial data.API name:
type -
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<GeojsonUploadPostRequest.Builder,GeojsonUploadPostRequest> - Returns:
- a new builder instance.
-
builder
-
setupGeojsonUploadPostRequestDeserializer
protected static void setupGeojsonUploadPostRequestDeserializer(ObjectDeserializer<GeojsonUploadPostRequest.Builder> op) -
hashCode
public int hashCode() -
equals
-