/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies which Amazon S3 objects to replicate and where to store the
* replicas.See Also:
AWS
* API Reference
A unique identifier for the rule. The maximum value is 255 characters.
*/ inline const Aws::String& GetID() const{ return m_iD; } /** *A unique identifier for the rule. The maximum value is 255 characters.
*/ inline bool IDHasBeenSet() const { return m_iDHasBeenSet; } /** *A unique identifier for the rule. The maximum value is 255 characters.
*/ inline void SetID(const Aws::String& value) { m_iDHasBeenSet = true; m_iD = value; } /** *A unique identifier for the rule. The maximum value is 255 characters.
*/ inline void SetID(Aws::String&& value) { m_iDHasBeenSet = true; m_iD = std::move(value); } /** *A unique identifier for the rule. The maximum value is 255 characters.
*/ inline void SetID(const char* value) { m_iDHasBeenSet = true; m_iD.assign(value); } /** *A unique identifier for the rule. The maximum value is 255 characters.
*/ inline ReplicationRule& WithID(const Aws::String& value) { SetID(value); return *this;} /** *A unique identifier for the rule. The maximum value is 255 characters.
*/ inline ReplicationRule& WithID(Aws::String&& value) { SetID(std::move(value)); return *this;} /** *A unique identifier for the rule. The maximum value is 255 characters.
*/ inline ReplicationRule& WithID(const char* value) { SetID(value); return *this;} /** *The priority indicates which rule has precedence whenever two or more * replication rules conflict. Amazon S3 will attempt to replicate objects * according to all replication rules. However, if there are two or more rules with * the same destination bucket, then objects will be replicated according to the * rule with the highest priority. The higher the number, the higher the priority. *
For more information, see Replication * in the Amazon S3 User Guide.
*/ inline int GetPriority() const{ return m_priority; } /** *The priority indicates which rule has precedence whenever two or more * replication rules conflict. Amazon S3 will attempt to replicate objects * according to all replication rules. However, if there are two or more rules with * the same destination bucket, then objects will be replicated according to the * rule with the highest priority. The higher the number, the higher the priority. *
For more information, see Replication * in the Amazon S3 User Guide.
*/ inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; } /** *The priority indicates which rule has precedence whenever two or more * replication rules conflict. Amazon S3 will attempt to replicate objects * according to all replication rules. However, if there are two or more rules with * the same destination bucket, then objects will be replicated according to the * rule with the highest priority. The higher the number, the higher the priority. *
For more information, see Replication * in the Amazon S3 User Guide.
*/ inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; } /** *The priority indicates which rule has precedence whenever two or more * replication rules conflict. Amazon S3 will attempt to replicate objects * according to all replication rules. However, if there are two or more rules with * the same destination bucket, then objects will be replicated according to the * rule with the highest priority. The higher the number, the higher the priority. *
For more information, see Replication * in the Amazon S3 User Guide.
*/ inline ReplicationRule& WithPriority(int value) { SetPriority(value); return *this;} inline const ReplicationRuleFilter& GetFilter() const{ return m_filter; } inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; } inline void SetFilter(const ReplicationRuleFilter& value) { m_filterHasBeenSet = true; m_filter = value; } inline void SetFilter(ReplicationRuleFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); } inline ReplicationRule& WithFilter(const ReplicationRuleFilter& value) { SetFilter(value); return *this;} inline ReplicationRule& WithFilter(ReplicationRuleFilter&& value) { SetFilter(std::move(value)); return *this;} /** *Specifies whether the rule is enabled.
*/ inline const ReplicationRuleStatus& GetStatus() const{ return m_status; } /** *Specifies whether the rule is enabled.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *Specifies whether the rule is enabled.
*/ inline void SetStatus(const ReplicationRuleStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *Specifies whether the rule is enabled.
*/ inline void SetStatus(ReplicationRuleStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *Specifies whether the rule is enabled.
*/ inline ReplicationRule& WithStatus(const ReplicationRuleStatus& value) { SetStatus(value); return *this;} /** *Specifies whether the rule is enabled.
*/ inline ReplicationRule& WithStatus(ReplicationRuleStatus&& value) { SetStatus(std::move(value)); return *this;} /** *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).
*/ inline const SourceSelectionCriteria& GetSourceSelectionCriteria() const{ return m_sourceSelectionCriteria; } /** *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).
*/ inline bool SourceSelectionCriteriaHasBeenSet() const { return m_sourceSelectionCriteriaHasBeenSet; } /** *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).
*/ inline void SetSourceSelectionCriteria(const SourceSelectionCriteria& value) { m_sourceSelectionCriteriaHasBeenSet = true; m_sourceSelectionCriteria = value; } /** *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).
*/ inline void SetSourceSelectionCriteria(SourceSelectionCriteria&& value) { m_sourceSelectionCriteriaHasBeenSet = true; m_sourceSelectionCriteria = std::move(value); } /** *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).
*/ inline ReplicationRule& WithSourceSelectionCriteria(const SourceSelectionCriteria& value) { SetSourceSelectionCriteria(value); return *this;} /** *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).
*/ inline ReplicationRule& WithSourceSelectionCriteria(SourceSelectionCriteria&& value) { SetSourceSelectionCriteria(std::move(value)); return *this;} /** * */ inline const ExistingObjectReplication& GetExistingObjectReplication() const{ return m_existingObjectReplication; } /** * */ inline bool ExistingObjectReplicationHasBeenSet() const { return m_existingObjectReplicationHasBeenSet; } /** * */ inline void SetExistingObjectReplication(const ExistingObjectReplication& value) { m_existingObjectReplicationHasBeenSet = true; m_existingObjectReplication = value; } /** * */ inline void SetExistingObjectReplication(ExistingObjectReplication&& value) { m_existingObjectReplicationHasBeenSet = true; m_existingObjectReplication = std::move(value); } /** * */ inline ReplicationRule& WithExistingObjectReplication(const ExistingObjectReplication& value) { SetExistingObjectReplication(value); return *this;} /** * */ inline ReplicationRule& WithExistingObjectReplication(ExistingObjectReplication&& value) { SetExistingObjectReplication(std::move(value)); return *this;} /** *A container for information about the replication destination and its * configurations including enabling the S3 Replication Time Control (S3 RTC).
*/ inline const Destination& GetDestination() const{ return m_destination; } /** *A container for information about the replication destination and its * configurations including enabling the S3 Replication Time Control (S3 RTC).
*/ inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; } /** *A container for information about the replication destination and its * configurations including enabling the S3 Replication Time Control (S3 RTC).
*/ inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; } /** *A container for information about the replication destination and its * configurations including enabling the S3 Replication Time Control (S3 RTC).
*/ inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); } /** *A container for information about the replication destination and its * configurations including enabling the S3 Replication Time Control (S3 RTC).
*/ inline ReplicationRule& WithDestination(const Destination& value) { SetDestination(value); return *this;} /** *A container for information about the replication destination and its * configurations including enabling the S3 Replication Time Control (S3 RTC).
*/ inline ReplicationRule& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;} inline const DeleteMarkerReplication& GetDeleteMarkerReplication() const{ return m_deleteMarkerReplication; } inline bool DeleteMarkerReplicationHasBeenSet() const { return m_deleteMarkerReplicationHasBeenSet; } inline void SetDeleteMarkerReplication(const DeleteMarkerReplication& value) { m_deleteMarkerReplicationHasBeenSet = true; m_deleteMarkerReplication = value; } inline void SetDeleteMarkerReplication(DeleteMarkerReplication&& value) { m_deleteMarkerReplicationHasBeenSet = true; m_deleteMarkerReplication = std::move(value); } inline ReplicationRule& WithDeleteMarkerReplication(const DeleteMarkerReplication& value) { SetDeleteMarkerReplication(value); return *this;} inline ReplicationRule& WithDeleteMarkerReplication(DeleteMarkerReplication&& value) { SetDeleteMarkerReplication(std::move(value)); return *this;} private: Aws::String m_iD; bool m_iDHasBeenSet; int m_priority; bool m_priorityHasBeenSet; ReplicationRuleFilter m_filter; bool m_filterHasBeenSet; ReplicationRuleStatus m_status; bool m_statusHasBeenSet; SourceSelectionCriteria m_sourceSelectionCriteria; bool m_sourceSelectionCriteriaHasBeenSet; ExistingObjectReplication m_existingObjectReplication; bool m_existingObjectReplicationHasBeenSet; Destination m_destination; bool m_destinationHasBeenSet; DeleteMarkerReplication m_deleteMarkerReplication; bool m_deleteMarkerReplicationHasBeenSet; }; } // namespace Model } // namespace S3 } // namespace Aws