Class GeojsonUploadPutResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.geospatial.GeojsonUploadPutResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<GeojsonUploadPutResponse.Builder,,GeojsonUploadPutResponse> MutableBuilder<GeojsonUploadPutResponse.Builder,,GeojsonUploadPutResponse> ObjectBuilder<GeojsonUploadPutResponse>
- Enclosing class:
GeojsonUploadPutResponse
public static class GeojsonUploadPutResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<GeojsonUploadPutResponse.Builder,GeojsonUploadPutResponse>
Builder for
GeojsonUploadPutResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGeojsonUploadPutResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.errors(boolean value) Required - Whether there were any errors.failure(int value) Required - Number of features that failed to upload.success(int value) Required - Number of features successfully uploaded.took(long value) Required - API name:tooktotal(int value) Required - Total number of features processed.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<GeojsonUploadPutResponse.Builder,GeojsonUploadPutResponse> - Returns:
- a new builder instance.
-
errors
Required - Whether there were any errors.API name:
errors -
failure
Required - Number of features that failed to upload.API name:
failure -
success
Required - Number of features successfully uploaded.API name:
success -
took
Required - API name:took -
total
Required - Total number of features processed.API name:
total -
build
Builds aGeojsonUploadPutResponse.- Specified by:
buildin interfaceObjectBuilder<GeojsonUploadPutResponse>- Throws:
NullPointerException- if some of the required fields are null.
-