@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class UpdateTrailResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Returns the objects or data listed below if successful. Otherwise, returns an error.
Constructor and Description |
---|
UpdateTrailResult() |
Modifier and Type | Method and Description |
---|---|
UpdateTrailResult |
clone() |
boolean |
equals(Object obj) |
String |
getCloudWatchLogsLogGroupArn()
Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs are 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.
|
Boolean |
getIsMultiRegionTrail()
Specifies whether the trail exists in one Region or in all Regions.
|
Boolean |
getIsOrganizationTrail()
Specifies whether the trail is an organization trail.
|
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 |
getSnsTopicARN()
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are
delivered.
|
String |
getSnsTopicName()
Deprecated.
|
String |
getTrailARN()
Specifies the ARN of the trail that was updated.
|
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.
|
Boolean |
isMultiRegionTrail()
Specifies whether the trail exists in one Region or in all Regions.
|
Boolean |
isOrganizationTrail()
Specifies whether the trail is an organization trail.
|
void |
setCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs are 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 |
setIsMultiRegionTrail(Boolean isMultiRegionTrail)
Specifies whether the trail exists in one Region or in all Regions.
|
void |
setIsOrganizationTrail(Boolean isOrganizationTrail)
Specifies whether the trail is an organization trail.
|
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 |
setSnsTopicARN(String snsTopicARN)
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are
delivered.
|
void |
setSnsTopicName(String snsTopicName)
Deprecated.
|
void |
setTrailARN(String trailARN)
Specifies the ARN of the trail that was updated.
|
String |
toString()
Returns a string representation of this object.
|
UpdateTrailResult |
withCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs are delivered.
|
UpdateTrailResult |
withCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn)
Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
|
UpdateTrailResult |
withIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents)
Specifies whether the trail is publishing events from global services such as IAM to the log files.
|
UpdateTrailResult |
withIsMultiRegionTrail(Boolean isMultiRegionTrail)
Specifies whether the trail exists in one Region or in all Regions.
|
UpdateTrailResult |
withIsOrganizationTrail(Boolean isOrganizationTrail)
Specifies whether the trail is an organization trail.
|
UpdateTrailResult |
withKmsKeyId(String kmsKeyId)
Specifies the KMS key ID that encrypts the logs delivered by CloudTrail.
|
UpdateTrailResult |
withLogFileValidationEnabled(Boolean logFileValidationEnabled)
Specifies whether log file integrity validation is enabled.
|
UpdateTrailResult |
withName(String name)
Specifies the name of the trail.
|
UpdateTrailResult |
withS3BucketName(String s3BucketName)
Specifies the name of the Amazon S3 bucket designated for publishing log files.
|
UpdateTrailResult |
withS3KeyPrefix(String s3KeyPrefix)
Specifies the Amazon S3 key prefix that comes after the name of the bucket you have designated for log file
delivery.
|
UpdateTrailResult |
withSnsTopicARN(String snsTopicARN)
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are
delivered.
|
UpdateTrailResult |
withSnsTopicName(String snsTopicName)
Deprecated.
|
UpdateTrailResult |
withTrailARN(String trailARN)
Specifies the ARN of the trail that was updated.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public void setName(String name)
Specifies the name of the trail.
name
- Specifies the name of the trail.public String getName()
Specifies the name of the trail.
public UpdateTrailResult withName(String name)
Specifies the name of the trail.
name
- Specifies the name of the trail.public void setS3BucketName(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 String getS3BucketName()
Specifies the name of the Amazon S3 bucket designated for publishing log files.
public UpdateTrailResult withS3BucketName(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(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 IAM 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 IAM Log Files.public 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 IAM Log Files.
public UpdateTrailResult withS3KeyPrefix(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 IAM 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 IAM Log Files.@Deprecated public void setSnsTopicName(String snsTopicName)
This field is no longer in use. Use SnsTopicARN
.
snsTopicName
- This field is no longer in use. Use SnsTopicARN
.@Deprecated public String getSnsTopicName()
This field is no longer in use. Use SnsTopicARN
.
SnsTopicARN
.@Deprecated public UpdateTrailResult withSnsTopicName(String snsTopicName)
This field is no longer in use. Use SnsTopicARN
.
snsTopicName
- This field is no longer in use. Use SnsTopicARN
.public void setSnsTopicARN(String snsTopicARN)
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The following is the format of a topic ARN.
arn:aws:sns:us-east-2:123456789012:MyTopic
snsTopicARN
- Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are
delivered. The following is the format of a topic ARN.
arn:aws:sns:us-east-2:123456789012:MyTopic
public String getSnsTopicARN()
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The following is the format of a topic ARN.
arn:aws:sns:us-east-2:123456789012:MyTopic
arn:aws:sns:us-east-2:123456789012:MyTopic
public UpdateTrailResult withSnsTopicARN(String snsTopicARN)
Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are delivered. The following is the format of a topic ARN.
arn:aws:sns:us-east-2:123456789012:MyTopic
snsTopicARN
- Specifies the ARN of the Amazon SNS topic that CloudTrail uses to send notifications when log files are
delivered. The following is the format of a topic ARN.
arn:aws:sns:us-east-2:123456789012:MyTopic
public void setIncludeGlobalServiceEvents(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 Boolean getIncludeGlobalServiceEvents()
Specifies whether the trail is publishing events from global services such as IAM to the log files.
public UpdateTrailResult withIncludeGlobalServiceEvents(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 Boolean isIncludeGlobalServiceEvents()
Specifies whether the trail is publishing events from global services such as IAM to the log files.
public void setIsMultiRegionTrail(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 Boolean getIsMultiRegionTrail()
Specifies whether the trail exists in one Region or in all Regions.
public UpdateTrailResult withIsMultiRegionTrail(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 Boolean isMultiRegionTrail()
Specifies whether the trail exists in one Region or in all Regions.
public void setTrailARN(String trailARN)
Specifies the ARN of the trail that was updated. The following is the format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
trailARN
- Specifies the ARN of the trail that was updated. The following is the format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
public String getTrailARN()
Specifies the ARN of the trail that was updated. The following is the format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
public UpdateTrailResult withTrailARN(String trailARN)
Specifies the ARN of the trail that was updated. The following is the format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
trailARN
- Specifies the ARN of the trail that was updated. The following is the format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
public void setLogFileValidationEnabled(Boolean logFileValidationEnabled)
Specifies whether log file integrity validation is enabled.
logFileValidationEnabled
- Specifies whether log file integrity validation is enabled.public Boolean getLogFileValidationEnabled()
Specifies whether log file integrity validation is enabled.
public UpdateTrailResult withLogFileValidationEnabled(Boolean logFileValidationEnabled)
Specifies whether log file integrity validation is enabled.
logFileValidationEnabled
- Specifies whether log file integrity validation is enabled.public Boolean isLogFileValidationEnabled()
Specifies whether log file integrity validation is enabled.
public void setCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs are delivered.
cloudWatchLogsLogGroupArn
- Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs are delivered.public String getCloudWatchLogsLogGroupArn()
Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs are delivered.
public UpdateTrailResult withCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn)
Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs are delivered.
cloudWatchLogsLogGroupArn
- Specifies the Amazon Resource Name (ARN) of the log group to which CloudTrail logs are delivered.public void setCloudWatchLogsRoleArn(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 String getCloudWatchLogsRoleArn()
Specifies the role for the CloudWatch Logs endpoint to assume to write to a user's log group.
public UpdateTrailResult withCloudWatchLogsRoleArn(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(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 following format.
arn:aws:kms:us-east-2: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 following format.
arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
public 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 following format.
arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
public UpdateTrailResult withKmsKeyId(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 following format.
arn:aws:kms:us-east-2: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 following format.
arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012
public void setIsOrganizationTrail(Boolean isOrganizationTrail)
Specifies whether the trail is an organization trail.
isOrganizationTrail
- Specifies whether the trail is an organization trail.public Boolean getIsOrganizationTrail()
Specifies whether the trail is an organization trail.
public UpdateTrailResult withIsOrganizationTrail(Boolean isOrganizationTrail)
Specifies whether the trail is an organization trail.
isOrganizationTrail
- Specifies whether the trail is an organization trail.public Boolean isOrganizationTrail()
Specifies whether the trail is an organization trail.
public String toString()
toString
in class Object
Object.toString()
public UpdateTrailResult clone()