public class CreateTrailResult extends Object implements Serializable, Cloneable
Returns the objects or data listed below if successful. Otherwise, returns an error.
Constructor and Description |
---|
CreateTrailResult() |
Modifier and Type | Method and Description |
---|---|
CreateTrailResult |
clone() |
boolean |
equals(Object obj) |
String |
getCloudWatchLogsLogGroupArn()
Specifies the Amazon Resource Name (ARN) of 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()
Specifies whether the trail is publishing events from global services
such as IAM to the log files.
|
String |
getKmsKeyId()
Specifies the KMS key ID that encrypts the logs delivered by
CloudTrail.
|
Boolean |
getLogFileValidationEnabled()
Specifies whether log file integrity validation is enabled.
|
String |
getName()
Specifies the name of the trail.
|
String |
getS3BucketName()
Specifies the name of the Amazon S3 bucket designated for publishing
log files.
|
String |
getS3KeyPrefix()
Specifies the Amazon S3 key prefix that comes after the name of the
bucket you have designated for log file delivery.
|
String |
getSnsTopicName()
Specifies the name of the Amazon SNS topic defined for notification of
log file delivery.
|
String |
getTrailARN()
Specifies the ARN of the trail that was created.
|
int |
hashCode() |
Boolean |
isIncludeGlobalServiceEvents()
Specifies whether the trail is publishing events from global services
such as IAM to the log files.
|
Boolean |
isLogFileValidationEnabled()
Specifies whether log file integrity validation is enabled.
|
void |
setCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Specifies the Amazon Resource Name (ARN) of 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)
Specifies whether the trail is publishing events from global services
such as IAM to the log files.
|
void |
setKmsKeyId(String kmsKeyId)
Specifies the KMS key ID that encrypts the logs delivered by
CloudTrail.
|
void |
setLogFileValidationEnabled(Boolean logFileValidationEnabled)
Specifies whether log file integrity validation is enabled.
|
void |
setName(String name)
Specifies the name of the trail.
|
void |
setS3BucketName(String s3BucketName)
Specifies the name of the Amazon S3 bucket designated for publishing
log files.
|
void |
setS3KeyPrefix(String s3KeyPrefix)
Specifies the Amazon S3 key prefix that comes after the name of the
bucket you have designated for log file delivery.
|
void |
setSnsTopicName(String snsTopicName)
Specifies the name of the Amazon SNS topic defined for notification of
log file delivery.
|
void |
setTrailARN(String trailARN)
Specifies the ARN of the trail that was created.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateTrailResult |
withCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Specifies the Amazon Resource Name (ARN) of the log group to which
CloudTrail logs will be delivered.
|
CreateTrailResult |
withCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
Specifies the role for the CloudWatch Logs endpoint to assume to write
to a user's log group.
|
CreateTrailResult |
withIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Specifies whether the trail is publishing events from global services
such as IAM to the log files.
|
CreateTrailResult |
withKmsKeyId(String kmsKeyId)
Specifies the KMS key ID that encrypts the logs delivered by
CloudTrail.
|
CreateTrailResult |
withLogFileValidationEnabled(Boolean logFileValidationEnabled)
Specifies whether log file integrity validation is enabled.
|
CreateTrailResult |
withName(String name)
Specifies the name of the trail.
|
CreateTrailResult |
withS3BucketName(String s3BucketName)
Specifies the name of the Amazon S3 bucket designated for publishing
log files.
|
CreateTrailResult |
withS3KeyPrefix(String s3KeyPrefix)
Specifies the Amazon S3 key prefix that comes after the name of the
bucket you have designated for log file delivery.
|
CreateTrailResult |
withSnsTopicName(String snsTopicName)
Specifies the name of the Amazon SNS topic defined for notification of
log file delivery.
|
CreateTrailResult |
withTrailARN(String trailARN)
Specifies the ARN of the trail that was created.
|
public String getName()
public void setName(String name)
name
- Specifies the name of the trail.public CreateTrailResult withName(String name)
Returns a reference to this object so that method calls can be chained together.
name
- Specifies the name of the trail.public String getS3BucketName()
public void setS3BucketName(String s3BucketName)
s3BucketName
- Specifies the name of the Amazon S3 bucket designated for publishing
log files.public CreateTrailResult withS3BucketName(String s3BucketName)
Returns a reference to this object so that method calls can be chained together.
s3BucketName
- Specifies the name of the Amazon S3 bucket designated for publishing
log files.public String getS3KeyPrefix()
public void setS3KeyPrefix(String s3KeyPrefix)
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 CreateTrailResult withS3KeyPrefix(String s3KeyPrefix)
Returns a reference to this object so that method calls can be chained together.
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 String getSnsTopicName()
public void setSnsTopicName(String snsTopicName)
snsTopicName
- Specifies the name of the Amazon SNS topic defined for notification of
log file delivery.public CreateTrailResult withSnsTopicName(String snsTopicName)
Returns a reference to this object so that method calls can be chained together.
snsTopicName
- Specifies the name of the Amazon SNS topic defined for notification of
log file delivery.public Boolean isIncludeGlobalServiceEvents()
public void setIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
includeGlobalServiceEvents
- Specifies whether the trail is publishing events from global services
such as IAM to the log files.public CreateTrailResult withIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Returns a reference to this object so that method calls can be chained together.
includeGlobalServiceEvents
- Specifies whether the trail is publishing events from global services
such as IAM to the log files.public Boolean getIncludeGlobalServiceEvents()
public String getTrailARN()
public void setTrailARN(String trailARN)
trailARN
- Specifies the ARN of the trail that was created.public CreateTrailResult withTrailARN(String trailARN)
Returns a reference to this object so that method calls can be chained together.
trailARN
- Specifies the ARN of the trail that was created.public Boolean isLogFileValidationEnabled()
public void setLogFileValidationEnabled(Boolean logFileValidationEnabled)
logFileValidationEnabled
- Specifies whether log file integrity validation is enabled.public CreateTrailResult withLogFileValidationEnabled(Boolean logFileValidationEnabled)
Returns a reference to this object so that method calls can be chained together.
logFileValidationEnabled
- Specifies whether log file integrity validation is enabled.public Boolean getLogFileValidationEnabled()
public String getCloudWatchLogsLogGroupArn()
public void setCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
cloudWatchLogsLogGroupArn
- Specifies the Amazon Resource Name (ARN) of the log group to which
CloudTrail logs will be delivered.public CreateTrailResult withCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Returns a reference to this object so that method calls can be chained together.
cloudWatchLogsLogGroupArn
- Specifies the Amazon Resource Name (ARN) of 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 CreateTrailResult 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 getKmsKeyId()
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 void setKmsKeyId(String kmsKeyId)
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 CreateTrailResult withKmsKeyId(String kmsKeyId)
arn:aws:kms:us-east-1:123456789012:key/12345678-1234-1234-1234-123456789012
Returns a reference to this object so that method calls can be chained together.
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 String toString()
toString
in class Object
Object.toString()
public CreateTrailResult clone()
Copyright © 2015. All rights reserved.