Class MigrateToDataTiersRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<MigrateToDataTiersRequest.Builder>
co.elastic.clients.elasticsearch.ilm.MigrateToDataTiersRequest.Builder
- All Implemented Interfaces:
WithJson<MigrateToDataTiersRequest.Builder>,ObjectBuilder<MigrateToDataTiersRequest>
- Enclosing class:
- MigrateToDataTiersRequest
public static class MigrateToDataTiersRequest.Builder
extends RequestBase.AbstractBuilder<MigrateToDataTiersRequest.Builder>
implements ObjectBuilder<MigrateToDataTiersRequest>
Builder for
MigrateToDataTiersRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aMigrateToDataTiersRequest.If true, simulates the migration from node attributes based allocation filters to data tiers, but does not perform the migration.legacyTemplateToDelete(String value) API name:legacy_template_to_deletemasterTimeout(Time value) The period to wait for a connection to the master node.The period to wait for a connection to the master node.nodeAttribute(String value) API name:node_attributeprotected MigrateToDataTiersRequest.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dryRun
If true, simulates the migration from node attributes based allocation filters to data tiers, but does not perform the migration. This provides a way to retrieve the indices and ILM policies that need to be migrated.API name:
dry_run -
legacyTemplateToDelete
API name:legacy_template_to_delete -
masterTimeout
The 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. It can also be set to-1to indicate that the request should never timeout.API name:
master_timeout -
masterTimeout
public final MigrateToDataTiersRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The 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. It can also be set to-1to indicate that the request should never timeout.API name:
master_timeout -
nodeAttribute
API name:node_attribute -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<MigrateToDataTiersRequest.Builder>
-
build
Builds aMigrateToDataTiersRequest.- Specified by:
buildin interfaceObjectBuilder<MigrateToDataTiersRequest>- Throws:
NullPointerException- if some of the required fields are null.
-