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