All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.cloudtrail.model.Trail Maven / Gradle / Ivy

Go to download

The AWS SDK for Java with support for OSGi. The AWS SDK for Java provides Java APIs for building software on AWS' cost-effective, scalable, and reliable infrastructure products. The AWS Java SDK allows developers to code against APIs for all of Amazon's infrastructure web services (Amazon S3, Amazon EC2, Amazon SQS, Amazon Relational Database Service, Amazon AutoScaling, etc).

There is a newer version: 1.11.60
Show newest version
/*
 * 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;

/**
 * 

* The settings for a trail. *

*/ public class Trail implements Serializable, Cloneable { /** *

* Name of the trail set by calling CreateTrail. The maximum length * is 128 characters. *

*/ private String name; /** *

* Name of the Amazon S3 bucket into which CloudTrail delivers your trail * files. See Amazon S3 Bucket Naming Requirements. *

*/ 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.The maximum length is 200 * characters. *

*/ 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; /** *

* Set to True to include AWS API calls from AWS global services such * as IAM. Otherwise, False. *

*/ private Boolean includeGlobalServiceEvents; /** *

* Specifies whether the trail belongs only to one region or exists in all * regions. *

*/ private Boolean isMultiRegionTrail; /** *

* The region in which the trail was created. *

*/ private String homeRegion; /** *

* Specifies the ARN of the trail. The format of a trail ARN is: *

*

* arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail *

*/ private String trailARN; /** *

* Specifies whether log file validation is enabled. *

*/ private Boolean logFileValidationEnabled; /** *

* Specifies an Amazon Resource Name (ARN), a unique identifier that * represents 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; /** *

* Name of the trail set by calling CreateTrail. The maximum length * is 128 characters. *

* * @param name * Name of the trail set by calling CreateTrail. The maximum * length is 128 characters. */ public void setName(String name) { this.name = name; } /** *

* Name of the trail set by calling CreateTrail. The maximum length * is 128 characters. *

* * @return Name of the trail set by calling CreateTrail. The maximum * length is 128 characters. */ public String getName() { return this.name; } /** *

* Name of the trail set by calling CreateTrail. The maximum length * is 128 characters. *

* * @param name * Name of the trail set by calling CreateTrail. The maximum * length is 128 characters. * @return Returns a reference to this object so that method calls can be * chained together. */ public Trail withName(String name) { setName(name); return this; } /** *

* Name of the Amazon S3 bucket into which CloudTrail delivers your trail * files. See Amazon S3 Bucket Naming Requirements. *

* * @param s3BucketName * Name of the Amazon S3 bucket into which CloudTrail delivers your * trail files. See Amazon S3 Bucket Naming Requirements. */ public void setS3BucketName(String s3BucketName) { this.s3BucketName = s3BucketName; } /** *

* Name of the Amazon S3 bucket into which CloudTrail delivers your trail * files. See Amazon S3 Bucket Naming Requirements. *

* * @return Name of the Amazon S3 bucket into which CloudTrail delivers your * trail files. See Amazon S3 Bucket Naming Requirements. */ public String getS3BucketName() { return this.s3BucketName; } /** *

* Name of the Amazon S3 bucket into which CloudTrail delivers your trail * files. See Amazon S3 Bucket Naming Requirements. *

* * @param s3BucketName * Name of the Amazon S3 bucket into which CloudTrail delivers your * trail files. See Amazon S3 Bucket Naming Requirements. * @return Returns a reference to this object so that method calls can be * chained together. */ public Trail 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.The maximum length is 200 * characters. *

* * @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.The maximum length is 200 * characters. */ 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.The maximum length is 200 * characters. *

* * @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.The maximum length is 200 * characters. */ 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.The maximum length is 200 * characters. *

* * @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.The maximum length is 200 * characters. * @return Returns a reference to this object so that method calls can be * chained together. */ public Trail 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 Trail 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 Trail withSnsTopicARN(String snsTopicARN) { setSnsTopicARN(snsTopicARN); return this; } /** *

* Set to True to include AWS API calls from AWS global services such * as IAM. Otherwise, False. *

* * @param includeGlobalServiceEvents * Set to True to include AWS API calls from AWS global * services such as IAM. Otherwise, False. */ public void setIncludeGlobalServiceEvents(Boolean includeGlobalServiceEvents) { this.includeGlobalServiceEvents = includeGlobalServiceEvents; } /** *

* Set to True to include AWS API calls from AWS global services such * as IAM. Otherwise, False. *

* * @return Set to True to include AWS API calls from AWS global * services such as IAM. Otherwise, False. */ public Boolean getIncludeGlobalServiceEvents() { return this.includeGlobalServiceEvents; } /** *

* Set to True to include AWS API calls from AWS global services such * as IAM. Otherwise, False. *

* * @param includeGlobalServiceEvents * Set to True to include AWS API calls from AWS global * services such as IAM. Otherwise, False. * @return Returns a reference to this object so that method calls can be * chained together. */ public Trail withIncludeGlobalServiceEvents( Boolean includeGlobalServiceEvents) { setIncludeGlobalServiceEvents(includeGlobalServiceEvents); return this; } /** *

* Set to True to include AWS API calls from AWS global services such * as IAM. Otherwise, False. *

* * @return Set to True to include AWS API calls from AWS global * services such as IAM. Otherwise, False. */ public Boolean isIncludeGlobalServiceEvents() { return this.includeGlobalServiceEvents; } /** *

* Specifies whether the trail belongs only to one region or exists in all * regions. *

* * @param isMultiRegionTrail * Specifies whether the trail belongs only to one region or exists * in all regions. */ public void setIsMultiRegionTrail(Boolean isMultiRegionTrail) { this.isMultiRegionTrail = isMultiRegionTrail; } /** *

* Specifies whether the trail belongs only to one region or exists in all * regions. *

* * @return Specifies whether the trail belongs only to one region or exists * in all regions. */ public Boolean getIsMultiRegionTrail() { return this.isMultiRegionTrail; } /** *

* Specifies whether the trail belongs only to one region or exists in all * regions. *

* * @param isMultiRegionTrail * Specifies whether the trail belongs only to one region or exists * in all regions. * @return Returns a reference to this object so that method calls can be * chained together. */ public Trail withIsMultiRegionTrail(Boolean isMultiRegionTrail) { setIsMultiRegionTrail(isMultiRegionTrail); return this; } /** *

* Specifies whether the trail belongs only to one region or exists in all * regions. *

* * @return Specifies whether the trail belongs only to one region or exists * in all regions. */ public Boolean isMultiRegionTrail() { return this.isMultiRegionTrail; } /** *

* The region in which the trail was created. *

* * @param homeRegion * The region in which the trail was created. */ public void setHomeRegion(String homeRegion) { this.homeRegion = homeRegion; } /** *

* The region in which the trail was created. *

* * @return The region in which the trail was created. */ public String getHomeRegion() { return this.homeRegion; } /** *

* The region in which the trail was created. *

* * @param homeRegion * The region in which the trail was created. * @return Returns a reference to this object so that method calls can be * chained together. */ public Trail withHomeRegion(String homeRegion) { setHomeRegion(homeRegion); return this; } /** *

* Specifies the ARN of the trail. The format of a trail ARN is: *

*

* arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail *

* * @param trailARN * Specifies the ARN of the trail. 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. The format of a trail ARN is: *

*

* arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail *

* * @return Specifies the ARN of the trail. 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. The format of a trail ARN is: *

*

* arn:aws:cloudtrail:us-east-1:123456789012:trail/MyTrail *

* * @param trailARN * Specifies the ARN of the trail. 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 Trail withTrailARN(String trailARN) { setTrailARN(trailARN); return this; } /** *

* Specifies whether log file validation is enabled. *

* * @param logFileValidationEnabled * Specifies whether log file validation is enabled. */ public void setLogFileValidationEnabled(Boolean logFileValidationEnabled) { this.logFileValidationEnabled = logFileValidationEnabled; } /** *

* Specifies whether log file validation is enabled. *

* * @return Specifies whether log file validation is enabled. */ public Boolean getLogFileValidationEnabled() { return this.logFileValidationEnabled; } /** *

* Specifies whether log file validation is enabled. *

* * @param logFileValidationEnabled * Specifies whether log file validation is enabled. * @return Returns a reference to this object so that method calls can be * chained together. */ public Trail withLogFileValidationEnabled(Boolean logFileValidationEnabled) { setLogFileValidationEnabled(logFileValidationEnabled); return this; } /** *

* Specifies whether log file validation is enabled. *

* * @return Specifies whether log file validation is enabled. */ public Boolean isLogFileValidationEnabled() { return this.logFileValidationEnabled; } /** *

* Specifies an Amazon Resource Name (ARN), a unique identifier that * represents the log group to which CloudTrail logs will be delivered. *

* * @param cloudWatchLogsLogGroupArn * Specifies an Amazon Resource Name (ARN), a unique identifier that * represents the log group to which CloudTrail logs will be * delivered. */ public void setCloudWatchLogsLogGroupArn(String cloudWatchLogsLogGroupArn) { this.cloudWatchLogsLogGroupArn = cloudWatchLogsLogGroupArn; } /** *

* Specifies an Amazon Resource Name (ARN), a unique identifier that * represents the log group to which CloudTrail logs will be delivered. *

* * @return Specifies an Amazon Resource Name (ARN), a unique identifier that * represents the log group to which CloudTrail logs will be * delivered. */ public String getCloudWatchLogsLogGroupArn() { return this.cloudWatchLogsLogGroupArn; } /** *

* Specifies an Amazon Resource Name (ARN), a unique identifier that * represents the log group to which CloudTrail logs will be delivered. *

* * @param cloudWatchLogsLogGroupArn * Specifies an Amazon Resource Name (ARN), a unique identifier that * represents 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 Trail 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 Trail 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 Trail 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 (getHomeRegion() != null) sb.append("HomeRegion: " + getHomeRegion() + ","); 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 Trail == false) return false; Trail other = (Trail) 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.getHomeRegion() == null ^ this.getHomeRegion() == null) return false; if (other.getHomeRegion() != null && other.getHomeRegion().equals(this.getHomeRegion()) == 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 + ((getHomeRegion() == null) ? 0 : getHomeRegion().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 Trail clone() { try { return (Trail) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException( "Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy