Class XpackUsageRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.xpack.XpackUsageRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<XpackUsageRequest>
- Enclosing class:
- XpackUsageRequest
public static class XpackUsageRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<XpackUsageRequest>
Builder for
XpackUsageRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description XpackUsageRequestbuild()Builds aXpackUsageRequest.XpackUsageRequest.BuildermasterTimeout(Time value)Period to wait for a connection to the master node.XpackUsageRequest.BuildermasterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Period to wait for a connection to the master node.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
-
masterTimeout
Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
masterTimeout
public final XpackUsageRequest.Builder masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
build
Builds aXpackUsageRequest.- Specified by:
buildin interfaceObjectBuilder<XpackUsageRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-