Class PostRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PostRequest.Builder>
co.elastic.clients.elasticsearch.license.PostRequest.Builder
- All Implemented Interfaces:
WithJson<PostRequest.Builder>,ObjectBuilder<PostRequest>
- Enclosing class:
- PostRequest
public static class PostRequest.Builder
extends RequestBase.AbstractBuilder<PostRequest.Builder>
implements ObjectBuilder<PostRequest>
Builder for
PostRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal PostRequest.Builderacknowledge(Boolean value) Specifies whether you acknowledge the license changes.build()Builds aPostRequest.final PostRequest.BuilderAPI name:licensefinal PostRequest.BuilderAPI name:licensefinal PostRequest.BuilderA sequence of one or more JSON documents containing the license information.final PostRequest.BuilderA sequence of one or more JSON documents containing the license information.final PostRequest.BuilderA sequence of one or more JSON documents containing the license information.final PostRequest.BuildermasterTimeout(Time value) The period to wait for a connection to the master node.final PostRequest.BuilderThe period to wait for a connection to the master node.protected PostRequest.Builderself()final PostRequest.BuilderThe period to wait for a response.final PostRequest.BuilderThe period to wait for a response.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
Specifies whether you acknowledge the license changes.API name:
acknowledge -
license
API name:license -
license
API name:license -
licenses
A sequence of one or more JSON documents containing the license information.API name:
licensesAdds all elements of
listtolicenses. -
licenses
A sequence of one or more JSON documents containing the license information.API name:
licensesAdds one or more values to
licenses. -
licenses
A sequence of one or more JSON documents containing the license information.API name:
licensesAdds a value to
licensesusing a builder lambda. -
masterTimeout
The period to wait for a connection to the master node.API name:
master_timeout -
masterTimeout
The period to wait for a connection to the master node.API name:
master_timeout -
timeout
The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
timeout
The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PostRequest.Builder>
-
build
Builds aPostRequest.- Specified by:
buildin interfaceObjectBuilder<PostRequest>- Throws:
NullPointerException- if some of the required fields are null.
-