public class CreateTrailResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Returns the objects or data listed below if successful. Otherwise, returns an error.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cloudWatchLogsLogGroupArn
Specifies the Amazon Resource Name (ARN) of the log group to which
CloudTrail logs will be delivered.
|
private java.lang.String |
cloudWatchLogsRoleArn
Specifies the role for the CloudWatch Logs endpoint to assume to write to
a user's log group.
|
private java.lang.Boolean |
includeGlobalServiceEvents
Specifies whether the trail is publishing events from global services
such as IAM to the log files.
|
private java.lang.Boolean |
isMultiRegionTrail
Specifies whether the trail exists in one region or in all regions.
|
private java.lang.String |
kmsKeyId
Specifies the KMS key ID that encrypts the logs delivered by CloudTrail.
|
private java.lang.Boolean |
logFileValidationEnabled
Specifies whether log file integrity validation is enabled.
|
private java.lang.String |
name
Specifies the name of the trail.
|
private java.lang.String |
s3BucketName
Specifies the name of the Amazon S3 bucket designated for publishing log
files.
|
private java.lang.String |
s3KeyPrefix
Specifies the Amazon S3 key prefix that comes after the name of the
bucket you have designated for log file delivery.
|
private java.lang.String |
snsTopicARN
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send
notifications when log files are delivered.
|
private java.lang.String |
snsTopicName
Deprecated.
|
private java.lang.String |
trailARN
Specifies the ARN of the trail that was created.
|
Constructor and Description |
---|
CreateTrailResult() |
Modifier and Type | Method and Description |
---|---|
CreateTrailResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCloudWatchLogsLogGroupArn()
Specifies the Amazon Resource Name (ARN) of the log group to which
CloudTrail logs will be delivered.
|
java.lang.String |
getCloudWatchLogsRoleArn()
Specifies the role for the CloudWatch Logs endpoint to assume to write to
a user's log group.
|
java.lang.Boolean |
getIncludeGlobalServiceEvents()
Specifies whether the trail is publishing events from global services
such as IAM to the log files.
|
java.lang.Boolean |
getIsMultiRegionTrail()
Specifies whether the trail exists in one region or in all regions.
|
java.lang.String |
getKmsKeyId()
Specifies the KMS key ID that encrypts the logs delivered by CloudTrail.
|
java.lang.Boolean |
getLogFileValidationEnabled()
Specifies whether log file integrity validation is enabled.
|
java.lang.String |
getName()
Specifies the name of the trail.
|
java.lang.String |
getS3BucketName()
Specifies the name of the Amazon S3 bucket designated for publishing log
files.
|
java.lang.String |
getS3KeyPrefix()
Specifies the Amazon S3 key prefix that comes after the name of the
bucket you have designated for log file delivery.
|
java.lang.String |
getSnsTopicARN()
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send
notifications when log files are delivered.
|
java.lang.String |
getSnsTopicName()
Deprecated.
|
java.lang.String |
getTrailARN()
Specifies the ARN of the trail that was created.
|
int |
hashCode() |
java.lang.Boolean |
isIncludeGlobalServiceEvents()
Specifies whether the trail is publishing events from global services
such as IAM to the log files.
|
java.lang.Boolean |
isLogFileValidationEnabled()
Specifies whether log file integrity validation is enabled.
|
java.lang.Boolean |
isMultiRegionTrail()
Specifies whether the trail exists in one region or in all regions.
|
void |
setCloudWatchLogsLogGroupArn(java.lang.String cloudWatchLogsLogGroupArn)
Specifies the Amazon Resource Name (ARN) of the log group to which
CloudTrail logs will be delivered.
|
void |
setCloudWatchLogsRoleArn(java.lang.String cloudWatchLogsRoleArn)
Specifies the role for the CloudWatch Logs endpoint to assume to write to
a user's log group.
|
void |
setIncludeGlobalServiceEvents(java.lang.Boolean includeGlobalServiceEvents)
Specifies whether the trail is publishing events from global services
such as IAM to the log files.
|
void |
setIsMultiRegionTrail(java.lang.Boolean isMultiRegionTrail)
Specifies whether the trail exists in one region or in all regions.
|
void |
setKmsKeyId(java.lang.String kmsKeyId)
Specifies the KMS key ID that encrypts the logs delivered by CloudTrail.
|
void |
setLogFileValidationEnabled(java.lang.Boolean logFileValidationEnabled)
Specifies whether log file integrity validation is enabled.
|
void |
setName(java.lang.String name)
Specifies the name of the trail.
|
void |
setS3BucketName(java.lang.String s3BucketName)
Specifies the name of the Amazon S3 bucket designated for publishing log
files.
|
void |
setS3KeyPrefix(java.lang.String s3KeyPrefix)
Specifies the Amazon S3 key prefix that comes after the name of the
bucket you have designated for log file delivery.
|
void |
setSnsTopicARN(java.lang.String snsTopicARN)
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send
notifications when log files are delivered.
|
void |
setSnsTopicName(java.lang.String snsTopicName)
Deprecated.
|
void |
setTrailARN(java.lang.String trailARN)
Specifies the ARN of the trail that was created.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateTrailResult |
withCloudWatchLogsLogGroupArn(java.lang.String cloudWatchLogsLogGroupArn)
Specifies the Amazon Resource Name (ARN) of the log group to which
CloudTrail logs will be delivered.
|
CreateTrailResult |
withCloudWatchLogsRoleArn(java.lang.String cloudWatchLogsRoleArn)
Specifies the role for the CloudWatch Logs endpoint to assume to write to
a user's log group.
|
CreateTrailResult |
withIncludeGlobalServiceEvents(java.lang.Boolean includeGlobalServiceEvents)
Specifies whether the trail is publishing events from global services
such as IAM to the log files.
|
CreateTrailResult |
withIsMultiRegionTrail(java.lang.Boolean isMultiRegionTrail)
Specifies whether the trail exists in one region or in all regions.
|
CreateTrailResult |
withKmsKeyId(java.lang.String kmsKeyId)
Specifies the KMS key ID that encrypts the logs delivered by CloudTrail.
|
CreateTrailResult |
withLogFileValidationEnabled(java.lang.Boolean logFileValidationEnabled)
Specifies whether log file integrity validation is enabled.
|
CreateTrailResult |
withName(java.lang.String name)
Specifies the name of the trail.
|
CreateTrailResult |
withS3BucketName(java.lang.String s3BucketName)
Specifies the name of the Amazon S3 bucket designated for publishing log
files.
|
CreateTrailResult |
withS3KeyPrefix(java.lang.String s3KeyPrefix)
Specifies the Amazon S3 key prefix that comes after the name of the
bucket you have designated for log file delivery.
|
CreateTrailResult |
withSnsTopicARN(java.lang.String snsTopicARN)
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send
notifications when log files are delivered.
|
CreateTrailResult |
withSnsTopicName(java.lang.String snsTopicName)
Deprecated.
|
CreateTrailResult |
withTrailARN(java.lang.String trailARN)
Specifies the ARN of the trail that was created.
|
private java.lang.String name
Specifies the name of the trail.
private java.lang.String s3BucketName
Specifies the name of the Amazon S3 bucket designated for publishing log files.
private java.lang.String s3KeyPrefix
Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files.
@Deprecated private java.lang.String snsTopicName
Specifies the name of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered.
private java.lang.String snsTopicARN
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The format of a topic ARN is:
arn:aws:sns:us-east-1:123456789012:MyTopic
private java.lang.Boolean includeGlobalServiceEvents
Specifies whether the trail is publishing events from global services such as IAM to the log files.
private java.lang.Boolean isMultiRegionTrail
Specifies whether the trail exists in one region or in all regions.
private java.lang.String trailARN
Specifies the ARN of the trail that was created. The format of a trail ARN is:
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
private java.lang.Boolean logFileValidationEnabled
Specifies whether log file integrity validation is enabled.
private java.lang.String cloudWatchLogsLogGroupArn
Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.
private java.lang.String cloudWatchLogsRoleArn
Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
private java.lang.String kmsKeyId
Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the format:
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
public void setName(java.lang.String name)
Specifies the name of the trail.
name
- Specifies the name of the trail.public java.lang.String getName()
Specifies the name of the trail.
public CreateTrailResult withName(java.lang.String name)
Specifies the name of the trail.
name
- Specifies the name of the trail.public void setS3BucketName(java.lang.String s3BucketName)
Specifies the name of the Amazon S3 bucket designated for publishing log files.
s3BucketName
- Specifies the name of the Amazon S3 bucket designated for
publishing log files.public java.lang.String getS3BucketName()
Specifies the name of the Amazon S3 bucket designated for publishing log files.
public CreateTrailResult withS3BucketName(java.lang.String s3BucketName)
Specifies the name of the Amazon S3 bucket designated for publishing log files.
s3BucketName
- Specifies the name of the Amazon S3 bucket designated for
publishing log files.public void setS3KeyPrefix(java.lang.String s3KeyPrefix)
Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files.
s3KeyPrefix
- Specifies the Amazon S3 key prefix that comes after the name of
the bucket you have designated for log file delivery. For more
information, see Finding Your CloudTrail Log Files.public java.lang.String getS3KeyPrefix()
Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files.
public CreateTrailResult withS3KeyPrefix(java.lang.String s3KeyPrefix)
Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file delivery. For more information, see Finding Your CloudTrail Log Files.
s3KeyPrefix
- Specifies the Amazon S3 key prefix that comes after the name of
the bucket you have designated for log file delivery. For more
information, see Finding Your CloudTrail Log Files.@Deprecated public void setSnsTopicName(java.lang.String snsTopicName)
Specifies the name of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered.
snsTopicName
- Specifies the name of the Amazon SNS topic that CloudTrail uses to
send notifications when log files are delivered.@Deprecated public java.lang.String getSnsTopicName()
Specifies the name of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered.
@Deprecated public CreateTrailResult withSnsTopicName(java.lang.String snsTopicName)
Specifies the name of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered.
snsTopicName
- Specifies the name of the Amazon SNS topic that CloudTrail uses to
send notifications when log files are delivered.public void setSnsTopicARN(java.lang.String snsTopicARN)
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The format of a topic ARN is:
arn:aws:sns:us-east-1:123456789012:MyTopic
snsTopicARN
- Specifies the ARN of the Amazon SNS topic that CloudTrail uses to
send notifications when log files are delivered. The format of a
topic ARN is:
arn:aws:sns:us-east-1:123456789012:MyTopic
public java.lang.String getSnsTopicARN()
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The format of a topic ARN is:
arn:aws:sns:us-east-1:123456789012:MyTopic
arn:aws:sns:us-east-1:123456789012:MyTopic
public CreateTrailResult withSnsTopicARN(java.lang.String snsTopicARN)
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The format of a topic ARN is:
arn:aws:sns:us-east-1:123456789012:MyTopic
snsTopicARN
- Specifies the ARN of the Amazon SNS topic that CloudTrail uses to
send notifications when log files are delivered. The format of a
topic ARN is:
arn:aws:sns:us-east-1:123456789012:MyTopic
public void setIncludeGlobalServiceEvents(java.lang.Boolean includeGlobalServiceEvents)
Specifies whether the trail is publishing events from global services such as IAM to the log files.
includeGlobalServiceEvents
- Specifies whether the trail is publishing events from global
services such as IAM to the log files.public java.lang.Boolean getIncludeGlobalServiceEvents()
Specifies whether the trail is publishing events from global services such as IAM to the log files.
public CreateTrailResult withIncludeGlobalServiceEvents(java.lang.Boolean includeGlobalServiceEvents)
Specifies whether the trail is publishing events from global services such as IAM to the log files.
includeGlobalServiceEvents
- Specifies whether the trail is publishing events from global
services such as IAM to the log files.public java.lang.Boolean isIncludeGlobalServiceEvents()
Specifies whether the trail is publishing events from global services such as IAM to the log files.
public void setIsMultiRegionTrail(java.lang.Boolean isMultiRegionTrail)
Specifies whether the trail exists in one region or in all regions.
isMultiRegionTrail
- Specifies whether the trail exists in one region or in all
regions.public java.lang.Boolean getIsMultiRegionTrail()
Specifies whether the trail exists in one region or in all regions.
public CreateTrailResult withIsMultiRegionTrail(java.lang.Boolean isMultiRegionTrail)
Specifies whether the trail exists in one region or in all regions.
isMultiRegionTrail
- Specifies whether the trail exists in one region or in all
regions.public java.lang.Boolean isMultiRegionTrail()
Specifies whether the trail exists in one region or in all regions.
public void setTrailARN(java.lang.String trailARN)
Specifies the ARN of the trail that was created. The format of a trail ARN is:
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
trailARN
- Specifies the ARN of the trail that was created. The format of a
trail ARN is:
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
public java.lang.String getTrailARN()
Specifies the ARN of the trail that was created. The format of a trail ARN is:
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
public CreateTrailResult withTrailARN(java.lang.String trailARN)
Specifies the ARN of the trail that was created. The format of a trail ARN is:
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
trailARN
- Specifies the ARN of the trail that was created. The format of a
trail ARN is:
arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
public void setLogFileValidationEnabled(java.lang.Boolean logFileValidationEnabled)
Specifies whether log file integrity validation is enabled.
logFileValidationEnabled
- Specifies whether log file integrity validation is enabled.public java.lang.Boolean getLogFileValidationEnabled()
Specifies whether log file integrity validation is enabled.
public CreateTrailResult withLogFileValidationEnabled(java.lang.Boolean logFileValidationEnabled)
Specifies whether log file integrity validation is enabled.
logFileValidationEnabled
- Specifies whether log file integrity validation is enabled.public java.lang.Boolean isLogFileValidationEnabled()
Specifies whether log file integrity validation is enabled.
public void setCloudWatchLogsLogGroupArn(java.lang.String cloudWatchLogsLogGroupArn)
Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.
cloudWatchLogsLogGroupArn
- Specifies the Amazon Resource Name (ARN) of the log group to which
CloudTrail logs will be delivered.public java.lang.String getCloudWatchLogsLogGroupArn()
Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.
public CreateTrailResult withCloudWatchLogsLogGroupArn(java.lang.String cloudWatchLogsLogGroupArn)
Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs will be delivered.
cloudWatchLogsLogGroupArn
- Specifies the Amazon Resource Name (ARN) of the log group to which
CloudTrail logs will be delivered.public void setCloudWatchLogsRoleArn(java.lang.String cloudWatchLogsRoleArn)
Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
cloudWatchLogsRoleArn
- Specifies the role for the CloudWatch Logs endpoint to assume to
write to a user's log group.public java.lang.String getCloudWatchLogsRoleArn()
Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
public CreateTrailResult withCloudWatchLogsRoleArn(java.lang.String cloudWatchLogsRoleArn)
Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
cloudWatchLogsRoleArn
- Specifies the role for the CloudWatch Logs endpoint to assume to
write to a user's log group.public void setKmsKeyId(java.lang.String kmsKeyId)
Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the format:
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
kmsKeyId
- Specifies the KMS key ID that encrypts the logs delivered by
CloudTrail. The value is a fully specified ARN to a KMS key in the
format:
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
public java.lang.String getKmsKeyId()
Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the format:
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
public CreateTrailResult withKmsKeyId(java.lang.String kmsKeyId)
Specifies the KMS key ID that encrypts the logs delivered by CloudTrail. The value is a fully specified ARN to a KMS key in the format:
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
kmsKeyId
- Specifies the KMS key ID that encrypts the logs delivered by
CloudTrail. The value is a fully specified ARN to a KMS key in the
format:
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CreateTrailResult clone()
clone
in class java.lang.Object