@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AlarmSpecification extends Object implements Serializable, Cloneable
Specifies the CloudWatch alarm specification to use in an instance refresh.
Constructor and Description |
---|
AlarmSpecification() |
Modifier and Type | Method and Description |
---|---|
AlarmSpecification |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAlarms()
The names of one or more CloudWatch alarms to monitor for the instance refresh.
|
int |
hashCode() |
void |
setAlarms(Collection<String> alarms)
The names of one or more CloudWatch alarms to monitor for the instance refresh.
|
String |
toString()
Returns a string representation of this object.
|
AlarmSpecification |
withAlarms(Collection<String> alarms)
The names of one or more CloudWatch alarms to monitor for the instance refresh.
|
AlarmSpecification |
withAlarms(String... alarms)
The names of one or more CloudWatch alarms to monitor for the instance refresh.
|
public List<String> getAlarms()
The names of one or more CloudWatch alarms to monitor for the instance refresh. You can specify up to 10 alarms.
public void setAlarms(Collection<String> alarms)
The names of one or more CloudWatch alarms to monitor for the instance refresh. You can specify up to 10 alarms.
alarms
- The names of one or more CloudWatch alarms to monitor for the instance refresh. You can specify up to 10
alarms.public AlarmSpecification withAlarms(String... alarms)
The names of one or more CloudWatch alarms to monitor for the instance refresh. You can specify up to 10 alarms.
NOTE: This method appends the values to the existing list (if any). Use
setAlarms(java.util.Collection)
or withAlarms(java.util.Collection)
if you want to override the
existing values.
alarms
- The names of one or more CloudWatch alarms to monitor for the instance refresh. You can specify up to 10
alarms.public AlarmSpecification withAlarms(Collection<String> alarms)
The names of one or more CloudWatch alarms to monitor for the instance refresh. You can specify up to 10 alarms.
alarms
- The names of one or more CloudWatch alarms to monitor for the instance refresh. You can specify up to 10
alarms.public String toString()
toString
in class Object
Object.toString()
public AlarmSpecification clone()