Class Actions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Actions.Builder>
co.elastic.clients.elasticsearch.ilm.Actions.Builder
- All Implemented Interfaces:
WithJson<Actions.Builder>
,ObjectBuilder<Actions>
- Enclosing class:
- Actions
public static class Actions.Builder
extends WithJsonObjectBuilderBase<Actions.Builder>
implements ObjectBuilder<Actions>
Builder for
Actions
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Actions.Builder
allocate
(AllocateAction value) Phases allowed: warm, cold.final Actions.Builder
Phases allowed: warm, cold.build()
Builds aActions
.final Actions.Builder
delete
(DeleteAction value) Phases allowed: delete.final Actions.Builder
Phases allowed: delete.final Actions.Builder
downsample
(DownsampleAction value) Phases allowed: hot, warm, cold.final Actions.Builder
Phases allowed: hot, warm, cold.final Actions.Builder
forcemerge
(ForceMergeAction value) Phases allowed: hot, warm.final Actions.Builder
Phases allowed: hot, warm.final Actions.Builder
freeze
(EmptyObject value) Deprecated.7.0.0final Actions.Builder
Deprecated.7.0.0final Actions.Builder
migrate
(MigrateAction value) Phases allowed: warm, cold.final Actions.Builder
Phases allowed: warm, cold.final Actions.Builder
readonly
(EmptyObject value) Phases allowed: hot, warm, cold.final Actions.Builder
Phases allowed: hot, warm, cold.final Actions.Builder
rollover
(RolloverAction value) Phases allowed: hot.final Actions.Builder
Phases allowed: hot.final Actions.Builder
Phases allowed: hot, cold, frozen.final Actions.Builder
searchableSnapshot
(Function<SearchableSnapshotAction.Builder, ObjectBuilder<SearchableSnapshotAction>> fn) Phases allowed: hot, cold, frozen.protected Actions.Builder
self()
final Actions.Builder
setPriority
(SetPriorityAction value) Phases allowed: hot, warm, cold.final Actions.Builder
Phases allowed: hot, warm, cold.final Actions.Builder
shrink
(ShrinkAction value) Phases allowed: hot, warm.final Actions.Builder
Phases allowed: hot, warm.final Actions.Builder
unfollow
(EmptyObject value) Phases allowed: hot, warm, cold, frozen.final Actions.Builder
Phases allowed: hot, warm, cold, frozen.final Actions.Builder
Phases allowed: delete.final Actions.Builder
Phases allowed: delete.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocate
Phases allowed: warm, cold.API name:
allocate
-
allocate
public final Actions.Builder allocate(Function<AllocateAction.Builder, ObjectBuilder<AllocateAction>> fn) Phases allowed: warm, cold.API name:
allocate
-
delete
Phases allowed: delete.API name:
delete
-
delete
Phases allowed: delete.API name:
delete
-
downsample
Phases allowed: hot, warm, cold.API name:
downsample
-
downsample
public final Actions.Builder downsample(Function<DownsampleAction.Builder, ObjectBuilder<DownsampleAction>> fn) Phases allowed: hot, warm, cold.API name:
downsample
-
freeze
Deprecated.7.0.0The freeze action is a noop in 8.xAPI name:
freeze
-
freeze
@Deprecated public final Actions.Builder freeze(Function<EmptyObject.Builder, ObjectBuilder<EmptyObject>> fn) Deprecated.7.0.0The freeze action is a noop in 8.xAPI name:
freeze
-
forcemerge
Phases allowed: hot, warm.API name:
forcemerge
-
forcemerge
public final Actions.Builder forcemerge(Function<ForceMergeAction.Builder, ObjectBuilder<ForceMergeAction>> fn) Phases allowed: hot, warm.API name:
forcemerge
-
migrate
Phases allowed: warm, cold.API name:
migrate
-
migrate
public final Actions.Builder migrate(Function<MigrateAction.Builder, ObjectBuilder<MigrateAction>> fn) Phases allowed: warm, cold.API name:
migrate
-
readonly
Phases allowed: hot, warm, cold.API name:
readonly
-
readonly
Phases allowed: hot, warm, cold.API name:
readonly
-
rollover
Phases allowed: hot.API name:
rollover
-
rollover
public final Actions.Builder rollover(Function<RolloverAction.Builder, ObjectBuilder<RolloverAction>> fn) Phases allowed: hot.API name:
rollover
-
setPriority
Phases allowed: hot, warm, cold.API name:
set_priority
-
setPriority
public final Actions.Builder setPriority(Function<SetPriorityAction.Builder, ObjectBuilder<SetPriorityAction>> fn) Phases allowed: hot, warm, cold.API name:
set_priority
-
searchableSnapshot
Phases allowed: hot, cold, frozen.API name:
searchable_snapshot
-
searchableSnapshot
public final Actions.Builder searchableSnapshot(Function<SearchableSnapshotAction.Builder, ObjectBuilder<SearchableSnapshotAction>> fn) Phases allowed: hot, cold, frozen.API name:
searchable_snapshot
-
shrink
Phases allowed: hot, warm.API name:
shrink
-
shrink
Phases allowed: hot, warm.API name:
shrink
-
unfollow
Phases allowed: hot, warm, cold, frozen.API name:
unfollow
-
unfollow
Phases allowed: hot, warm, cold, frozen.API name:
unfollow
-
waitForSnapshot
Phases allowed: delete.API name:
wait_for_snapshot
-
waitForSnapshot
public final Actions.Builder waitForSnapshot(Function<WaitForSnapshotAction.Builder, ObjectBuilder<WaitForSnapshotAction>> fn) Phases allowed: delete.API name:
wait_for_snapshot
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<Actions.Builder>
-
build
Builds aActions
.- Specified by:
build
in interfaceObjectBuilder<Actions>
- Throws:
NullPointerException
- if some of the required fields are null.
-