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 Alarm
clone()
boolean
equals(Object obj)
String
getAlarmARN()
The Amazon Resource Name (ARN) of the alarm.String
getAlarmName()
The name of the alarm.int
hashCode()
void
setAlarmARN(String alarmARN)
The Amazon Resource Name (ARN) of the alarm.void
setAlarmName(String alarmName)
The name of the alarm.String
toString()
Returns a string representation of this object; useful for testing and debugging.Alarm
withAlarmARN(String alarmARN)
The Amazon Resource Name (ARN) of the alarm.Alarm
withAlarmName(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-