public class AuditNotificationTarget extends Object implements Serializable
Information about the targets to which audit notifications are sent.
Constructor and Description |
---|
AuditNotificationTarget() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Boolean |
getEnabled()
True if notifications to the target are enabled.
|
String |
getRoleArn()
The ARN of the role that grants permission to send notifications to the
target.
|
String |
getTargetArn()
The ARN of the target (SNS topic) to which audit notifications are sent.
|
int |
hashCode() |
Boolean |
isEnabled()
True if notifications to the target are enabled.
|
void |
setEnabled(Boolean enabled)
True if notifications to the target are enabled.
|
void |
setRoleArn(String roleArn)
The ARN of the role that grants permission to send notifications to the
target.
|
void |
setTargetArn(String targetArn)
The ARN of the target (SNS topic) to which audit notifications are sent.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AuditNotificationTarget |
withEnabled(Boolean enabled)
True if notifications to the target are enabled.
|
AuditNotificationTarget |
withRoleArn(String roleArn)
The ARN of the role that grants permission to send notifications to the
target.
|
AuditNotificationTarget |
withTargetArn(String targetArn)
The ARN of the target (SNS topic) to which audit notifications are sent.
|
public String getTargetArn()
The ARN of the target (SNS topic) to which audit notifications are sent.
The ARN of the target (SNS topic) to which audit notifications are sent.
public void setTargetArn(String targetArn)
The ARN of the target (SNS topic) to which audit notifications are sent.
targetArn
- The ARN of the target (SNS topic) to which audit notifications are sent.
public AuditNotificationTarget withTargetArn(String targetArn)
The ARN of the target (SNS topic) to which audit notifications are sent.
Returns a reference to this object so that method calls can be chained together.
targetArn
- The ARN of the target (SNS topic) to which audit notifications are sent.
public String getRoleArn()
The ARN of the role that grants permission to send notifications to the target.
Constraints:
Length: 20 - 2048
The ARN of the role that grants permission to send notifications to the target.
public void setRoleArn(String roleArn)
The ARN of the role that grants permission to send notifications to the target.
Constraints:
Length: 20 - 2048
roleArn
- The ARN of the role that grants permission to send notifications to the target.
public AuditNotificationTarget withRoleArn(String roleArn)
The ARN of the role that grants permission to send notifications to the 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 notifications to the target.
public Boolean isEnabled()
True if notifications to the target are enabled.
True if notifications to the target are enabled.
public Boolean getEnabled()
True if notifications to the target are enabled.
True if notifications to the target are enabled.
public void setEnabled(Boolean enabled)
True if notifications to the target are enabled.
enabled
- True if notifications to the target are enabled.
public AuditNotificationTarget withEnabled(Boolean enabled)
True if notifications to the target are enabled.
Returns a reference to this object so that method calls can be chained together.
enabled
- True if notifications to the target are enabled.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2019. All rights reserved.