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

A container that describes additional filters for identifying the source * objects that you want to replicate. You can choose to enable or disable the * replication of these objects. Currently, Amazon S3 supports only the filter that * you can specify for objects created with server-side encryption using a customer * managed key stored in Amazon Web Services Key Management Service * (SSE-KMS).

See Also:

AWS * API Reference

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

A container for filter information for the selection of Amazon S3 objects * encrypted with Amazon Web Services KMS. If you include * SourceSelectionCriteria in the replication configuration, this * element is required.

*/ inline const SseKmsEncryptedObjects& GetSseKmsEncryptedObjects() const{ return m_sseKmsEncryptedObjects; } /** *

A container for filter information for the selection of Amazon S3 objects * encrypted with Amazon Web Services KMS. If you include * SourceSelectionCriteria in the replication configuration, this * element is required.

*/ inline bool SseKmsEncryptedObjectsHasBeenSet() const { return m_sseKmsEncryptedObjectsHasBeenSet; } /** *

A container for filter information for the selection of Amazon S3 objects * encrypted with Amazon Web Services KMS. If you include * SourceSelectionCriteria in the replication configuration, this * element is required.

*/ inline void SetSseKmsEncryptedObjects(const SseKmsEncryptedObjects& value) { m_sseKmsEncryptedObjectsHasBeenSet = true; m_sseKmsEncryptedObjects = value; } /** *

A container for filter information for the selection of Amazon S3 objects * encrypted with Amazon Web Services KMS. If you include * SourceSelectionCriteria in the replication configuration, this * element is required.

*/ inline void SetSseKmsEncryptedObjects(SseKmsEncryptedObjects&& value) { m_sseKmsEncryptedObjectsHasBeenSet = true; m_sseKmsEncryptedObjects = std::move(value); } /** *

A container for filter information for the selection of Amazon S3 objects * encrypted with Amazon Web Services KMS. If you include * SourceSelectionCriteria in the replication configuration, this * element is required.

*/ inline SourceSelectionCriteria& WithSseKmsEncryptedObjects(const SseKmsEncryptedObjects& value) { SetSseKmsEncryptedObjects(value); return *this;} /** *

A container for filter information for the selection of Amazon S3 objects * encrypted with Amazon Web Services KMS. If you include * SourceSelectionCriteria in the replication configuration, this * element is required.

*/ inline SourceSelectionCriteria& WithSseKmsEncryptedObjects(SseKmsEncryptedObjects&& value) { SetSseKmsEncryptedObjects(std::move(value)); return *this;} /** *

A filter that you can specify for selections for modifications on replicas. * Amazon S3 doesn't replicate replica modifications by default. In the latest * version of replication configuration (when Filter is specified), * you can specify this element and set the status to Enabled to * replicate modifications on replicas.

If you don't specify the * Filter element, Amazon S3 assumes that the replication * configuration is the earlier version, V1. In the earlier version, this element * is not allowed

*/ inline const ReplicaModifications& GetReplicaModifications() const{ return m_replicaModifications; } /** *

A filter that you can specify for selections for modifications on replicas. * Amazon S3 doesn't replicate replica modifications by default. In the latest * version of replication configuration (when Filter is specified), * you can specify this element and set the status to Enabled to * replicate modifications on replicas.

If you don't specify the * Filter element, Amazon S3 assumes that the replication * configuration is the earlier version, V1. In the earlier version, this element * is not allowed

*/ inline bool ReplicaModificationsHasBeenSet() const { return m_replicaModificationsHasBeenSet; } /** *

A filter that you can specify for selections for modifications on replicas. * Amazon S3 doesn't replicate replica modifications by default. In the latest * version of replication configuration (when Filter is specified), * you can specify this element and set the status to Enabled to * replicate modifications on replicas.

If you don't specify the * Filter element, Amazon S3 assumes that the replication * configuration is the earlier version, V1. In the earlier version, this element * is not allowed

*/ inline void SetReplicaModifications(const ReplicaModifications& value) { m_replicaModificationsHasBeenSet = true; m_replicaModifications = value; } /** *

A filter that you can specify for selections for modifications on replicas. * Amazon S3 doesn't replicate replica modifications by default. In the latest * version of replication configuration (when Filter is specified), * you can specify this element and set the status to Enabled to * replicate modifications on replicas.

If you don't specify the * Filter element, Amazon S3 assumes that the replication * configuration is the earlier version, V1. In the earlier version, this element * is not allowed

*/ inline void SetReplicaModifications(ReplicaModifications&& value) { m_replicaModificationsHasBeenSet = true; m_replicaModifications = std::move(value); } /** *

A filter that you can specify for selections for modifications on replicas. * Amazon S3 doesn't replicate replica modifications by default. In the latest * version of replication configuration (when Filter is specified), * you can specify this element and set the status to Enabled to * replicate modifications on replicas.

If you don't specify the * Filter element, Amazon S3 assumes that the replication * configuration is the earlier version, V1. In the earlier version, this element * is not allowed

*/ inline SourceSelectionCriteria& WithReplicaModifications(const ReplicaModifications& value) { SetReplicaModifications(value); return *this;} /** *

A filter that you can specify for selections for modifications on replicas. * Amazon S3 doesn't replicate replica modifications by default. In the latest * version of replication configuration (when Filter is specified), * you can specify this element and set the status to Enabled to * replicate modifications on replicas.

If you don't specify the * Filter element, Amazon S3 assumes that the replication * configuration is the earlier version, V1. In the earlier version, this element * is not allowed

*/ inline SourceSelectionCriteria& WithReplicaModifications(ReplicaModifications&& value) { SetReplicaModifications(std::move(value)); return *this;} private: SseKmsEncryptedObjects m_sseKmsEncryptedObjects; bool m_sseKmsEncryptedObjectsHasBeenSet; ReplicaModifications m_replicaModifications; bool m_replicaModificationsHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws