public class AlarmIdentifier
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A complex type that contains information to uniquely identify the CloudWatch alarm that you're associating with a Route 53 health check.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
name
The name of the CloudWatch alarm.
|
private java.lang.String |
region
The
CloudWatchRegion that the CloudWatch alarm was created
in. |
Constructor and Description |
---|
AlarmIdentifier() |
Modifier and Type | Method and Description |
---|---|
AlarmIdentifier |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getName()
The name of the CloudWatch alarm.
|
java.lang.String |
getRegion()
The
CloudWatchRegion that the CloudWatch alarm was created
in. |
int |
hashCode() |
void |
setName(java.lang.String name)
The name of the CloudWatch alarm.
|
void |
setRegion(CloudWatchRegion region)
The
CloudWatchRegion that the CloudWatch alarm was created
in. |
void |
setRegion(java.lang.String region)
The
CloudWatchRegion that the CloudWatch alarm was created
in. |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AlarmIdentifier |
withName(java.lang.String name)
The name of the CloudWatch alarm.
|
AlarmIdentifier |
withRegion(CloudWatchRegion region)
The
CloudWatchRegion that the CloudWatch alarm was created
in. |
AlarmIdentifier |
withRegion(java.lang.String region)
The
CloudWatchRegion that the CloudWatch alarm was created
in. |
private java.lang.String region
The CloudWatchRegion
that the CloudWatch alarm was created
in.
private java.lang.String name
The name of the CloudWatch alarm.
public void setRegion(java.lang.String region)
The CloudWatchRegion
that the CloudWatch alarm was created
in.
region
- The CloudWatchRegion
that the CloudWatch alarm was
created in.CloudWatchRegion
public java.lang.String getRegion()
The CloudWatchRegion
that the CloudWatch alarm was created
in.
CloudWatchRegion
that the CloudWatch alarm was
created in.CloudWatchRegion
public AlarmIdentifier withRegion(java.lang.String region)
The CloudWatchRegion
that the CloudWatch alarm was created
in.
region
- The CloudWatchRegion
that the CloudWatch alarm was
created in.CloudWatchRegion
public void setRegion(CloudWatchRegion region)
The CloudWatchRegion
that the CloudWatch alarm was created
in.
region
- The CloudWatchRegion
that the CloudWatch alarm was
created in.CloudWatchRegion
public AlarmIdentifier withRegion(CloudWatchRegion region)
The CloudWatchRegion
that the CloudWatch alarm was created
in.
region
- The CloudWatchRegion
that the CloudWatch alarm was
created in.CloudWatchRegion
public void setName(java.lang.String name)
The name of the CloudWatch alarm.
name
- The name of the CloudWatch alarm.public java.lang.String getName()
The name of the CloudWatch alarm.
public AlarmIdentifier withName(java.lang.String name)
The name of the CloudWatch alarm.
name
- The name of the CloudWatch alarm.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public AlarmIdentifier clone()
clone
in class java.lang.Object