@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsCloudTrailTrailDetails extends Object implements Serializable, Cloneable, StructuredPojo
Provides details about a CloudTrail trail.
Constructor and Description |
---|
AwsCloudTrailTrailDetails() |
Modifier and Type | Method and Description |
---|---|
AwsCloudTrailTrailDetails |
clone() |
boolean |
equals(Object obj) |
String |
getCloudWatchLogsLogGroupArn()
The ARN of the log group that CloudTrail logs are delivered to.
|
String |
getCloudWatchLogsRoleArn()
The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.
|
Boolean |
getHasCustomEventSelectors()
Indicates whether the trail has custom event selectors.
|
String |
getHomeRegion()
The Region where the trail was created.
|
Boolean |
getIncludeGlobalServiceEvents()
Indicates whether the trail publishes events from global services such as IAM to the log files.
|
Boolean |
getIsMultiRegionTrail()
Indicates whether the trail applies only to the current Region or to all Regions.
|
Boolean |
getIsOrganizationTrail()
Whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon
Web Services account.
|
String |
getKmsKeyId()
The KMS key ID to use to encrypt the logs.
|
Boolean |
getLogFileValidationEnabled()
Indicates whether CloudTrail log file validation is enabled.
|
String |
getName()
The name of the trail.
|
String |
getS3BucketName()
The name of the S3 bucket where the log files are published.
|
String |
getS3KeyPrefix()
The S3 key prefix.
|
String |
getSnsTopicArn()
The ARN of the SNS topic that is used for notifications of log file delivery.
|
String |
getSnsTopicName()
The name of the SNS topic that is used for notifications of log file delivery.
|
String |
getTrailArn()
The ARN of the trail.
|
int |
hashCode() |
Boolean |
isHasCustomEventSelectors()
Indicates whether the trail has custom event selectors.
|
Boolean |
isIncludeGlobalServiceEvents()
Indicates whether the trail publishes events from global services such as IAM to the log files.
|
Boolean |
isLogFileValidationEnabled()
Indicates whether CloudTrail log file validation is enabled.
|
Boolean |
isMultiRegionTrail()
Indicates whether the trail applies only to the current Region or to all Regions.
|
Boolean |
isOrganizationTrail()
Whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon
Web Services account.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
The ARN of the log group that CloudTrail logs are delivered to.
|
void |
setCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.
|
void |
setHasCustomEventSelectors(Boolean hasCustomEventSelectors)
Indicates whether the trail has custom event selectors.
|
void |
setHomeRegion(String homeRegion)
The Region where the trail was created.
|
void |
setIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Indicates whether the trail publishes events from global services such as IAM to the log files.
|
void |
setIsMultiRegionTrail(Boolean isMultiRegionTrail)
Indicates whether the trail applies only to the current Region or to all Regions.
|
void |
setIsOrganizationTrail(Boolean isOrganizationTrail)
Whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon
Web Services account.
|
void |
setKmsKeyId(String kmsKeyId)
The KMS key ID to use to encrypt the logs.
|
void |
setLogFileValidationEnabled(Boolean logFileValidationEnabled)
Indicates whether CloudTrail log file validation is enabled.
|
void |
setName(String name)
The name of the trail.
|
void |
setS3BucketName(String s3BucketName)
The name of the S3 bucket where the log files are published.
|
void |
setS3KeyPrefix(String s3KeyPrefix)
The S3 key prefix.
|
void |
setSnsTopicArn(String snsTopicArn)
The ARN of the SNS topic that is used for notifications of log file delivery.
|
void |
setSnsTopicName(String snsTopicName)
The name of the SNS topic that is used for notifications of log file delivery.
|
void |
setTrailArn(String trailArn)
The ARN of the trail.
|
String |
toString()
Returns a string representation of this object.
|
AwsCloudTrailTrailDetails |
withCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
The ARN of the log group that CloudTrail logs are delivered to.
|
AwsCloudTrailTrailDetails |
withCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.
|
AwsCloudTrailTrailDetails |
withHasCustomEventSelectors(Boolean hasCustomEventSelectors)
Indicates whether the trail has custom event selectors.
|
AwsCloudTrailTrailDetails |
withHomeRegion(String homeRegion)
The Region where the trail was created.
|
AwsCloudTrailTrailDetails |
withIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Indicates whether the trail publishes events from global services such as IAM to the log files.
|
AwsCloudTrailTrailDetails |
withIsMultiRegionTrail(Boolean isMultiRegionTrail)
Indicates whether the trail applies only to the current Region or to all Regions.
|
AwsCloudTrailTrailDetails |
withIsOrganizationTrail(Boolean isOrganizationTrail)
Whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon
Web Services account.
|
AwsCloudTrailTrailDetails |
withKmsKeyId(String kmsKeyId)
The KMS key ID to use to encrypt the logs.
|
AwsCloudTrailTrailDetails |
withLogFileValidationEnabled(Boolean logFileValidationEnabled)
Indicates whether CloudTrail log file validation is enabled.
|
AwsCloudTrailTrailDetails |
withName(String name)
The name of the trail.
|
AwsCloudTrailTrailDetails |
withS3BucketName(String s3BucketName)
The name of the S3 bucket where the log files are published.
|
AwsCloudTrailTrailDetails |
withS3KeyPrefix(String s3KeyPrefix)
The S3 key prefix.
|
AwsCloudTrailTrailDetails |
withSnsTopicArn(String snsTopicArn)
The ARN of the SNS topic that is used for notifications of log file delivery.
|
AwsCloudTrailTrailDetails |
withSnsTopicName(String snsTopicName)
The name of the SNS topic that is used for notifications of log file delivery.
|
AwsCloudTrailTrailDetails |
withTrailArn(String trailArn)
The ARN of the trail.
|
public void setCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
The ARN of the log group that CloudTrail logs are delivered to.
cloudWatchLogsLogGroupArn
- The ARN of the log group that CloudTrail logs are delivered to.public String getCloudWatchLogsLogGroupArn()
The ARN of the log group that CloudTrail logs are delivered to.
public AwsCloudTrailTrailDetails withCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
The ARN of the log group that CloudTrail logs are delivered to.
cloudWatchLogsLogGroupArn
- The ARN of the log group that CloudTrail logs are delivered to.public void setCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.
cloudWatchLogsRoleArn
- The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.public String getCloudWatchLogsRoleArn()
The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.
public AwsCloudTrailTrailDetails withCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.
cloudWatchLogsRoleArn
- The ARN of the role that the CloudWatch Events endpoint assumes when it writes to the log group.public void setHasCustomEventSelectors(Boolean hasCustomEventSelectors)
Indicates whether the trail has custom event selectors.
hasCustomEventSelectors
- Indicates whether the trail has custom event selectors.public Boolean getHasCustomEventSelectors()
Indicates whether the trail has custom event selectors.
public AwsCloudTrailTrailDetails withHasCustomEventSelectors(Boolean hasCustomEventSelectors)
Indicates whether the trail has custom event selectors.
hasCustomEventSelectors
- Indicates whether the trail has custom event selectors.public Boolean isHasCustomEventSelectors()
Indicates whether the trail has custom event selectors.
public void setHomeRegion(String homeRegion)
The Region where the trail was created.
homeRegion
- The Region where the trail was created.public String getHomeRegion()
The Region where the trail was created.
public AwsCloudTrailTrailDetails withHomeRegion(String homeRegion)
The Region where the trail was created.
homeRegion
- The Region where the trail was created.public void setIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Indicates whether the trail publishes events from global services such as IAM to the log files.
includeGlobalServiceEvents
- Indicates whether the trail publishes events from global services such as IAM to the log files.public Boolean getIncludeGlobalServiceEvents()
Indicates whether the trail publishes events from global services such as IAM to the log files.
public AwsCloudTrailTrailDetails withIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Indicates whether the trail publishes events from global services such as IAM to the log files.
includeGlobalServiceEvents
- Indicates whether the trail publishes events from global services such as IAM to the log files.public Boolean isIncludeGlobalServiceEvents()
Indicates whether the trail publishes events from global services such as IAM to the log files.
public void setIsMultiRegionTrail(Boolean isMultiRegionTrail)
Indicates whether the trail applies only to the current Region or to all Regions.
isMultiRegionTrail
- Indicates whether the trail applies only to the current Region or to all Regions.public Boolean getIsMultiRegionTrail()
Indicates whether the trail applies only to the current Region or to all Regions.
public AwsCloudTrailTrailDetails withIsMultiRegionTrail(Boolean isMultiRegionTrail)
Indicates whether the trail applies only to the current Region or to all Regions.
isMultiRegionTrail
- Indicates whether the trail applies only to the current Region or to all Regions.public Boolean isMultiRegionTrail()
Indicates whether the trail applies only to the current Region or to all Regions.
public void setIsOrganizationTrail(Boolean isOrganizationTrail)
Whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account.
isOrganizationTrail
- Whether the trail is created for all accounts in an organization in Organizations, or only for the current
Amazon Web Services account.public Boolean getIsOrganizationTrail()
Whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account.
public AwsCloudTrailTrailDetails withIsOrganizationTrail(Boolean isOrganizationTrail)
Whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account.
isOrganizationTrail
- Whether the trail is created for all accounts in an organization in Organizations, or only for the current
Amazon Web Services account.public Boolean isOrganizationTrail()
Whether the trail is created for all accounts in an organization in Organizations, or only for the current Amazon Web Services account.
public void setKmsKeyId(String kmsKeyId)
The KMS key ID to use to encrypt the logs.
kmsKeyId
- The KMS key ID to use to encrypt the logs.public String getKmsKeyId()
The KMS key ID to use to encrypt the logs.
public AwsCloudTrailTrailDetails withKmsKeyId(String kmsKeyId)
The KMS key ID to use to encrypt the logs.
kmsKeyId
- The KMS key ID to use to encrypt the logs.public void setLogFileValidationEnabled(Boolean logFileValidationEnabled)
Indicates whether CloudTrail log file validation is enabled.
logFileValidationEnabled
- Indicates whether CloudTrail log file validation is enabled.public Boolean getLogFileValidationEnabled()
Indicates whether CloudTrail log file validation is enabled.
public AwsCloudTrailTrailDetails withLogFileValidationEnabled(Boolean logFileValidationEnabled)
Indicates whether CloudTrail log file validation is enabled.
logFileValidationEnabled
- Indicates whether CloudTrail log file validation is enabled.public Boolean isLogFileValidationEnabled()
Indicates whether CloudTrail log file validation is enabled.
public void setName(String name)
The name of the trail.
name
- The name of the trail.public String getName()
The name of the trail.
public AwsCloudTrailTrailDetails withName(String name)
The name of the trail.
name
- The name of the trail.public void setS3BucketName(String s3BucketName)
The name of the S3 bucket where the log files are published.
s3BucketName
- The name of the S3 bucket where the log files are published.public String getS3BucketName()
The name of the S3 bucket where the log files are published.
public AwsCloudTrailTrailDetails withS3BucketName(String s3BucketName)
The name of the S3 bucket where the log files are published.
s3BucketName
- The name of the S3 bucket where the log files are published.public void setS3KeyPrefix(String s3KeyPrefix)
The S3 key prefix. The key prefix is added after the name of the S3 bucket where the log files are published.
s3KeyPrefix
- The S3 key prefix. The key prefix is added after the name of the S3 bucket where the log files are
published.public String getS3KeyPrefix()
The S3 key prefix. The key prefix is added after the name of the S3 bucket where the log files are published.
public AwsCloudTrailTrailDetails withS3KeyPrefix(String s3KeyPrefix)
The S3 key prefix. The key prefix is added after the name of the S3 bucket where the log files are published.
s3KeyPrefix
- The S3 key prefix. The key prefix is added after the name of the S3 bucket where the log files are
published.public void setSnsTopicArn(String snsTopicArn)
The ARN of the SNS topic that is used for notifications of log file delivery.
snsTopicArn
- The ARN of the SNS topic that is used for notifications of log file delivery.public String getSnsTopicArn()
The ARN of the SNS topic that is used for notifications of log file delivery.
public AwsCloudTrailTrailDetails withSnsTopicArn(String snsTopicArn)
The ARN of the SNS topic that is used for notifications of log file delivery.
snsTopicArn
- The ARN of the SNS topic that is used for notifications of log file delivery.public void setSnsTopicName(String snsTopicName)
The name of the SNS topic that is used for notifications of log file delivery.
snsTopicName
- The name of the SNS topic that is used for notifications of log file delivery.public String getSnsTopicName()
The name of the SNS topic that is used for notifications of log file delivery.
public AwsCloudTrailTrailDetails withSnsTopicName(String snsTopicName)
The name of the SNS topic that is used for notifications of log file delivery.
snsTopicName
- The name of the SNS topic that is used for notifications of log file delivery.public void setTrailArn(String trailArn)
The ARN of the trail.
trailArn
- The ARN of the trail.public String getTrailArn()
The ARN of the trail.
public AwsCloudTrailTrailDetails withTrailArn(String trailArn)
The ARN of the trail.
trailArn
- The ARN of the trail.public String toString()
toString
in class Object
Object.toString()
public AwsCloudTrailTrailDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.