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 Java SDK for AWS CloudTrail module holds the client classes that are used for communicating with AWS CloudTrail Service

The newest version!
/*
 * Copyright 2019-2024 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;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The settings for a trail. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Trail implements Serializable, Cloneable, StructuredPojo { /** *

* 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 * rules. *

*/ 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 no longer in use. 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 following is the format of a topic ARN. *

*

* arn:aws:sns:us-east-2:123456789012:MyTopic *

*/ private String snsTopicARN; /** *

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

*/ private Boolean includeGlobalServiceEvents; /** *

* Specifies whether the trail exists only in 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 following is the format of a trail ARN. *

*

* arn:aws:cloudtrail:us-east-2: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 following format. *

*

* arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012 *

*/ private String kmsKeyId; /** *

* Specifies if the trail has custom event selectors. *

*/ private Boolean hasCustomEventSelectors; /** *

* Specifies whether a trail has insight types specified in an InsightSelector list. *

*/ private Boolean hasInsightSelectors; /** *

* Specifies whether the trail is an organization trail. *

*/ private Boolean isOrganizationTrail; /** *

* 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 * rules. *

* * @param s3BucketName * Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See Amazon S3 Bucket * naming rules. */ 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 * rules. *

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

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

* * @param s3BucketName * Name of the Amazon S3 bucket into which CloudTrail delivers your trail files. See Amazon S3 Bucket * naming rules. * @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 no longer in use. Use SnsTopicARN. *

* * @param snsTopicName * This field is no longer in use. Use SnsTopicARN. */ @Deprecated public void setSnsTopicName(String snsTopicName) { this.snsTopicName = snsTopicName; } /** *

* This field is no longer in use. Use SnsTopicARN. *

* * @return This field is no longer in use. Use SnsTopicARN. */ @Deprecated public String getSnsTopicName() { return this.snsTopicName; } /** *

* This field is no longer in use. Use SnsTopicARN. *

* * @param snsTopicName * This field is no longer in use. 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 following is the format of a topic ARN. *

*

* arn:aws:sns:us-east-2:123456789012:MyTopic *

* * @param 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 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 following is the format of a topic ARN. *

*

* arn:aws:sns:us-east-2:123456789012:MyTopic *

* * @return 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() { return this.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 *

* * @param 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 * @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 Amazon Web Services API calls from Amazon Web Services global services such as IAM. * Otherwise, False. *

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

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

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

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

* * @param includeGlobalServiceEvents * Set to True to include Amazon Web Services API calls from Amazon Web Services 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 Amazon Web Services API calls from Amazon Web Services global services such as IAM. * Otherwise, False. *

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

* Specifies whether the trail exists only in one Region or exists in all Regions. *

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

* Specifies whether the trail exists only in one Region or exists in all Regions. *

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

* Specifies whether the trail exists only in one Region or exists in all Regions. *

* * @param isMultiRegionTrail * Specifies whether the trail exists only in 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 exists only in one Region or exists in all Regions. *

* * @return Specifies whether the trail exists only in 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 following is the format of a trail ARN. *

*

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

* * @param trailARN * Specifies the ARN of the trail. The following is the format of a trail ARN.

*

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail */ public void setTrailARN(String trailARN) { this.trailARN = trailARN; } /** *

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

*

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

* * @return Specifies the ARN of the trail. The following is the format of a trail ARN.

*

* arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail */ public String getTrailARN() { return this.trailARN; } /** *

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

*

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

* * @param trailARN * Specifies the ARN of the trail. The following is the format of a trail ARN.

*

* arn:aws:cloudtrail:us-east-2: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 following format. *

*

* arn:aws:kms:us-east-2: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 following format.

*

* arn:aws:kms:us-east-2: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 following format. *

*

* arn:aws:kms:us-east-2: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 following format.

*

* arn:aws:kms:us-east-2: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 following format. *

*

* arn:aws:kms:us-east-2: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 following format.

*

* arn:aws:kms:us-east-2: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; } /** *

* Specifies if the trail has custom event selectors. *

* * @param hasCustomEventSelectors * Specifies if the trail has custom event selectors. */ public void setHasCustomEventSelectors(Boolean hasCustomEventSelectors) { this.hasCustomEventSelectors = hasCustomEventSelectors; } /** *

* Specifies if the trail has custom event selectors. *

* * @return Specifies if the trail has custom event selectors. */ public Boolean getHasCustomEventSelectors() { return this.hasCustomEventSelectors; } /** *

* Specifies if the trail has custom event selectors. *

* * @param hasCustomEventSelectors * Specifies if the trail has custom event selectors. * @return Returns a reference to this object so that method calls can be chained together. */ public Trail withHasCustomEventSelectors(Boolean hasCustomEventSelectors) { setHasCustomEventSelectors(hasCustomEventSelectors); return this; } /** *

* Specifies if the trail has custom event selectors. *

* * @return Specifies if the trail has custom event selectors. */ public Boolean isHasCustomEventSelectors() { return this.hasCustomEventSelectors; } /** *

* Specifies whether a trail has insight types specified in an InsightSelector list. *

* * @param hasInsightSelectors * Specifies whether a trail has insight types specified in an InsightSelector list. */ public void setHasInsightSelectors(Boolean hasInsightSelectors) { this.hasInsightSelectors = hasInsightSelectors; } /** *

* Specifies whether a trail has insight types specified in an InsightSelector list. *

* * @return Specifies whether a trail has insight types specified in an InsightSelector list. */ public Boolean getHasInsightSelectors() { return this.hasInsightSelectors; } /** *

* Specifies whether a trail has insight types specified in an InsightSelector list. *

* * @param hasInsightSelectors * Specifies whether a trail has insight types specified in an InsightSelector list. * @return Returns a reference to this object so that method calls can be chained together. */ public Trail withHasInsightSelectors(Boolean hasInsightSelectors) { setHasInsightSelectors(hasInsightSelectors); return this; } /** *

* Specifies whether a trail has insight types specified in an InsightSelector list. *

* * @return Specifies whether a trail has insight types specified in an InsightSelector list. */ public Boolean isHasInsightSelectors() { return this.hasInsightSelectors; } /** *

* Specifies whether the trail is an organization trail. *

* * @param isOrganizationTrail * Specifies whether the trail is an organization trail. */ public void setIsOrganizationTrail(Boolean isOrganizationTrail) { this.isOrganizationTrail = isOrganizationTrail; } /** *

* Specifies whether the trail is an organization trail. *

* * @return Specifies whether the trail is an organization trail. */ public Boolean getIsOrganizationTrail() { return this.isOrganizationTrail; } /** *

* Specifies whether the trail is an organization trail. *

* * @param isOrganizationTrail * Specifies whether the trail is an organization trail. * @return Returns a reference to this object so that method calls can be chained together. */ public Trail withIsOrganizationTrail(Boolean isOrganizationTrail) { setIsOrganizationTrail(isOrganizationTrail); return this; } /** *

* Specifies whether the trail is an organization trail. *

* * @return Specifies whether the trail is an organization trail. */ public Boolean isOrganizationTrail() { return this.isOrganizationTrail; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @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: ").append(getName()).append(","); if (getS3BucketName() != null) sb.append("S3BucketName: ").append(getS3BucketName()).append(","); if (getS3KeyPrefix() != null) sb.append("S3KeyPrefix: ").append(getS3KeyPrefix()).append(","); if (getSnsTopicName() != null) sb.append("SnsTopicName: ").append(getSnsTopicName()).append(","); if (getSnsTopicARN() != null) sb.append("SnsTopicARN: ").append(getSnsTopicARN()).append(","); if (getIncludeGlobalServiceEvents() != null) sb.append("IncludeGlobalServiceEvents: ").append(getIncludeGlobalServiceEvents()).append(","); if (getIsMultiRegionTrail() != null) sb.append("IsMultiRegionTrail: ").append(getIsMultiRegionTrail()).append(","); if (getHomeRegion() != null) sb.append("HomeRegion: ").append(getHomeRegion()).append(","); if (getTrailARN() != null) sb.append("TrailARN: ").append(getTrailARN()).append(","); if (getLogFileValidationEnabled() != null) sb.append("LogFileValidationEnabled: ").append(getLogFileValidationEnabled()).append(","); if (getCloudWatchLogsLogGroupArn() != null) sb.append("CloudWatchLogsLogGroupArn: ").append(getCloudWatchLogsLogGroupArn()).append(","); if (getCloudWatchLogsRoleArn() != null) sb.append("CloudWatchLogsRoleArn: ").append(getCloudWatchLogsRoleArn()).append(","); if (getKmsKeyId() != null) sb.append("KmsKeyId: ").append(getKmsKeyId()).append(","); if (getHasCustomEventSelectors() != null) sb.append("HasCustomEventSelectors: ").append(getHasCustomEventSelectors()).append(","); if (getHasInsightSelectors() != null) sb.append("HasInsightSelectors: ").append(getHasInsightSelectors()).append(","); if (getIsOrganizationTrail() != null) sb.append("IsOrganizationTrail: ").append(getIsOrganizationTrail()); 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; if (other.getHasCustomEventSelectors() == null ^ this.getHasCustomEventSelectors() == null) return false; if (other.getHasCustomEventSelectors() != null && other.getHasCustomEventSelectors().equals(this.getHasCustomEventSelectors()) == false) return false; if (other.getHasInsightSelectors() == null ^ this.getHasInsightSelectors() == null) return false; if (other.getHasInsightSelectors() != null && other.getHasInsightSelectors().equals(this.getHasInsightSelectors()) == false) return false; if (other.getIsOrganizationTrail() == null ^ this.getIsOrganizationTrail() == null) return false; if (other.getIsOrganizationTrail() != null && other.getIsOrganizationTrail().equals(this.getIsOrganizationTrail()) == 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()); hashCode = prime * hashCode + ((getHasCustomEventSelectors() == null) ? 0 : getHasCustomEventSelectors().hashCode()); hashCode = prime * hashCode + ((getHasInsightSelectors() == null) ? 0 : getHasInsightSelectors().hashCode()); hashCode = prime * hashCode + ((getIsOrganizationTrail() == null) ? 0 : getIsOrganizationTrail().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); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.cloudtrail.model.transform.TrailMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy