Class Alarm
- java.lang.Object
-
- com.amazonaws.services.applicationautoscaling.model.Alarm
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Alarm extends Object implements Serializable, Cloneable
An object representing a CloudWatch alarm associated with a scaling policy.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Alarm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Alarmclone()booleanequals(Object obj)StringgetAlarmARN()The Amazon Resource Name (ARN) of the alarm.StringgetAlarmName()The name of the alarm.inthashCode()voidsetAlarmARN(String alarmARN)The Amazon Resource Name (ARN) of the alarm.voidsetAlarmName(String alarmName)The name of the alarm.StringtoString()Returns a string representation of this object; useful for testing and debugging.AlarmwithAlarmARN(String alarmARN)The Amazon Resource Name (ARN) of the alarm.AlarmwithAlarmName(String alarmName)The name of the alarm.
-
-
-
Method Detail
-
setAlarmName
public void setAlarmName(String alarmName)
The name of the alarm.
- Parameters:
alarmName- The name of the alarm.
-
getAlarmName
public String getAlarmName()
The name of the alarm.
- Returns:
- The name of the alarm.
-
withAlarmName
public Alarm withAlarmName(String alarmName)
The name of the alarm.
- Parameters:
alarmName- The name of the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setAlarmARN
public void setAlarmARN(String alarmARN)
The Amazon Resource Name (ARN) of the alarm.
- Parameters:
alarmARN- The Amazon Resource Name (ARN) of the alarm.
-
getAlarmARN
public String getAlarmARN()
The Amazon Resource Name (ARN) of the alarm.
- Returns:
- The Amazon Resource Name (ARN) of the alarm.
-
withAlarmARN
public Alarm withAlarmARN(String alarmARN)
The Amazon Resource Name (ARN) of the alarm.
- Parameters:
alarmARN- The Amazon Resource Name (ARN) of the alarm.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-