@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AutoTuneOptions extends Object implements Serializable, Cloneable, StructuredPojo
Auto-Tune settings when updating a domain. For more information, see Auto-Tune for Amazon OpenSearch Service.
Constructor and Description |
---|
AutoTuneOptions() |
Modifier and Type | Method and Description |
---|---|
AutoTuneOptions |
clone() |
boolean |
equals(Object obj) |
String |
getDesiredState()
Whether Auto-Tune is enabled or disabled.
|
List<AutoTuneMaintenanceSchedule> |
getMaintenanceSchedules()
DEPRECATED.
|
String |
getRollbackOnDisable()
When disabling Auto-Tune, specify
NO_ROLLBACK to retain all prior Auto-Tune settings or
DEFAULT_ROLLBACK to revert to the OpenSearch Service defaults. |
Boolean |
getUseOffPeakWindow()
Whether to use the domain's off-peak
window to deploy configuration changes on the domain rather than a maintenance schedule.
|
int |
hashCode() |
Boolean |
isUseOffPeakWindow()
Whether to use the domain's off-peak
window to deploy configuration changes on the domain rather than a maintenance schedule.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDesiredState(String desiredState)
Whether Auto-Tune is enabled or disabled.
|
void |
setMaintenanceSchedules(Collection<AutoTuneMaintenanceSchedule> maintenanceSchedules)
DEPRECATED.
|
void |
setRollbackOnDisable(String rollbackOnDisable)
When disabling Auto-Tune, specify
NO_ROLLBACK to retain all prior Auto-Tune settings or
DEFAULT_ROLLBACK to revert to the OpenSearch Service defaults. |
void |
setUseOffPeakWindow(Boolean useOffPeakWindow)
Whether to use the domain's off-peak
window to deploy configuration changes on the domain rather than a maintenance schedule.
|
String |
toString()
Returns a string representation of this object.
|
AutoTuneOptions |
withDesiredState(AutoTuneDesiredState desiredState)
Whether Auto-Tune is enabled or disabled.
|
AutoTuneOptions |
withDesiredState(String desiredState)
Whether Auto-Tune is enabled or disabled.
|
AutoTuneOptions |
withMaintenanceSchedules(AutoTuneMaintenanceSchedule... maintenanceSchedules)
DEPRECATED.
|
AutoTuneOptions |
withMaintenanceSchedules(Collection<AutoTuneMaintenanceSchedule> maintenanceSchedules)
DEPRECATED.
|
AutoTuneOptions |
withRollbackOnDisable(RollbackOnDisable rollbackOnDisable)
When disabling Auto-Tune, specify
NO_ROLLBACK to retain all prior Auto-Tune settings or
DEFAULT_ROLLBACK to revert to the OpenSearch Service defaults. |
AutoTuneOptions |
withRollbackOnDisable(String rollbackOnDisable)
When disabling Auto-Tune, specify
NO_ROLLBACK to retain all prior Auto-Tune settings or
DEFAULT_ROLLBACK to revert to the OpenSearch Service defaults. |
AutoTuneOptions |
withUseOffPeakWindow(Boolean useOffPeakWindow)
Whether to use the domain's off-peak
window to deploy configuration changes on the domain rather than a maintenance schedule.
|
public void setDesiredState(String desiredState)
Whether Auto-Tune is enabled or disabled.
desiredState
- Whether Auto-Tune is enabled or disabled.AutoTuneDesiredState
public String getDesiredState()
Whether Auto-Tune is enabled or disabled.
AutoTuneDesiredState
public AutoTuneOptions withDesiredState(String desiredState)
Whether Auto-Tune is enabled or disabled.
desiredState
- Whether Auto-Tune is enabled or disabled.AutoTuneDesiredState
public AutoTuneOptions withDesiredState(AutoTuneDesiredState desiredState)
Whether Auto-Tune is enabled or disabled.
desiredState
- Whether Auto-Tune is enabled or disabled.AutoTuneDesiredState
public void setRollbackOnDisable(String rollbackOnDisable)
When disabling Auto-Tune, specify NO_ROLLBACK
to retain all prior Auto-Tune settings or
DEFAULT_ROLLBACK
to revert to the OpenSearch Service defaults. If you specify
DEFAULT_ROLLBACK
, you must include a MaintenanceSchedule
in the request. Otherwise,
OpenSearch Service is unable to perform the rollback.
rollbackOnDisable
- When disabling Auto-Tune, specify NO_ROLLBACK
to retain all prior Auto-Tune settings or
DEFAULT_ROLLBACK
to revert to the OpenSearch Service defaults. If you specify
DEFAULT_ROLLBACK
, you must include a MaintenanceSchedule
in the request.
Otherwise, OpenSearch Service is unable to perform the rollback.RollbackOnDisable
public String getRollbackOnDisable()
When disabling Auto-Tune, specify NO_ROLLBACK
to retain all prior Auto-Tune settings or
DEFAULT_ROLLBACK
to revert to the OpenSearch Service defaults. If you specify
DEFAULT_ROLLBACK
, you must include a MaintenanceSchedule
in the request. Otherwise,
OpenSearch Service is unable to perform the rollback.
NO_ROLLBACK
to retain all prior Auto-Tune settings or
DEFAULT_ROLLBACK
to revert to the OpenSearch Service defaults. If you specify
DEFAULT_ROLLBACK
, you must include a MaintenanceSchedule
in the request.
Otherwise, OpenSearch Service is unable to perform the rollback.RollbackOnDisable
public AutoTuneOptions withRollbackOnDisable(String rollbackOnDisable)
When disabling Auto-Tune, specify NO_ROLLBACK
to retain all prior Auto-Tune settings or
DEFAULT_ROLLBACK
to revert to the OpenSearch Service defaults. If you specify
DEFAULT_ROLLBACK
, you must include a MaintenanceSchedule
in the request. Otherwise,
OpenSearch Service is unable to perform the rollback.
rollbackOnDisable
- When disabling Auto-Tune, specify NO_ROLLBACK
to retain all prior Auto-Tune settings or
DEFAULT_ROLLBACK
to revert to the OpenSearch Service defaults. If you specify
DEFAULT_ROLLBACK
, you must include a MaintenanceSchedule
in the request.
Otherwise, OpenSearch Service is unable to perform the rollback.RollbackOnDisable
public AutoTuneOptions withRollbackOnDisable(RollbackOnDisable rollbackOnDisable)
When disabling Auto-Tune, specify NO_ROLLBACK
to retain all prior Auto-Tune settings or
DEFAULT_ROLLBACK
to revert to the OpenSearch Service defaults. If you specify
DEFAULT_ROLLBACK
, you must include a MaintenanceSchedule
in the request. Otherwise,
OpenSearch Service is unable to perform the rollback.
rollbackOnDisable
- When disabling Auto-Tune, specify NO_ROLLBACK
to retain all prior Auto-Tune settings or
DEFAULT_ROLLBACK
to revert to the OpenSearch Service defaults. If you specify
DEFAULT_ROLLBACK
, you must include a MaintenanceSchedule
in the request.
Otherwise, OpenSearch Service is unable to perform the rollback.RollbackOnDisable
public List<AutoTuneMaintenanceSchedule> getMaintenanceSchedules()
DEPRECATED. Use off-peak window instead.
A list of maintenance schedules during which Auto-Tune can deploy changes.
A list of maintenance schedules during which Auto-Tune can deploy changes.
public void setMaintenanceSchedules(Collection<AutoTuneMaintenanceSchedule> maintenanceSchedules)
DEPRECATED. Use off-peak window instead.
A list of maintenance schedules during which Auto-Tune can deploy changes.
maintenanceSchedules
- DEPRECATED. Use off-peak
window instead.
A list of maintenance schedules during which Auto-Tune can deploy changes.
public AutoTuneOptions withMaintenanceSchedules(AutoTuneMaintenanceSchedule... maintenanceSchedules)
DEPRECATED. Use off-peak window instead.
A list of maintenance schedules during which Auto-Tune can deploy changes.
NOTE: This method appends the values to the existing list (if any). Use
setMaintenanceSchedules(java.util.Collection)
or withMaintenanceSchedules(java.util.Collection)
if you want to override the existing values.
maintenanceSchedules
- DEPRECATED. Use off-peak
window instead.
A list of maintenance schedules during which Auto-Tune can deploy changes.
public AutoTuneOptions withMaintenanceSchedules(Collection<AutoTuneMaintenanceSchedule> maintenanceSchedules)
DEPRECATED. Use off-peak window instead.
A list of maintenance schedules during which Auto-Tune can deploy changes.
maintenanceSchedules
- DEPRECATED. Use off-peak
window instead.
A list of maintenance schedules during which Auto-Tune can deploy changes.
public void setUseOffPeakWindow(Boolean useOffPeakWindow)
Whether to use the domain's off-peak window to deploy configuration changes on the domain rather than a maintenance schedule.
useOffPeakWindow
- Whether to use the domain's off-peak
window to deploy configuration changes on the domain rather than a maintenance schedule.public Boolean getUseOffPeakWindow()
Whether to use the domain's off-peak window to deploy configuration changes on the domain rather than a maintenance schedule.
public AutoTuneOptions withUseOffPeakWindow(Boolean useOffPeakWindow)
Whether to use the domain's off-peak window to deploy configuration changes on the domain rather than a maintenance schedule.
useOffPeakWindow
- Whether to use the domain's off-peak
window to deploy configuration changes on the domain rather than a maintenance schedule.public Boolean isUseOffPeakWindow()
Whether to use the domain's off-peak window to deploy configuration changes on the domain rather than a maintenance schedule.
public String toString()
toString
in class Object
Object.toString()
public AutoTuneOptions clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.