/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies which S3 on Outposts 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. S3 on Outposts attempts to replicate objects * according to all replication rules. However, if there are two or more rules with * the same destination Outposts 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 Creating * replication rules on Outposts 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. S3 on Outposts attempts to replicate objects * according to all replication rules. However, if there are two or more rules with * the same destination Outposts 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 Creating * replication rules on Outposts 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. S3 on Outposts attempts to replicate objects * according to all replication rules. However, if there are two or more rules with * the same destination Outposts 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 Creating * replication rules on Outposts 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. S3 on Outposts attempts to replicate objects * according to all replication rules. However, if there are two or more rules with * the same destination Outposts 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 Creating * replication rules on Outposts in the Amazon S3 User Guide.
*/ inline ReplicationRule& WithPriority(int value) { SetPriority(value); return *this;} /** *A filter that identifies the subset of objects to which the replication rule
* applies. A Filter
element must specify exactly one
* Prefix
, Tag
, or And
child element.
A filter that identifies the subset of objects to which the replication rule
* applies. A Filter
element must specify exactly one
* Prefix
, Tag
, or And
child element.
A filter that identifies the subset of objects to which the replication rule
* applies. A Filter
element must specify exactly one
* Prefix
, Tag
, or And
child element.
A filter that identifies the subset of objects to which the replication rule
* applies. A Filter
element must specify exactly one
* Prefix
, Tag
, or And
child element.
A filter that identifies the subset of objects to which the replication rule
* applies. A Filter
element must specify exactly one
* Prefix
, Tag
, or And
child element.
A filter that identifies the subset of objects to which the replication rule
* applies. A Filter
element must specify exactly one
* Prefix
, Tag
, or And
child element.
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 * Outposts objects that you want to replicate. You can choose to enable or disable * the replication of these objects.
*/ inline const SourceSelectionCriteria& GetSourceSelectionCriteria() const{ return m_sourceSelectionCriteria; } /** *A container that describes additional filters for identifying the source * Outposts objects that you want to replicate. You can choose to enable or disable * the replication of these objects.
*/ inline bool SourceSelectionCriteriaHasBeenSet() const { return m_sourceSelectionCriteriaHasBeenSet; } /** *A container that describes additional filters for identifying the source * Outposts objects that you want to replicate. You can choose to enable or disable * the replication of these objects.
*/ inline void SetSourceSelectionCriteria(const SourceSelectionCriteria& value) { m_sourceSelectionCriteriaHasBeenSet = true; m_sourceSelectionCriteria = value; } /** *A container that describes additional filters for identifying the source * Outposts objects that you want to replicate. You can choose to enable or disable * the replication of these objects.
*/ inline void SetSourceSelectionCriteria(SourceSelectionCriteria&& value) { m_sourceSelectionCriteriaHasBeenSet = true; m_sourceSelectionCriteria = std::move(value); } /** *A container that describes additional filters for identifying the source * Outposts objects that you want to replicate. You can choose to enable or disable * the replication of these objects.
*/ inline ReplicationRule& WithSourceSelectionCriteria(const SourceSelectionCriteria& value) { SetSourceSelectionCriteria(value); return *this;} /** *A container that describes additional filters for identifying the source * Outposts objects that you want to replicate. You can choose to enable or disable * the replication of these objects.
*/ inline ReplicationRule& WithSourceSelectionCriteria(SourceSelectionCriteria&& value) { SetSourceSelectionCriteria(std::move(value)); return *this;} /** *An optional configuration to replicate existing source bucket objects.
*This is not supported by Amazon S3 on Outposts buckets.
*/ inline const ExistingObjectReplication& GetExistingObjectReplication() const{ return m_existingObjectReplication; } /** *An optional configuration to replicate existing source bucket objects.
*This is not supported by Amazon S3 on Outposts buckets.
*/ inline bool ExistingObjectReplicationHasBeenSet() const { return m_existingObjectReplicationHasBeenSet; } /** *An optional configuration to replicate existing source bucket objects.
*This is not supported by Amazon S3 on Outposts buckets.
*/ inline void SetExistingObjectReplication(const ExistingObjectReplication& value) { m_existingObjectReplicationHasBeenSet = true; m_existingObjectReplication = value; } /** *An optional configuration to replicate existing source bucket objects.
*This is not supported by Amazon S3 on Outposts buckets.
*/ inline void SetExistingObjectReplication(ExistingObjectReplication&& value) { m_existingObjectReplicationHasBeenSet = true; m_existingObjectReplication = std::move(value); } /** *An optional configuration to replicate existing source bucket objects.
*This is not supported by Amazon S3 on Outposts buckets.
*/ inline ReplicationRule& WithExistingObjectReplication(const ExistingObjectReplication& value) { SetExistingObjectReplication(value); return *this;} /** *An optional configuration to replicate existing source bucket objects.
*This is not supported by Amazon S3 on Outposts buckets.
*/ inline ReplicationRule& WithExistingObjectReplication(ExistingObjectReplication&& value) { SetExistingObjectReplication(std::move(value)); return *this;} /** *A container for information about the replication destination and its * configurations.
*/ inline const Destination& GetDestination() const{ return m_destination; } /** *A container for information about the replication destination and its * configurations.
*/ inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; } /** *A container for information about the replication destination and its * configurations.
*/ inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; } /** *A container for information about the replication destination and its * configurations.
*/ inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); } /** *A container for information about the replication destination and its * configurations.
*/ inline ReplicationRule& WithDestination(const Destination& value) { SetDestination(value); return *this;} /** *A container for information about the replication destination and its * configurations.
*/ inline ReplicationRule& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;} /** *Specifies whether S3 on Outposts replicates delete markers. If you specify a
* Filter
element in your replication configuration, you must also
* include a DeleteMarkerReplication
element. If your
* Filter
includes a Tag
element, the
* DeleteMarkerReplication
element's Status
child element
* must be set to Disabled
, because S3 on Outposts doesn't support
* replicating delete markers for tag-based rules.
For more information * about delete marker replication, see How * delete operations affect replication in the Amazon S3 User Guide. *
*/ inline const DeleteMarkerReplication& GetDeleteMarkerReplication() const{ return m_deleteMarkerReplication; } /** *Specifies whether S3 on Outposts replicates delete markers. If you specify a
* Filter
element in your replication configuration, you must also
* include a DeleteMarkerReplication
element. If your
* Filter
includes a Tag
element, the
* DeleteMarkerReplication
element's Status
child element
* must be set to Disabled
, because S3 on Outposts doesn't support
* replicating delete markers for tag-based rules.
For more information * about delete marker replication, see How * delete operations affect replication in the Amazon S3 User Guide. *
*/ inline bool DeleteMarkerReplicationHasBeenSet() const { return m_deleteMarkerReplicationHasBeenSet; } /** *Specifies whether S3 on Outposts replicates delete markers. If you specify a
* Filter
element in your replication configuration, you must also
* include a DeleteMarkerReplication
element. If your
* Filter
includes a Tag
element, the
* DeleteMarkerReplication
element's Status
child element
* must be set to Disabled
, because S3 on Outposts doesn't support
* replicating delete markers for tag-based rules.
For more information * about delete marker replication, see How * delete operations affect replication in the Amazon S3 User Guide. *
*/ inline void SetDeleteMarkerReplication(const DeleteMarkerReplication& value) { m_deleteMarkerReplicationHasBeenSet = true; m_deleteMarkerReplication = value; } /** *Specifies whether S3 on Outposts replicates delete markers. If you specify a
* Filter
element in your replication configuration, you must also
* include a DeleteMarkerReplication
element. If your
* Filter
includes a Tag
element, the
* DeleteMarkerReplication
element's Status
child element
* must be set to Disabled
, because S3 on Outposts doesn't support
* replicating delete markers for tag-based rules.
For more information * about delete marker replication, see How * delete operations affect replication in the Amazon S3 User Guide. *
*/ inline void SetDeleteMarkerReplication(DeleteMarkerReplication&& value) { m_deleteMarkerReplicationHasBeenSet = true; m_deleteMarkerReplication = std::move(value); } /** *Specifies whether S3 on Outposts replicates delete markers. If you specify a
* Filter
element in your replication configuration, you must also
* include a DeleteMarkerReplication
element. If your
* Filter
includes a Tag
element, the
* DeleteMarkerReplication
element's Status
child element
* must be set to Disabled
, because S3 on Outposts doesn't support
* replicating delete markers for tag-based rules.
For more information * about delete marker replication, see How * delete operations affect replication in the Amazon S3 User Guide. *
*/ inline ReplicationRule& WithDeleteMarkerReplication(const DeleteMarkerReplication& value) { SetDeleteMarkerReplication(value); return *this;} /** *Specifies whether S3 on Outposts replicates delete markers. If you specify a
* Filter
element in your replication configuration, you must also
* include a DeleteMarkerReplication
element. If your
* Filter
includes a Tag
element, the
* DeleteMarkerReplication
element's Status
child element
* must be set to Disabled
, because S3 on Outposts doesn't support
* replicating delete markers for tag-based rules.
For more information * about delete marker replication, see How * delete operations affect replication in the Amazon S3 User Guide. *
*/ inline ReplicationRule& WithDeleteMarkerReplication(DeleteMarkerReplication&& value) { SetDeleteMarkerReplication(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the access point for the source Outposts * bucket that you want S3 on Outposts to replicate the objects from.
*/ inline const Aws::String& GetBucket() const{ return m_bucket; } /** *The Amazon Resource Name (ARN) of the access point for the source Outposts * bucket that you want S3 on Outposts to replicate the objects from.
*/ inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } /** *The Amazon Resource Name (ARN) of the access point for the source Outposts * bucket that you want S3 on Outposts to replicate the objects from.
*/ inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } /** *The Amazon Resource Name (ARN) of the access point for the source Outposts * bucket that you want S3 on Outposts to replicate the objects from.
*/ inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } /** *The Amazon Resource Name (ARN) of the access point for the source Outposts * bucket that you want S3 on Outposts to replicate the objects from.
*/ inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } /** *The Amazon Resource Name (ARN) of the access point for the source Outposts * bucket that you want S3 on Outposts to replicate the objects from.
*/ inline ReplicationRule& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *The Amazon Resource Name (ARN) of the access point for the source Outposts * bucket that you want S3 on Outposts to replicate the objects from.
*/ inline ReplicationRule& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} /** *The Amazon Resource Name (ARN) of the access point for the source Outposts * bucket that you want S3 on Outposts to replicate the objects from.
*/ inline ReplicationRule& WithBucket(const char* value) { SetBucket(value); return *this;} private: Aws::String m_iD; bool m_iDHasBeenSet = false; int m_priority; bool m_priorityHasBeenSet = false; ReplicationRuleFilter m_filter; bool m_filterHasBeenSet = false; ReplicationRuleStatus m_status; bool m_statusHasBeenSet = false; SourceSelectionCriteria m_sourceSelectionCriteria; bool m_sourceSelectionCriteriaHasBeenSet = false; ExistingObjectReplication m_existingObjectReplication; bool m_existingObjectReplicationHasBeenSet = false; Destination m_destination; bool m_destinationHasBeenSet = false; DeleteMarkerReplication m_deleteMarkerReplication; bool m_deleteMarkerReplicationHasBeenSet = false; Aws::String m_bucket; bool m_bucketHasBeenSet = false; }; } // namespace Model } // namespace S3Control } // namespace Aws