Class GetLifecycleRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ilm.GetLifecycleRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<GetLifecycleRequest>
- Enclosing class:
- GetLifecycleRequest
public static class GetLifecycleRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<GetLifecycleRequest>
Builder for
GetLifecycleRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GetLifecycleRequest
build()
Builds aGetLifecycleRequest
.GetLifecycleRequest.Builder
masterTimeout(Time value)
Period to wait for a connection to the master node.GetLifecycleRequest.Builder
masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Period to wait for a connection to the master node.GetLifecycleRequest.Builder
name(java.lang.String value)
Identifier for the policy.GetLifecycleRequest.Builder
timeout(Time value)
Period to wait for a response.GetLifecycleRequest.Builder
timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Period to wait for a response.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
-
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 GetLifecycleRequest.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
-
name
Identifier for the policy.API name:
policy
-
timeout
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
public final GetLifecycleRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)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
-
build
Builds aGetLifecycleRequest
.- Specified by:
build
in interfaceObjectBuilder<GetLifecycleRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-