public class Trail extends Object implements Serializable
The settings for a trail.
| Constructor and Description |
|---|
Trail() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getCloudWatchLogsLogGroupArn()
Returns the value of the CloudWatchLogsLogGroupArn property for this
object.
|
String |
getCloudWatchLogsRoleArn()
Returns the value of the CloudWatchLogsRoleArn property for this
object.
|
Boolean |
getIncludeGlobalServiceEvents()
Set to True to include AWS API calls from AWS global services
such as IAM.
|
String |
getName()
Name of the trail set by calling CreateTrail.
|
String |
getS3BucketName()
Name of the Amazon S3 bucket into which CloudTrail delivers your trail
files.
|
String |
getS3KeyPrefix()
Value of the Amazon S3 prefix.
|
String |
getSnsTopicName()
Name of the existing Amazon SNS topic that CloudTrail uses to notify
the account owner when new CloudTrail log files have been delivered.
|
int |
hashCode() |
Boolean |
isIncludeGlobalServiceEvents()
Set to True to include AWS API calls from AWS global services
such as IAM.
|
void |
setCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Sets the value of the CloudWatchLogsLogGroupArn property for this
object.
|
void |
setCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
Sets the value of the CloudWatchLogsRoleArn property for this object.
|
void |
setIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Set to True to include AWS API calls from AWS global services
such as IAM.
|
void |
setName(String name)
Name of the trail set by calling CreateTrail.
|
void |
setS3BucketName(String s3BucketName)
Name of the Amazon S3 bucket into which CloudTrail delivers your trail
files.
|
void |
setS3KeyPrefix(String s3KeyPrefix)
Value of the Amazon S3 prefix.
|
void |
setSnsTopicName(String snsTopicName)
Name of the existing Amazon SNS topic that CloudTrail uses to notify
the account owner when new CloudTrail log files have been delivered.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Trail |
withCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Sets the value of the CloudWatchLogsLogGroupArn property for this
object.
|
Trail |
withCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
Sets the value of the CloudWatchLogsRoleArn property for this object.
|
Trail |
withIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Set to True to include AWS API calls from AWS global services
such as IAM.
|
Trail |
withName(String name)
Name of the trail set by calling CreateTrail.
|
Trail |
withS3BucketName(String s3BucketName)
Name of the Amazon S3 bucket into which CloudTrail delivers your trail
files.
|
Trail |
withS3KeyPrefix(String s3KeyPrefix)
Value of the Amazon S3 prefix.
|
Trail |
withSnsTopicName(String snsTopicName)
Name of the existing Amazon SNS topic that CloudTrail uses to notify
the account owner when new CloudTrail log files have been delivered.
|
public String getName()
public void setName(String name)
name - Name of the trail set by calling CreateTrail.public Trail withName(String name)
Returns a reference to this object so that method calls can be chained together.
name - Name of the trail set by calling CreateTrail.public String getS3BucketName()
public void setS3BucketName(String s3BucketName)
s3BucketName - Name of the Amazon S3 bucket into which CloudTrail delivers your trail
files.public Trail withS3BucketName(String s3BucketName)
Returns a reference to this object so that method calls can be chained together.
s3BucketName - Name of the Amazon S3 bucket into which CloudTrail delivers your trail
files.public String getS3KeyPrefix()
public void setS3KeyPrefix(String s3KeyPrefix)
s3KeyPrefix - Value of the Amazon S3 prefix.public Trail withS3KeyPrefix(String s3KeyPrefix)
Returns a reference to this object so that method calls can be chained together.
s3KeyPrefix - Value of the Amazon S3 prefix.public String getSnsTopicName()
public void setSnsTopicName(String snsTopicName)
snsTopicName - Name of the existing Amazon SNS topic that CloudTrail uses to notify
the account owner when new CloudTrail log files have been delivered.public Trail withSnsTopicName(String snsTopicName)
Returns a reference to this object so that method calls can be chained together.
snsTopicName - Name of the existing Amazon SNS topic that CloudTrail uses to notify
the account owner when new CloudTrail log files have been delivered.public Boolean isIncludeGlobalServiceEvents()
public void setIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
includeGlobalServiceEvents - Set to True to include AWS API calls from AWS global services
such as IAM. Otherwise, False.public Trail withIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Returns a reference to this object so that method calls can be chained together.
includeGlobalServiceEvents - Set to True to include AWS API calls from AWS global services
such as IAM. Otherwise, False.public Boolean getIncludeGlobalServiceEvents()
public String getCloudWatchLogsLogGroupArn()
public void setCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
cloudWatchLogsLogGroupArn - The new value for the CloudWatchLogsLogGroupArn property for this
object.public Trail withCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Returns a reference to this object so that method calls can be chained together.
cloudWatchLogsLogGroupArn - The new value for the CloudWatchLogsLogGroupArn property for this
object.public String getCloudWatchLogsRoleArn()
public void setCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
cloudWatchLogsRoleArn - The new value for the CloudWatchLogsRoleArn property for this object.public Trail withCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
Returns a reference to this object so that method calls can be chained together.
cloudWatchLogsRoleArn - The new value for the CloudWatchLogsRoleArn property for this object.public String toString()
toString in class ObjectObject.toString()Copyright © 2014. All rights reserved.