AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ReplicationRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/s3control/S3Control_EXPORTS.h>
9#include <aws/s3control/model/DeleteMarkerReplication.h>
10#include <aws/s3control/model/Destination.h>
11#include <aws/s3control/model/ExistingObjectReplication.h>
12#include <aws/s3control/model/ReplicationRuleFilter.h>
13#include <aws/s3control/model/ReplicationRuleStatus.h>
14#include <aws/s3control/model/SourceSelectionCriteria.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Xml {
21class XmlNode;
22} // namespace Xml
23} // namespace Utils
24namespace S3Control {
25namespace Model {
26
34 public:
35 AWS_S3CONTROL_API ReplicationRule() = default;
36 AWS_S3CONTROL_API ReplicationRule(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_S3CONTROL_API ReplicationRule& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
40
42
45 inline const Aws::String& GetID() const { return m_iD; }
46 inline bool IDHasBeenSet() const { return m_iDHasBeenSet; }
47 template <typename IDT = Aws::String>
48 void SetID(IDT&& value) {
49 m_iDHasBeenSet = true;
50 m_iD = std::forward<IDT>(value);
51 }
52 template <typename IDT = Aws::String>
53 ReplicationRule& WithID(IDT&& value) {
54 SetID(std::forward<IDT>(value));
55 return *this;
56 }
58
60
70 inline int GetPriority() const { return m_priority; }
71 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
72 inline void SetPriority(int value) {
73 m_priorityHasBeenSet = true;
74 m_priority = value;
75 }
76 inline ReplicationRule& WithPriority(int value) {
77 SetPriority(value);
78 return *this;
79 }
81
83
88 inline const ReplicationRuleFilter& GetFilter() const { return m_filter; }
89 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
90 template <typename FilterT = ReplicationRuleFilter>
91 void SetFilter(FilterT&& value) {
92 m_filterHasBeenSet = true;
93 m_filter = std::forward<FilterT>(value);
94 }
95 template <typename FilterT = ReplicationRuleFilter>
96 ReplicationRule& WithFilter(FilterT&& value) {
97 SetFilter(std::forward<FilterT>(value));
98 return *this;
99 }
101
103
106 inline ReplicationRuleStatus GetStatus() const { return m_status; }
107 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
108 inline void SetStatus(ReplicationRuleStatus value) {
109 m_statusHasBeenSet = true;
110 m_status = value;
111 }
113 SetStatus(value);
114 return *this;
115 }
117
119
124 inline const SourceSelectionCriteria& GetSourceSelectionCriteria() const { return m_sourceSelectionCriteria; }
125 inline bool SourceSelectionCriteriaHasBeenSet() const { return m_sourceSelectionCriteriaHasBeenSet; }
126 template <typename SourceSelectionCriteriaT = SourceSelectionCriteria>
127 void SetSourceSelectionCriteria(SourceSelectionCriteriaT&& value) {
128 m_sourceSelectionCriteriaHasBeenSet = true;
129 m_sourceSelectionCriteria = std::forward<SourceSelectionCriteriaT>(value);
130 }
131 template <typename SourceSelectionCriteriaT = SourceSelectionCriteria>
132 ReplicationRule& WithSourceSelectionCriteria(SourceSelectionCriteriaT&& value) {
133 SetSourceSelectionCriteria(std::forward<SourceSelectionCriteriaT>(value));
134 return *this;
135 }
137
139
143 inline const ExistingObjectReplication& GetExistingObjectReplication() const { return m_existingObjectReplication; }
144 inline bool ExistingObjectReplicationHasBeenSet() const { return m_existingObjectReplicationHasBeenSet; }
145 template <typename ExistingObjectReplicationT = ExistingObjectReplication>
146 void SetExistingObjectReplication(ExistingObjectReplicationT&& value) {
147 m_existingObjectReplicationHasBeenSet = true;
148 m_existingObjectReplication = std::forward<ExistingObjectReplicationT>(value);
149 }
150 template <typename ExistingObjectReplicationT = ExistingObjectReplication>
151 ReplicationRule& WithExistingObjectReplication(ExistingObjectReplicationT&& value) {
152 SetExistingObjectReplication(std::forward<ExistingObjectReplicationT>(value));
153 return *this;
154 }
156
158
162 inline const Destination& GetDestination() const { return m_destination; }
163 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
164 template <typename DestinationT = Destination>
165 void SetDestination(DestinationT&& value) {
166 m_destinationHasBeenSet = true;
167 m_destination = std::forward<DestinationT>(value);
168 }
169 template <typename DestinationT = Destination>
170 ReplicationRule& WithDestination(DestinationT&& value) {
171 SetDestination(std::forward<DestinationT>(value));
172 return *this;
173 }
175
177
190 inline const DeleteMarkerReplication& GetDeleteMarkerReplication() const { return m_deleteMarkerReplication; }
191 inline bool DeleteMarkerReplicationHasBeenSet() const { return m_deleteMarkerReplicationHasBeenSet; }
192 template <typename DeleteMarkerReplicationT = DeleteMarkerReplication>
193 void SetDeleteMarkerReplication(DeleteMarkerReplicationT&& value) {
194 m_deleteMarkerReplicationHasBeenSet = true;
195 m_deleteMarkerReplication = std::forward<DeleteMarkerReplicationT>(value);
196 }
197 template <typename DeleteMarkerReplicationT = DeleteMarkerReplication>
198 ReplicationRule& WithDeleteMarkerReplication(DeleteMarkerReplicationT&& value) {
199 SetDeleteMarkerReplication(std::forward<DeleteMarkerReplicationT>(value));
200 return *this;
201 }
203
205
209 inline const Aws::String& GetBucket() const { return m_bucket; }
210 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
211 template <typename BucketT = Aws::String>
212 void SetBucket(BucketT&& value) {
213 m_bucketHasBeenSet = true;
214 m_bucket = std::forward<BucketT>(value);
215 }
216 template <typename BucketT = Aws::String>
217 ReplicationRule& WithBucket(BucketT&& value) {
218 SetBucket(std::forward<BucketT>(value));
219 return *this;
220 }
222 private:
223 Aws::String m_iD;
224
225 int m_priority{0};
226
227 ReplicationRuleFilter m_filter;
228
230
231 SourceSelectionCriteria m_sourceSelectionCriteria;
232
233 ExistingObjectReplication m_existingObjectReplication;
234
235 Destination m_destination;
236
237 DeleteMarkerReplication m_deleteMarkerReplication;
238
239 Aws::String m_bucket;
240 bool m_iDHasBeenSet = false;
241 bool m_priorityHasBeenSet = false;
242 bool m_filterHasBeenSet = false;
243 bool m_statusHasBeenSet = false;
244 bool m_sourceSelectionCriteriaHasBeenSet = false;
245 bool m_existingObjectReplicationHasBeenSet = false;
246 bool m_destinationHasBeenSet = false;
247 bool m_deleteMarkerReplicationHasBeenSet = false;
248 bool m_bucketHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace S3Control
253} // namespace Aws
ReplicationRule & WithSourceSelectionCriteria(SourceSelectionCriteriaT &&value)
const Aws::String & GetID() const
AWS_S3CONTROL_API ReplicationRule()=default
void SetDestination(DestinationT &&value)
void SetSourceSelectionCriteria(SourceSelectionCriteriaT &&value)
ReplicationRule & WithFilter(FilterT &&value)
void SetStatus(ReplicationRuleStatus value)
void SetDeleteMarkerReplication(DeleteMarkerReplicationT &&value)
const ExistingObjectReplication & GetExistingObjectReplication() const
const DeleteMarkerReplication & GetDeleteMarkerReplication() const
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const ReplicationRuleFilter & GetFilter() const
ReplicationRule & WithBucket(BucketT &&value)
AWS_S3CONTROL_API ReplicationRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationRule & WithID(IDT &&value)
void SetExistingObjectReplication(ExistingObjectReplicationT &&value)
ReplicationRule & WithDeleteMarkerReplication(DeleteMarkerReplicationT &&value)
ReplicationRule & WithPriority(int value)
ReplicationRule & WithExistingObjectReplication(ExistingObjectReplicationT &&value)
ReplicationRule & WithStatus(ReplicationRuleStatus value)
ReplicationRuleStatus GetStatus() const
ReplicationRule & WithDestination(DestinationT &&value)
const SourceSelectionCriteria & GetSourceSelectionCriteria() const
const Destination & GetDestination() const
AWS_S3CONTROL_API ReplicationRule(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetBucket() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String