Interface AutoTuneOptions.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<AutoTuneOptions.Builder,AutoTuneOptions>,SdkBuilder<AutoTuneOptions.Builder,AutoTuneOptions>,SdkPojo
- Enclosing class:
- AutoTuneOptions
public static interface AutoTuneOptions.Builder extends SdkPojo, CopyableBuilder<AutoTuneOptions.Builder,AutoTuneOptions>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AutoTuneOptions.BuilderdesiredState(String desiredState)Whether Auto-Tune is enabled or disabled.AutoTuneOptions.BuilderdesiredState(AutoTuneDesiredState desiredState)Whether Auto-Tune is enabled or disabled.AutoTuneOptions.BuildermaintenanceSchedules(Collection<AutoTuneMaintenanceSchedule> maintenanceSchedules)DEPRECATED.AutoTuneOptions.BuildermaintenanceSchedules(Consumer<AutoTuneMaintenanceSchedule.Builder>... maintenanceSchedules)DEPRECATED.AutoTuneOptions.BuildermaintenanceSchedules(AutoTuneMaintenanceSchedule... maintenanceSchedules)DEPRECATED.AutoTuneOptions.BuilderrollbackOnDisable(String rollbackOnDisable)When disabling Auto-Tune, specifyNO_ROLLBACKto retain all prior Auto-Tune settings orDEFAULT_ROLLBACKto revert to the OpenSearch Service defaults.AutoTuneOptions.BuilderrollbackOnDisable(RollbackOnDisable rollbackOnDisable)When disabling Auto-Tune, specifyNO_ROLLBACKto retain all prior Auto-Tune settings orDEFAULT_ROLLBACKto revert to the OpenSearch Service defaults.AutoTuneOptions.BuilderuseOffPeakWindow(Boolean useOffPeakWindow)Whether to use the domain's off-peak window to deploy configuration changes on the domain rather than a maintenance schedule.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
desiredState
AutoTuneOptions.Builder desiredState(String desiredState)
Whether Auto-Tune is enabled or disabled.
- Parameters:
desiredState- Whether Auto-Tune is enabled or disabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AutoTuneDesiredState,AutoTuneDesiredState
-
desiredState
AutoTuneOptions.Builder desiredState(AutoTuneDesiredState desiredState)
Whether Auto-Tune is enabled or disabled.
- Parameters:
desiredState- Whether Auto-Tune is enabled or disabled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
AutoTuneDesiredState,AutoTuneDesiredState
-
rollbackOnDisable
AutoTuneOptions.Builder rollbackOnDisable(String rollbackOnDisable)
When disabling Auto-Tune, specify
NO_ROLLBACKto retain all prior Auto-Tune settings orDEFAULT_ROLLBACKto revert to the OpenSearch Service defaults. If you specifyDEFAULT_ROLLBACK, you must include aMaintenanceSchedulein the request. Otherwise, OpenSearch Service is unable to perform the rollback.- Parameters:
rollbackOnDisable- When disabling Auto-Tune, specifyNO_ROLLBACKto retain all prior Auto-Tune settings orDEFAULT_ROLLBACKto revert to the OpenSearch Service defaults. If you specifyDEFAULT_ROLLBACK, you must include aMaintenanceSchedulein the request. Otherwise, OpenSearch Service is unable to perform the rollback.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RollbackOnDisable,RollbackOnDisable
-
rollbackOnDisable
AutoTuneOptions.Builder rollbackOnDisable(RollbackOnDisable rollbackOnDisable)
When disabling Auto-Tune, specify
NO_ROLLBACKto retain all prior Auto-Tune settings orDEFAULT_ROLLBACKto revert to the OpenSearch Service defaults. If you specifyDEFAULT_ROLLBACK, you must include aMaintenanceSchedulein the request. Otherwise, OpenSearch Service is unable to perform the rollback.- Parameters:
rollbackOnDisable- When disabling Auto-Tune, specifyNO_ROLLBACKto retain all prior Auto-Tune settings orDEFAULT_ROLLBACKto revert to the OpenSearch Service defaults. If you specifyDEFAULT_ROLLBACK, you must include aMaintenanceSchedulein the request. Otherwise, OpenSearch Service is unable to perform the rollback.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
RollbackOnDisable,RollbackOnDisable
-
maintenanceSchedules
AutoTuneOptions.Builder maintenanceSchedules(Collection<AutoTuneMaintenanceSchedule> maintenanceSchedules)
DEPRECATED. Use off-peak window instead.
A list of maintenance schedules during which Auto-Tune can deploy changes.
- Parameters:
maintenanceSchedules- DEPRECATED. Use off-peak window instead.A list of maintenance schedules during which Auto-Tune can deploy changes.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maintenanceSchedules
AutoTuneOptions.Builder maintenanceSchedules(AutoTuneMaintenanceSchedule... maintenanceSchedules)
DEPRECATED. Use off-peak window instead.
A list of maintenance schedules during which Auto-Tune can deploy changes.
- Parameters:
maintenanceSchedules- DEPRECATED. Use off-peak window instead.A list of maintenance schedules during which Auto-Tune can deploy changes.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maintenanceSchedules
AutoTuneOptions.Builder maintenanceSchedules(Consumer<AutoTuneMaintenanceSchedule.Builder>... maintenanceSchedules)
DEPRECATED. Use off-peak window instead.
A list of maintenance schedules during which Auto-Tune can deploy changes.
This is a convenience method that creates an instance of theAutoTuneMaintenanceSchedule.Builderavoiding the need to create one manually viaAutoTuneMaintenanceSchedule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#maintenanceSchedules(List.) - Parameters:
maintenanceSchedules- a consumer that will call methods onAutoTuneMaintenanceSchedule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#maintenanceSchedules(java.util.Collection)
-
useOffPeakWindow
AutoTuneOptions.Builder useOffPeakWindow(Boolean useOffPeakWindow)
Whether to use the domain's off-peak window to deploy configuration changes on the domain rather than a maintenance schedule.
- Parameters:
useOffPeakWindow- Whether to use the domain's off-peak window to deploy configuration changes on the domain rather than a maintenance schedule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-