Class PostResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<PostResponse.Builder>
co.elastic.clients.elasticsearch.license.PostResponse.Builder
- All Implemented Interfaces:
WithJson<PostResponse.Builder>,ObjectBuilder<PostResponse>
- Enclosing class:
- PostResponse
public static class PostResponse.Builder
extends WithJsonObjectBuilderBase<PostResponse.Builder>
implements ObjectBuilder<PostResponse>
Builder for
PostResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal PostResponse.Builderacknowledge(Acknowledgement value) API name:acknowledgefinal PostResponse.BuilderAPI name:acknowledgefinal PostResponse.Builderacknowledged(boolean value) Required - API name:acknowledgedbuild()Builds aPostResponse.final PostResponse.BuilderlicenseStatus(LicenseStatus value) Required - API name:license_statusprotected PostResponse.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
acknowledge
API name:acknowledge -
acknowledge
public final PostResponse.Builder acknowledge(Function<Acknowledgement.Builder, ObjectBuilder<Acknowledgement>> fn) API name:acknowledge -
acknowledged
Required - API name:acknowledged -
licenseStatus
Required - API name:license_status -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<PostResponse.Builder>
-
build
Builds aPostResponse.- Specified by:
buildin interfaceObjectBuilder<PostResponse>- Throws:
NullPointerException- if some of the required fields are null.
-