/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace S3 { namespace Model { /** *

Specifies information about where to publish analysis or configuration * results for an Amazon S3 bucket and S3 Replication Time Control (S3 * RTC).

See Also:

AWS API * Reference

*/ class AWS_S3_API Destination { public: Destination(); Destination(const Aws::Utils::Xml::XmlNode& xmlNode); Destination& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const; /** *

The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to * store the results.

*/ inline const Aws::String& GetBucket() const{ return m_bucket; } /** *

The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to * store the results.

*/ inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to * store the results.

*/ inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } /** *

The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to * store the results.

*/ inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } /** *

The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to * store the results.

*/ inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } /** *

The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to * store the results.

*/ inline Destination& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *

The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to * store the results.

*/ inline Destination& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the bucket where you want Amazon S3 to * store the results.

*/ inline Destination& WithBucket(const char* value) { SetBucket(value); return *this;} /** *

Destination bucket owner account ID. In a cross-account scenario, if you * direct Amazon S3 to change replica ownership to the Amazon Web Services account * that owns the destination bucket by specifying the * AccessControlTranslation property, this is the account ID of the * destination bucket owner. For more information, see Replication * Additional Configuration: Changing the Replica Owner in the Amazon S3 * User Guide.

*/ inline const Aws::String& GetAccount() const{ return m_account; } /** *

Destination bucket owner account ID. In a cross-account scenario, if you * direct Amazon S3 to change replica ownership to the Amazon Web Services account * that owns the destination bucket by specifying the * AccessControlTranslation property, this is the account ID of the * destination bucket owner. For more information, see Replication * Additional Configuration: Changing the Replica Owner in the Amazon S3 * User Guide.

*/ inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; } /** *

Destination bucket owner account ID. In a cross-account scenario, if you * direct Amazon S3 to change replica ownership to the Amazon Web Services account * that owns the destination bucket by specifying the * AccessControlTranslation property, this is the account ID of the * destination bucket owner. For more information, see Replication * Additional Configuration: Changing the Replica Owner in the Amazon S3 * User Guide.

*/ inline void SetAccount(const Aws::String& value) { m_accountHasBeenSet = true; m_account = value; } /** *

Destination bucket owner account ID. In a cross-account scenario, if you * direct Amazon S3 to change replica ownership to the Amazon Web Services account * that owns the destination bucket by specifying the * AccessControlTranslation property, this is the account ID of the * destination bucket owner. For more information, see Replication * Additional Configuration: Changing the Replica Owner in the Amazon S3 * User Guide.

*/ inline void SetAccount(Aws::String&& value) { m_accountHasBeenSet = true; m_account = std::move(value); } /** *

Destination bucket owner account ID. In a cross-account scenario, if you * direct Amazon S3 to change replica ownership to the Amazon Web Services account * that owns the destination bucket by specifying the * AccessControlTranslation property, this is the account ID of the * destination bucket owner. For more information, see Replication * Additional Configuration: Changing the Replica Owner in the Amazon S3 * User Guide.

*/ inline void SetAccount(const char* value) { m_accountHasBeenSet = true; m_account.assign(value); } /** *

Destination bucket owner account ID. In a cross-account scenario, if you * direct Amazon S3 to change replica ownership to the Amazon Web Services account * that owns the destination bucket by specifying the * AccessControlTranslation property, this is the account ID of the * destination bucket owner. For more information, see Replication * Additional Configuration: Changing the Replica Owner in the Amazon S3 * User Guide.

*/ inline Destination& WithAccount(const Aws::String& value) { SetAccount(value); return *this;} /** *

Destination bucket owner account ID. In a cross-account scenario, if you * direct Amazon S3 to change replica ownership to the Amazon Web Services account * that owns the destination bucket by specifying the * AccessControlTranslation property, this is the account ID of the * destination bucket owner. For more information, see Replication * Additional Configuration: Changing the Replica Owner in the Amazon S3 * User Guide.

*/ inline Destination& WithAccount(Aws::String&& value) { SetAccount(std::move(value)); return *this;} /** *

Destination bucket owner account ID. In a cross-account scenario, if you * direct Amazon S3 to change replica ownership to the Amazon Web Services account * that owns the destination bucket by specifying the * AccessControlTranslation property, this is the account ID of the * destination bucket owner. For more information, see Replication * Additional Configuration: Changing the Replica Owner in the Amazon S3 * User Guide.

*/ inline Destination& WithAccount(const char* value) { SetAccount(value); return *this;} /** *

The storage class to use when replicating objects, such as S3 Standard or * reduced redundancy. By default, Amazon S3 uses the storage class of the source * object to create the object replica.

For valid values, see the * StorageClass element of the PUT * Bucket replication action in the Amazon S3 API Reference.

*/ inline const StorageClass& GetStorageClass() const{ return m_storageClass; } /** *

The storage class to use when replicating objects, such as S3 Standard or * reduced redundancy. By default, Amazon S3 uses the storage class of the source * object to create the object replica.

For valid values, see the * StorageClass element of the PUT * Bucket replication action in the Amazon S3 API Reference.

*/ inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; } /** *

The storage class to use when replicating objects, such as S3 Standard or * reduced redundancy. By default, Amazon S3 uses the storage class of the source * object to create the object replica.

For valid values, see the * StorageClass element of the PUT * Bucket replication action in the Amazon S3 API Reference.

*/ inline void SetStorageClass(const StorageClass& value) { m_storageClassHasBeenSet = true; m_storageClass = value; } /** *

The storage class to use when replicating objects, such as S3 Standard or * reduced redundancy. By default, Amazon S3 uses the storage class of the source * object to create the object replica.

For valid values, see the * StorageClass element of the PUT * Bucket replication action in the Amazon S3 API Reference.

*/ inline void SetStorageClass(StorageClass&& value) { m_storageClassHasBeenSet = true; m_storageClass = std::move(value); } /** *

The storage class to use when replicating objects, such as S3 Standard or * reduced redundancy. By default, Amazon S3 uses the storage class of the source * object to create the object replica.

For valid values, see the * StorageClass element of the PUT * Bucket replication action in the Amazon S3 API Reference.

*/ inline Destination& WithStorageClass(const StorageClass& value) { SetStorageClass(value); return *this;} /** *

The storage class to use when replicating objects, such as S3 Standard or * reduced redundancy. By default, Amazon S3 uses the storage class of the source * object to create the object replica.

For valid values, see the * StorageClass element of the PUT * Bucket replication action in the Amazon S3 API Reference.

*/ inline Destination& WithStorageClass(StorageClass&& value) { SetStorageClass(std::move(value)); return *this;} /** *

Specify this only in a cross-account scenario (where source and destination * bucket owners are not the same), and you want to change replica ownership to the * Amazon Web Services account that owns the destination bucket. If this is not * specified in the replication configuration, the replicas are owned by same * Amazon Web Services account that owns the source object.

*/ inline const AccessControlTranslation& GetAccessControlTranslation() const{ return m_accessControlTranslation; } /** *

Specify this only in a cross-account scenario (where source and destination * bucket owners are not the same), and you want to change replica ownership to the * Amazon Web Services account that owns the destination bucket. If this is not * specified in the replication configuration, the replicas are owned by same * Amazon Web Services account that owns the source object.

*/ inline bool AccessControlTranslationHasBeenSet() const { return m_accessControlTranslationHasBeenSet; } /** *

Specify this only in a cross-account scenario (where source and destination * bucket owners are not the same), and you want to change replica ownership to the * Amazon Web Services account that owns the destination bucket. If this is not * specified in the replication configuration, the replicas are owned by same * Amazon Web Services account that owns the source object.

*/ inline void SetAccessControlTranslation(const AccessControlTranslation& value) { m_accessControlTranslationHasBeenSet = true; m_accessControlTranslation = value; } /** *

Specify this only in a cross-account scenario (where source and destination * bucket owners are not the same), and you want to change replica ownership to the * Amazon Web Services account that owns the destination bucket. If this is not * specified in the replication configuration, the replicas are owned by same * Amazon Web Services account that owns the source object.

*/ inline void SetAccessControlTranslation(AccessControlTranslation&& value) { m_accessControlTranslationHasBeenSet = true; m_accessControlTranslation = std::move(value); } /** *

Specify this only in a cross-account scenario (where source and destination * bucket owners are not the same), and you want to change replica ownership to the * Amazon Web Services account that owns the destination bucket. If this is not * specified in the replication configuration, the replicas are owned by same * Amazon Web Services account that owns the source object.

*/ inline Destination& WithAccessControlTranslation(const AccessControlTranslation& value) { SetAccessControlTranslation(value); return *this;} /** *

Specify this only in a cross-account scenario (where source and destination * bucket owners are not the same), and you want to change replica ownership to the * Amazon Web Services account that owns the destination bucket. If this is not * specified in the replication configuration, the replicas are owned by same * Amazon Web Services account that owns the source object.

*/ inline Destination& WithAccessControlTranslation(AccessControlTranslation&& value) { SetAccessControlTranslation(std::move(value)); return *this;} /** *

A container that provides information about encryption. If * SourceSelectionCriteria is specified, you must specify this * element.

*/ inline const EncryptionConfiguration& GetEncryptionConfiguration() const{ return m_encryptionConfiguration; } /** *

A container that provides information about encryption. If * SourceSelectionCriteria is specified, you must specify this * element.

*/ inline bool EncryptionConfigurationHasBeenSet() const { return m_encryptionConfigurationHasBeenSet; } /** *

A container that provides information about encryption. If * SourceSelectionCriteria is specified, you must specify this * element.

*/ inline void SetEncryptionConfiguration(const EncryptionConfiguration& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = value; } /** *

A container that provides information about encryption. If * SourceSelectionCriteria is specified, you must specify this * element.

*/ inline void SetEncryptionConfiguration(EncryptionConfiguration&& value) { m_encryptionConfigurationHasBeenSet = true; m_encryptionConfiguration = std::move(value); } /** *

A container that provides information about encryption. If * SourceSelectionCriteria is specified, you must specify this * element.

*/ inline Destination& WithEncryptionConfiguration(const EncryptionConfiguration& value) { SetEncryptionConfiguration(value); return *this;} /** *

A container that provides information about encryption. If * SourceSelectionCriteria is specified, you must specify this * element.

*/ inline Destination& WithEncryptionConfiguration(EncryptionConfiguration&& value) { SetEncryptionConfiguration(std::move(value)); return *this;} /** *

A container specifying S3 Replication Time Control (S3 RTC), including * whether S3 RTC is enabled and the time when all objects and operations on * objects must be replicated. Must be specified together with a * Metrics block.

*/ inline const ReplicationTime& GetReplicationTime() const{ return m_replicationTime; } /** *

A container specifying S3 Replication Time Control (S3 RTC), including * whether S3 RTC is enabled and the time when all objects and operations on * objects must be replicated. Must be specified together with a * Metrics block.

*/ inline bool ReplicationTimeHasBeenSet() const { return m_replicationTimeHasBeenSet; } /** *

A container specifying S3 Replication Time Control (S3 RTC), including * whether S3 RTC is enabled and the time when all objects and operations on * objects must be replicated. Must be specified together with a * Metrics block.

*/ inline void SetReplicationTime(const ReplicationTime& value) { m_replicationTimeHasBeenSet = true; m_replicationTime = value; } /** *

A container specifying S3 Replication Time Control (S3 RTC), including * whether S3 RTC is enabled and the time when all objects and operations on * objects must be replicated. Must be specified together with a * Metrics block.

*/ inline void SetReplicationTime(ReplicationTime&& value) { m_replicationTimeHasBeenSet = true; m_replicationTime = std::move(value); } /** *

A container specifying S3 Replication Time Control (S3 RTC), including * whether S3 RTC is enabled and the time when all objects and operations on * objects must be replicated. Must be specified together with a * Metrics block.

*/ inline Destination& WithReplicationTime(const ReplicationTime& value) { SetReplicationTime(value); return *this;} /** *

A container specifying S3 Replication Time Control (S3 RTC), including * whether S3 RTC is enabled and the time when all objects and operations on * objects must be replicated. Must be specified together with a * Metrics block.

*/ inline Destination& WithReplicationTime(ReplicationTime&& value) { SetReplicationTime(std::move(value)); return *this;} /** *

A container specifying replication metrics-related settings enabling * replication metrics and events.

*/ inline const Metrics& GetMetrics() const{ return m_metrics; } /** *

A container specifying replication metrics-related settings enabling * replication metrics and events.

*/ inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; } /** *

A container specifying replication metrics-related settings enabling * replication metrics and events.

*/ inline void SetMetrics(const Metrics& value) { m_metricsHasBeenSet = true; m_metrics = value; } /** *

A container specifying replication metrics-related settings enabling * replication metrics and events.

*/ inline void SetMetrics(Metrics&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); } /** *

A container specifying replication metrics-related settings enabling * replication metrics and events.

*/ inline Destination& WithMetrics(const Metrics& value) { SetMetrics(value); return *this;} /** *

A container specifying replication metrics-related settings enabling * replication metrics and events.

*/ inline Destination& WithMetrics(Metrics&& value) { SetMetrics(std::move(value)); return *this;} private: Aws::String m_bucket; bool m_bucketHasBeenSet; Aws::String m_account; bool m_accountHasBeenSet; StorageClass m_storageClass; bool m_storageClassHasBeenSet; AccessControlTranslation m_accessControlTranslation; bool m_accessControlTranslationHasBeenSet; EncryptionConfiguration m_encryptionConfiguration; bool m_encryptionConfigurationHasBeenSet; ReplicationTime m_replicationTime; bool m_replicationTimeHasBeenSet; Metrics m_metrics; bool m_metricsHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws