Class PostRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.license.PostRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<PostRequest>
- Enclosing class:
- PostRequest
public static class PostRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<PostRequest>
Builder for
PostRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description PostRequest.Builderacknowledge(java.lang.Boolean value)Specifies whether you acknowledge the license changes.PostRequestbuild()Builds aPostRequest.PostRequest.Builderlicense(License value)API name:licensePostRequest.Builderlicense(java.util.function.Function<License.Builder,ObjectBuilder<License>> fn)API name:licensePostRequest.Builderlicenses(License value, License... values)Required - A sequence of one or more JSON documents containing the license information.PostRequest.Builderlicenses(java.util.function.Function<License.Builder,ObjectBuilder<License>> fn)Required - A sequence of one or more JSON documents containing the license information.PostRequest.Builderlicenses(java.util.List<License> list)Required - A sequence of one or more JSON documents containing the license information.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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:
licensesAdds all elements of
listtolicenses. -
licenses
Required - A sequence of one or more JSON documents containing the license information.API name:
licensesAdds 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:
licensesAdds a value to
licensesusing a builder lambda. -
build
Builds aPostRequest.- Specified by:
buildin interfaceObjectBuilder<PostRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-