public class Trail extends Object implements Serializable, Cloneable
The settings for a trail.
| Constructor and Description |
|---|
Trail() |
| Modifier and Type | Method and Description |
|---|---|
Trail |
clone() |
boolean |
equals(Object obj) |
String |
getCloudWatchLogsLogGroupArn()
Specifies an Amazon Resource Name (ARN), a unique identifier that
represents the log group to which CloudTrail logs will be delivered.
|
String |
getCloudWatchLogsRoleArn()
Specifies the role for the CloudWatch Logs endpoint to assume to write
to a user???s log group.
|
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)
Specifies an Amazon Resource Name (ARN), a unique identifier that
represents the log group to which CloudTrail logs will be delivered.
|
void |
setCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
Specifies the role for the CloudWatch Logs endpoint to assume to write
to a user???s log group.
|
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)
Specifies an Amazon Resource Name (ARN), a unique identifier that
represents the log group to which CloudTrail logs will be delivered.
|
Trail |
withCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
Specifies the role for the CloudWatch Logs endpoint to assume to write
to a user???s log group.
|
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 - Specifies an Amazon Resource Name (ARN), a unique identifier that
represents the log group to which CloudTrail logs will be delivered.public Trail withCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Returns a reference to this object so that method calls can be chained together.
cloudWatchLogsLogGroupArn - Specifies an Amazon Resource Name (ARN), a unique identifier that
represents the log group to which CloudTrail logs will be delivered.public String getCloudWatchLogsRoleArn()
public void setCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
cloudWatchLogsRoleArn - Specifies the role for the CloudWatch Logs endpoint to assume to write
to a user???s log group.public Trail withCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
Returns a reference to this object so that method calls can be chained together.
cloudWatchLogsRoleArn - Specifies the role for the CloudWatch Logs endpoint to assume to write
to a user???s log group.public String toString()
toString in class ObjectObject.toString()Copyright © 2015. All rights reserved.