public class AlertTarget extends Object implements Serializable
A structure containing the alert target ARN and the role ARN.
| Constructor and Description |
|---|
AlertTarget() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAlertTargetArn()
The ARN of the notification target to which alerts are sent.
|
String |
getRoleArn()
The ARN of the role that grants permission to send alerts to the
notification target.
|
int |
hashCode() |
void |
setAlertTargetArn(String alertTargetArn)
The ARN of the notification target to which alerts are sent.
|
void |
setRoleArn(String roleArn)
The ARN of the role that grants permission to send alerts to the
notification target.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AlertTarget |
withAlertTargetArn(String alertTargetArn)
The ARN of the notification target to which alerts are sent.
|
AlertTarget |
withRoleArn(String roleArn)
The ARN of the role that grants permission to send alerts to the
notification target.
|
public String getAlertTargetArn()
The ARN of the notification target to which alerts are sent.
The ARN of the notification target to which alerts are sent.
public void setAlertTargetArn(String alertTargetArn)
The ARN of the notification target to which alerts are sent.
alertTargetArn - The ARN of the notification target to which alerts are sent.
public AlertTarget withAlertTargetArn(String alertTargetArn)
The ARN of the notification target to which alerts are sent.
Returns a reference to this object so that method calls can be chained together.
alertTargetArn - The ARN of the notification target to which alerts are sent.
public String getRoleArn()
The ARN of the role that grants permission to send alerts to the notification target.
Constraints:
Length: 20 - 2048
The ARN of the role that grants permission to send alerts to the notification target.
public void setRoleArn(String roleArn)
The ARN of the role that grants permission to send alerts to the notification target.
Constraints:
Length: 20 - 2048
roleArn - The ARN of the role that grants permission to send alerts to the notification target.
public AlertTarget withRoleArn(String roleArn)
The ARN of the role that grants permission to send alerts to the notification target.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 20 - 2048
roleArn - The ARN of the role that grants permission to send alerts to the notification target.
public String toString()
toString in class ObjectObject.toString()Copyright © 2019. All rights reserved.