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