
com.amazonaws.services.cloudtrail.model.UpdateTrailResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-cloudtrail Show documentation
/*
* Copyright 2011-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not
* use this file except in compliance with the License. A copy of the License is
* located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
package com.amazonaws.services.cloudtrail.model;
import java.io.Serializable;
/**
*
* Returns the objects or data listed below if successful. Otherwise, returns an
* error.
*
*/
public class UpdateTrailResult implements Serializable, Cloneable {
/**
*
* Specifies the name of the trail.
*
*/
private String name;
/**
*
* Specifies the name of the Amazon S3 bucket designated for publishing log
* files.
*
*/
private String s3BucketName;
/**
*
* 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.
*
*/
private String s3KeyPrefix;
/**
*
* This field is deprecated. Use SnsTopicARN.
*
*/
@Deprecated
private String snsTopicName;
/**
*
* 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 String snsTopicARN;
/**
*
* Specifies whether the trail is publishing events from global services
* such as IAM to the log files.
*
*/
private Boolean includeGlobalServiceEvents;
/**
*
* Specifies whether the trail exists in one region or in all regions.
*
*/
private Boolean isMultiRegionTrail;
/**
*
* Specifies the ARN of the trail that was updated. The format of a trail
* ARN is:
*
*
* arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
*
*/
private String trailARN;
/**
*
* Specifies whether log file integrity validation is enabled.
*
*/
private Boolean logFileValidationEnabled;
/**
*
* Specifies the Amazon Resource Name (ARN) of the log group to which
* CloudTrail logs will be delivered.
*
*/
private String cloudWatchLogsLogGroupArn;
/**
*
* Specifies the role for the CloudWatch Logs endpoint to assume to write to
* a user's log group.
*
*/
private String cloudWatchLogsRoleArn;
/**
*
* 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
*
*/
private String kmsKeyId;
/**
*
* Specifies the name of the trail.
*
*
* @param name
* Specifies the name of the trail.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* Specifies the name of the trail.
*
*
* @return Specifies the name of the trail.
*/
public String getName() {
return this.name;
}
/**
*
* Specifies the name of the trail.
*
*
* @param name
* Specifies the name of the trail.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public UpdateTrailResult withName(String name) {
setName(name);
return this;
}
/**
*
* Specifies the name of the Amazon S3 bucket designated for publishing log
* files.
*
*
* @param s3BucketName
* Specifies the name of the Amazon S3 bucket designated for
* publishing log files.
*/
public void setS3BucketName(String s3BucketName) {
this.s3BucketName = s3BucketName;
}
/**
*
* Specifies the name of the Amazon S3 bucket designated for publishing log
* files.
*
*
* @return Specifies the name of the Amazon S3 bucket designated for
* publishing log files.
*/
public String getS3BucketName() {
return this.s3BucketName;
}
/**
*
* Specifies the name of the Amazon S3 bucket designated for publishing log
* files.
*
*
* @param s3BucketName
* Specifies the name of the Amazon S3 bucket designated for
* publishing log files.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public UpdateTrailResult withS3BucketName(String s3BucketName) {
setS3BucketName(s3BucketName);
return this;
}
/**
*
* 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.
*
*
* @param 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 void setS3KeyPrefix(String s3KeyPrefix) {
this.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.
*
*
* @return 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 getS3KeyPrefix() {
return this.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.
*
*
* @param 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.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public UpdateTrailResult withS3KeyPrefix(String s3KeyPrefix) {
setS3KeyPrefix(s3KeyPrefix);
return this;
}
/**
*
* This field is deprecated. Use SnsTopicARN.
*
*
* @param snsTopicName
* This field is deprecated. Use SnsTopicARN.
*/
@Deprecated
public void setSnsTopicName(String snsTopicName) {
this.snsTopicName = snsTopicName;
}
/**
*
* This field is deprecated. Use SnsTopicARN.
*
*
* @return This field is deprecated. Use SnsTopicARN.
*/
@Deprecated
public String getSnsTopicName() {
return this.snsTopicName;
}
/**
*
* This field is deprecated. Use SnsTopicARN.
*
*
* @param snsTopicName
* This field is deprecated. Use SnsTopicARN.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
@Deprecated
public UpdateTrailResult withSnsTopicName(String snsTopicName) {
setSnsTopicName(snsTopicName);
return this;
}
/**
*
* 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
*
*
* @param 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 setSnsTopicARN(String snsTopicARN) {
this.snsTopicARN = 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
*
*
* @return 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 String getSnsTopicARN() {
return this.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
*
*
* @param 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
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public UpdateTrailResult withSnsTopicARN(String snsTopicARN) {
setSnsTopicARN(snsTopicARN);
return this;
}
/**
*
* Specifies whether the trail is publishing events from global services
* such as IAM to the log files.
*
*
* @param includeGlobalServiceEvents
* Specifies whether the trail is publishing events from global
* services such as IAM to the log files.
*/
public void setIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents) {
this.includeGlobalServiceEvents = includeGlobalServiceEvents;
}
/**
*
* Specifies whether the trail is publishing events from global services
* such as IAM to the log files.
*
*
* @return Specifies whether the trail is publishing events from global
* services such as IAM to the log files.
*/
public Boolean getIncludeGlobalServiceEvents() {
return this.includeGlobalServiceEvents;
}
/**
*
* Specifies whether the trail is publishing events from global services
* such as IAM to the log files.
*
*
* @param includeGlobalServiceEvents
* Specifies whether the trail is publishing events from global
* services such as IAM to the log files.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public UpdateTrailResult withIncludeGlobalServiceEvents(
Boolean includeGlobalServiceEvents) {
setIncludeGlobalServiceEvents(includeGlobalServiceEvents);
return this;
}
/**
*
* Specifies whether the trail is publishing events from global services
* such as IAM to the log files.
*
*
* @return Specifies whether the trail is publishing events from global
* services such as IAM to the log files.
*/
public Boolean isIncludeGlobalServiceEvents() {
return this.includeGlobalServiceEvents;
}
/**
*
* Specifies whether the trail exists in one region or in all regions.
*
*
* @param isMultiRegionTrail
* Specifies whether the trail exists in one region or in all
* regions.
*/
public void setIsMultiRegionTrail(Boolean isMultiRegionTrail) {
this.isMultiRegionTrail = isMultiRegionTrail;
}
/**
*
* Specifies whether the trail exists in one region or in all regions.
*
*
* @return Specifies whether the trail exists in one region or in all
* regions.
*/
public Boolean getIsMultiRegionTrail() {
return this.isMultiRegionTrail;
}
/**
*
* Specifies whether the trail exists in one region or in all regions.
*
*
* @param isMultiRegionTrail
* Specifies whether the trail exists in one region or in all
* regions.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public UpdateTrailResult withIsMultiRegionTrail(Boolean isMultiRegionTrail) {
setIsMultiRegionTrail(isMultiRegionTrail);
return this;
}
/**
*
* Specifies whether the trail exists in one region or in all regions.
*
*
* @return Specifies whether the trail exists in one region or in all
* regions.
*/
public Boolean isMultiRegionTrail() {
return this.isMultiRegionTrail;
}
/**
*
* Specifies the ARN of the trail that was updated. The format of a trail
* ARN is:
*
*
* arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
*
*
* @param trailARN
* Specifies the ARN of the trail that was updated. The format of a
* trail ARN is:
*
* arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
*/
public void setTrailARN(String trailARN) {
this.trailARN = trailARN;
}
/**
*
* Specifies the ARN of the trail that was updated. The format of a trail
* ARN is:
*
*
* arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
*
*
* @return Specifies the ARN of the trail that was updated. The format of a
* trail ARN is:
*
* arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
*/
public String getTrailARN() {
return this.trailARN;
}
/**
*
* Specifies the ARN of the trail that was updated. The format of a trail
* ARN is:
*
*
* arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
*
*
* @param trailARN
* Specifies the ARN of the trail that was updated. The format of a
* trail ARN is:
*
* arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public UpdateTrailResult withTrailARN(String trailARN) {
setTrailARN(trailARN);
return this;
}
/**
*
* Specifies whether log file integrity validation is enabled.
*
*
* @param logFileValidationEnabled
* Specifies whether log file integrity validation is enabled.
*/
public void setLogFileValidationEnabled(Boolean logFileValidationEnabled) {
this.logFileValidationEnabled = logFileValidationEnabled;
}
/**
*
* Specifies whether log file integrity validation is enabled.
*
*
* @return Specifies whether log file integrity validation is enabled.
*/
public Boolean getLogFileValidationEnabled() {
return this.logFileValidationEnabled;
}
/**
*
* Specifies whether log file integrity validation is enabled.
*
*
* @param logFileValidationEnabled
* Specifies whether log file integrity validation is enabled.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public UpdateTrailResult withLogFileValidationEnabled(
Boolean logFileValidationEnabled) {
setLogFileValidationEnabled(logFileValidationEnabled);
return this;
}
/**
*
* Specifies whether log file integrity validation is enabled.
*
*
* @return Specifies whether log file integrity validation is enabled.
*/
public Boolean isLogFileValidationEnabled() {
return this.logFileValidationEnabled;
}
/**
*
* Specifies the Amazon Resource Name (ARN) of the log group to which
* CloudTrail logs will be delivered.
*
*
* @param cloudWatchLogsLogGroupArn
* Specifies the Amazon Resource Name (ARN) of the log group to which
* CloudTrail logs will be delivered.
*/
public void setCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn) {
this.cloudWatchLogsLogGroupArn = cloudWatchLogsLogGroupArn;
}
/**
*
* Specifies the Amazon Resource Name (ARN) of the log group to which
* CloudTrail logs will be delivered.
*
*
* @return Specifies the Amazon Resource Name (ARN) of the log group to
* which CloudTrail logs will be delivered.
*/
public String getCloudWatchLogsLogGroupArn() {
return this.cloudWatchLogsLogGroupArn;
}
/**
*
* Specifies the Amazon Resource Name (ARN) of the log group to which
* CloudTrail logs will be delivered.
*
*
* @param cloudWatchLogsLogGroupArn
* Specifies the Amazon Resource Name (ARN) of the log group to which
* CloudTrail logs will be delivered.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public UpdateTrailResult withCloudWatchLogsLogGroupArn(
String cloudWatchLogsLogGroupArn) {
setCloudWatchLogsLogGroupArn(cloudWatchLogsLogGroupArn);
return this;
}
/**
*
* Specifies the role for the CloudWatch Logs endpoint to assume to write to
* a user's log group.
*
*
* @param cloudWatchLogsRoleArn
* Specifies the role for the CloudWatch Logs endpoint to assume to
* write to a user's log group.
*/
public void setCloudWatchLogsRoleArn(String cloudWatchLogsRoleArn) {
this.cloudWatchLogsRoleArn = cloudWatchLogsRoleArn;
}
/**
*
* Specifies the role for the CloudWatch Logs endpoint to assume to write to
* a user's log group.
*
*
* @return Specifies the role for the CloudWatch Logs endpoint to assume to
* write to a user's log group.
*/
public String getCloudWatchLogsRoleArn() {
return this.cloudWatchLogsRoleArn;
}
/**
*
* Specifies the role for the CloudWatch Logs endpoint to assume to write to
* a user's log group.
*
*
* @param cloudWatchLogsRoleArn
* Specifies the role for the CloudWatch Logs endpoint to assume to
* write to a user's log group.
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public UpdateTrailResult withCloudWatchLogsRoleArn(
String cloudWatchLogsRoleArn) {
setCloudWatchLogsRoleArn(cloudWatchLogsRoleArn);
return this;
}
/**
*
* 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
*
*
* @param 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 setKmsKeyId(String kmsKeyId) {
this.kmsKeyId = 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
*
*
* @return 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 getKmsKeyId() {
return this.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
*
*
* @param 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
* @return Returns a reference to this object so that method calls can be
* chained together.
*/
public UpdateTrailResult withKmsKeyId(String kmsKeyId) {
setKmsKeyId(kmsKeyId);
return this;
}
/**
* Returns a string representation of this object; useful for testing and
* debugging.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getName() != null)
sb.append("Name: " + getName() + ",");
if (getS3BucketName() != null)
sb.append("S3BucketName: " + getS3BucketName() + ",");
if (getS3KeyPrefix() != null)
sb.append("S3KeyPrefix: " + getS3KeyPrefix() + ",");
if (getSnsTopicName() != null)
sb.append("SnsTopicName: " + getSnsTopicName() + ",");
if (getSnsTopicARN() != null)
sb.append("SnsTopicARN: " + getSnsTopicARN() + ",");
if (getIncludeGlobalServiceEvents() != null)
sb.append("IncludeGlobalServiceEvents: "
+ getIncludeGlobalServiceEvents() + ",");
if (getIsMultiRegionTrail() != null)
sb.append("IsMultiRegionTrail: " + getIsMultiRegionTrail() + ",");
if (getTrailARN() != null)
sb.append("TrailARN: " + getTrailARN() + ",");
if (getLogFileValidationEnabled() != null)
sb.append("LogFileValidationEnabled: "
+ getLogFileValidationEnabled() + ",");
if (getCloudWatchLogsLogGroupArn() != null)
sb.append("CloudWatchLogsLogGroupArn: "
+ getCloudWatchLogsLogGroupArn() + ",");
if (getCloudWatchLogsRoleArn() != null)
sb.append("CloudWatchLogsRoleArn: " + getCloudWatchLogsRoleArn()
+ ",");
if (getKmsKeyId() != null)
sb.append("KmsKeyId: " + getKmsKeyId());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateTrailResult == false)
return false;
UpdateTrailResult other = (UpdateTrailResult) obj;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null
&& other.getName().equals(this.getName()) == false)
return false;
if (other.getS3BucketName() == null ^ this.getS3BucketName() == null)
return false;
if (other.getS3BucketName() != null
&& other.getS3BucketName().equals(this.getS3BucketName()) == false)
return false;
if (other.getS3KeyPrefix() == null ^ this.getS3KeyPrefix() == null)
return false;
if (other.getS3KeyPrefix() != null
&& other.getS3KeyPrefix().equals(this.getS3KeyPrefix()) == false)
return false;
if (other.getSnsTopicName() == null ^ this.getSnsTopicName() == null)
return false;
if (other.getSnsTopicName() != null
&& other.getSnsTopicName().equals(this.getSnsTopicName()) == false)
return false;
if (other.getSnsTopicARN() == null ^ this.getSnsTopicARN() == null)
return false;
if (other.getSnsTopicARN() != null
&& other.getSnsTopicARN().equals(this.getSnsTopicARN()) == false)
return false;
if (other.getIncludeGlobalServiceEvents() == null
^ this.getIncludeGlobalServiceEvents() == null)
return false;
if (other.getIncludeGlobalServiceEvents() != null
&& other.getIncludeGlobalServiceEvents().equals(
this.getIncludeGlobalServiceEvents()) == false)
return false;
if (other.getIsMultiRegionTrail() == null
^ this.getIsMultiRegionTrail() == null)
return false;
if (other.getIsMultiRegionTrail() != null
&& other.getIsMultiRegionTrail().equals(
this.getIsMultiRegionTrail()) == false)
return false;
if (other.getTrailARN() == null ^ this.getTrailARN() == null)
return false;
if (other.getTrailARN() != null
&& other.getTrailARN().equals(this.getTrailARN()) == false)
return false;
if (other.getLogFileValidationEnabled() == null
^ this.getLogFileValidationEnabled() == null)
return false;
if (other.getLogFileValidationEnabled() != null
&& other.getLogFileValidationEnabled().equals(
this.getLogFileValidationEnabled()) == false)
return false;
if (other.getCloudWatchLogsLogGroupArn() == null
^ this.getCloudWatchLogsLogGroupArn() == null)
return false;
if (other.getCloudWatchLogsLogGroupArn() != null
&& other.getCloudWatchLogsLogGroupArn().equals(
this.getCloudWatchLogsLogGroupArn()) == false)
return false;
if (other.getCloudWatchLogsRoleArn() == null
^ this.getCloudWatchLogsRoleArn() == null)
return false;
if (other.getCloudWatchLogsRoleArn() != null
&& other.getCloudWatchLogsRoleArn().equals(
this.getCloudWatchLogsRoleArn()) == false)
return false;
if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null)
return false;
if (other.getKmsKeyId() != null
&& other.getKmsKeyId().equals(this.getKmsKeyId()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode
+ ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime
* hashCode
+ ((getS3BucketName() == null) ? 0 : getS3BucketName()
.hashCode());
hashCode = prime
* hashCode
+ ((getS3KeyPrefix() == null) ? 0 : getS3KeyPrefix().hashCode());
hashCode = prime
* hashCode
+ ((getSnsTopicName() == null) ? 0 : getSnsTopicName()
.hashCode());
hashCode = prime
* hashCode
+ ((getSnsTopicARN() == null) ? 0 : getSnsTopicARN().hashCode());
hashCode = prime
* hashCode
+ ((getIncludeGlobalServiceEvents() == null) ? 0
: getIncludeGlobalServiceEvents().hashCode());
hashCode = prime
* hashCode
+ ((getIsMultiRegionTrail() == null) ? 0
: getIsMultiRegionTrail().hashCode());
hashCode = prime * hashCode
+ ((getTrailARN() == null) ? 0 : getTrailARN().hashCode());
hashCode = prime
* hashCode
+ ((getLogFileValidationEnabled() == null) ? 0
: getLogFileValidationEnabled().hashCode());
hashCode = prime
* hashCode
+ ((getCloudWatchLogsLogGroupArn() == null) ? 0
: getCloudWatchLogsLogGroupArn().hashCode());
hashCode = prime
* hashCode
+ ((getCloudWatchLogsRoleArn() == null) ? 0
: getCloudWatchLogsRoleArn().hashCode());
hashCode = prime * hashCode
+ ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode());
return hashCode;
}
@Override
public UpdateTrailResult clone() {
try {
return (UpdateTrailResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException(
"Got a CloneNotSupportedException from Object.clone() "
+ "even though we're Cloneable!", e);
}
}
}