@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AutoTuneOptions extends Object implements Serializable, Cloneable, StructuredPojo
The Auto-Tune options: the Auto-Tune desired state for the domain, rollback state when disabling Auto-Tune options and list of maintenance schedules.
Constructor and Description |
---|
AutoTuneOptions() |
Modifier and Type | Method and Description |
---|---|
AutoTuneOptions |
clone() |
boolean |
equals(Object obj) |
String |
getDesiredState()
The Auto-Tune desired state.
|
List<AutoTuneMaintenanceSchedule> |
getMaintenanceSchedules()
A list of maintenance schedules.
|
String |
getRollbackOnDisable()
The rollback state while disabling Auto-Tune for the domain.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDesiredState(String desiredState)
The Auto-Tune desired state.
|
void |
setMaintenanceSchedules(Collection<AutoTuneMaintenanceSchedule> maintenanceSchedules)
A list of maintenance schedules.
|
void |
setRollbackOnDisable(String rollbackOnDisable)
The rollback state while disabling Auto-Tune for the domain.
|
String |
toString()
Returns a string representation of this object.
|
AutoTuneOptions |
withDesiredState(AutoTuneDesiredState desiredState)
The Auto-Tune desired state.
|
AutoTuneOptions |
withDesiredState(String desiredState)
The Auto-Tune desired state.
|
AutoTuneOptions |
withMaintenanceSchedules(AutoTuneMaintenanceSchedule... maintenanceSchedules)
A list of maintenance schedules.
|
AutoTuneOptions |
withMaintenanceSchedules(Collection<AutoTuneMaintenanceSchedule> maintenanceSchedules)
A list of maintenance schedules.
|
AutoTuneOptions |
withRollbackOnDisable(RollbackOnDisable rollbackOnDisable)
The rollback state while disabling Auto-Tune for the domain.
|
AutoTuneOptions |
withRollbackOnDisable(String rollbackOnDisable)
The rollback state while disabling Auto-Tune for the domain.
|
public void setDesiredState(String desiredState)
The Auto-Tune desired state. Valid values are ENABLED and DISABLED.
desiredState
- The Auto-Tune desired state. Valid values are ENABLED and DISABLED.AutoTuneDesiredState
public String getDesiredState()
The Auto-Tune desired state. Valid values are ENABLED and DISABLED.
AutoTuneDesiredState
public AutoTuneOptions withDesiredState(String desiredState)
The Auto-Tune desired state. Valid values are ENABLED and DISABLED.
desiredState
- The Auto-Tune desired state. Valid values are ENABLED and DISABLED.AutoTuneDesiredState
public AutoTuneOptions withDesiredState(AutoTuneDesiredState desiredState)
The Auto-Tune desired state. Valid values are ENABLED and DISABLED.
desiredState
- The Auto-Tune desired state. Valid values are ENABLED and DISABLED.AutoTuneDesiredState
public void setRollbackOnDisable(String rollbackOnDisable)
The rollback state while disabling Auto-Tune for the domain. Valid values are NO_ROLLBACK and DEFAULT_ROLLBACK.
rollbackOnDisable
- The rollback state while disabling Auto-Tune for the domain. Valid values are NO_ROLLBACK and
DEFAULT_ROLLBACK.RollbackOnDisable
public String getRollbackOnDisable()
The rollback state while disabling Auto-Tune for the domain. Valid values are NO_ROLLBACK and DEFAULT_ROLLBACK.
RollbackOnDisable
public AutoTuneOptions withRollbackOnDisable(String rollbackOnDisable)
The rollback state while disabling Auto-Tune for the domain. Valid values are NO_ROLLBACK and DEFAULT_ROLLBACK.
rollbackOnDisable
- The rollback state while disabling Auto-Tune for the domain. Valid values are NO_ROLLBACK and
DEFAULT_ROLLBACK.RollbackOnDisable
public AutoTuneOptions withRollbackOnDisable(RollbackOnDisable rollbackOnDisable)
The rollback state while disabling Auto-Tune for the domain. Valid values are NO_ROLLBACK and DEFAULT_ROLLBACK.
rollbackOnDisable
- The rollback state while disabling Auto-Tune for the domain. Valid values are NO_ROLLBACK and
DEFAULT_ROLLBACK.RollbackOnDisable
public List<AutoTuneMaintenanceSchedule> getMaintenanceSchedules()
A list of maintenance schedules. See Auto-Tune for Amazon OpenSearch Service for more information.
public void setMaintenanceSchedules(Collection<AutoTuneMaintenanceSchedule> maintenanceSchedules)
A list of maintenance schedules. See Auto-Tune for Amazon OpenSearch Service for more information.
maintenanceSchedules
- A list of maintenance schedules. See Auto-Tune for Amazon OpenSearch Service for more information.public AutoTuneOptions withMaintenanceSchedules(AutoTuneMaintenanceSchedule... maintenanceSchedules)
A list of maintenance schedules. See Auto-Tune for Amazon OpenSearch Service for more information.
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
- A list of maintenance schedules. See Auto-Tune for Amazon OpenSearch Service for more information.public AutoTuneOptions withMaintenanceSchedules(Collection<AutoTuneMaintenanceSchedule> maintenanceSchedules)
A list of maintenance schedules. See Auto-Tune for Amazon OpenSearch Service for more information.
maintenanceSchedules
- A list of maintenance schedules. See Auto-Tune for Amazon OpenSearch Service for more information.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.