public class AlertTarget
extends java.lang.Object
implements java.io.Serializable
A structure containing the alert target ARN and the role ARN.
Constructor and Description |
---|
AlertTarget() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlertTargetArn()
The Amazon Resource Name (ARN) of the notification target to which alerts
are sent.
|
java.lang.String |
getRoleArn()
The ARN of the role that grants permission to send alerts to the
notification target.
|
int |
hashCode() |
void |
setAlertTargetArn(java.lang.String alertTargetArn)
The Amazon Resource Name (ARN) of the notification target to which alerts
are sent.
|
void |
setRoleArn(java.lang.String roleArn)
The ARN of the role that grants permission to send alerts to the
notification target.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AlertTarget |
withAlertTargetArn(java.lang.String alertTargetArn)
The Amazon Resource Name (ARN) of the notification target to which alerts
are sent.
|
AlertTarget |
withRoleArn(java.lang.String roleArn)
The ARN of the role that grants permission to send alerts to the
notification target.
|
public java.lang.String getAlertTargetArn()
The Amazon Resource Name (ARN) of the notification target to which alerts are sent.
The Amazon Resource Name (ARN) of the notification target to which alerts are sent.
public void setAlertTargetArn(java.lang.String alertTargetArn)
The Amazon Resource Name (ARN) of the notification target to which alerts are sent.
alertTargetArn
- The Amazon Resource Name (ARN) of the notification target to which alerts are sent.
public AlertTarget withAlertTargetArn(java.lang.String alertTargetArn)
The Amazon Resource Name (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 Amazon Resource Name (ARN) of the notification target to which alerts are sent.
public java.lang.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(java.lang.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(java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.