Class PostRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<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 WithJsonObjectBuilderBase<PostRequest.Builder> implements ObjectBuilder<PostRequest>
Builder for
PostRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description PostRequest.Builder
acknowledge(java.lang.Boolean value)
Specifies whether you acknowledge the license changes.PostRequest
build()
Builds aPostRequest
.PostRequest.Builder
license(License value)
API name:license
PostRequest.Builder
license(java.util.function.Function<License.Builder,ObjectBuilder<License>> fn)
API name:license
PostRequest.Builder
licenses(License value, License... values)
Required - A sequence of one or more JSON documents containing the license information.PostRequest.Builder
licenses(java.util.function.Function<License.Builder,ObjectBuilder<License>> fn)
Required - A sequence of one or more JSON documents containing the license information.PostRequest.Builder
licenses(java.util.List<License> list)
Required - A sequence of one or more JSON documents containing the license information.protected PostRequest.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
acknowledge
Specifies whether you acknowledge the license changes.API name:
acknowledge
-
license
API name:license
-
license
public final PostRequest.Builder license(java.util.function.Function<License.Builder,ObjectBuilder<License>> fn)API name:license
-
licenses
Required - A sequence of one or more JSON documents containing the license information.API name:
licenses
Adds all elements of
list
tolicenses
. -
licenses
Required - A sequence of one or more JSON documents containing the license information.API name:
licenses
Adds one or more values to
licenses
. -
licenses
public final PostRequest.Builder licenses(java.util.function.Function<License.Builder,ObjectBuilder<License>> fn)Required - A sequence of one or more JSON documents containing the license information.API name:
licenses
Adds a value to
licenses
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<PostRequest.Builder>
-
build
Builds aPostRequest
.- Specified by:
build
in interfaceObjectBuilder<PostRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-