AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ReplicationRule.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3control/model/ReplicationRuleFilter.h>
10#include <aws/s3control/model/ReplicationRuleStatus.h>
11#include <aws/s3control/model/SourceSelectionCriteria.h>
12#include <aws/s3control/model/ExistingObjectReplication.h>
13#include <aws/s3control/model/Destination.h>
14#include <aws/s3control/model/DeleteMarkerReplication.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Xml
22{
23 class XmlNode;
24} // namespace Xml
25} // namespace Utils
26namespace S3Control
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_S3CONTROL_API ReplicationRule();
41 AWS_S3CONTROL_API ReplicationRule(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_S3CONTROL_API ReplicationRule& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
45
46
48
51 inline const Aws::String& GetID() const{ return m_iD; }
52 inline bool IDHasBeenSet() const { return m_iDHasBeenSet; }
53 inline void SetID(const Aws::String& value) { m_iDHasBeenSet = true; m_iD = value; }
54 inline void SetID(Aws::String&& value) { m_iDHasBeenSet = true; m_iD = std::move(value); }
55 inline void SetID(const char* value) { m_iDHasBeenSet = true; m_iD.assign(value); }
56 inline ReplicationRule& WithID(const Aws::String& value) { SetID(value); return *this;}
57 inline ReplicationRule& WithID(Aws::String&& value) { SetID(std::move(value)); return *this;}
58 inline ReplicationRule& WithID(const char* value) { SetID(value); return *this;}
60
62
72 inline int GetPriority() const{ return m_priority; }
73 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
74 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
75 inline ReplicationRule& WithPriority(int value) { SetPriority(value); return *this;}
77
79
84 inline const ReplicationRuleFilter& GetFilter() const{ return m_filter; }
85 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
86 inline void SetFilter(const ReplicationRuleFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
87 inline void SetFilter(ReplicationRuleFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
88 inline ReplicationRule& WithFilter(const ReplicationRuleFilter& value) { SetFilter(value); return *this;}
89 inline ReplicationRule& WithFilter(ReplicationRuleFilter&& value) { SetFilter(std::move(value)); return *this;}
91
93
96 inline const ReplicationRuleStatus& GetStatus() const{ return m_status; }
97 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
98 inline void SetStatus(const ReplicationRuleStatus& value) { m_statusHasBeenSet = true; m_status = value; }
99 inline void SetStatus(ReplicationRuleStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
100 inline ReplicationRule& WithStatus(const ReplicationRuleStatus& value) { SetStatus(value); return *this;}
101 inline ReplicationRule& WithStatus(ReplicationRuleStatus&& value) { SetStatus(std::move(value)); return *this;}
103
105
110 inline const SourceSelectionCriteria& GetSourceSelectionCriteria() const{ return m_sourceSelectionCriteria; }
111 inline bool SourceSelectionCriteriaHasBeenSet() const { return m_sourceSelectionCriteriaHasBeenSet; }
112 inline void SetSourceSelectionCriteria(const SourceSelectionCriteria& value) { m_sourceSelectionCriteriaHasBeenSet = true; m_sourceSelectionCriteria = value; }
113 inline void SetSourceSelectionCriteria(SourceSelectionCriteria&& value) { m_sourceSelectionCriteriaHasBeenSet = true; m_sourceSelectionCriteria = std::move(value); }
117
119
123 inline const ExistingObjectReplication& GetExistingObjectReplication() const{ return m_existingObjectReplication; }
124 inline bool ExistingObjectReplicationHasBeenSet() const { return m_existingObjectReplicationHasBeenSet; }
125 inline void SetExistingObjectReplication(const ExistingObjectReplication& value) { m_existingObjectReplicationHasBeenSet = true; m_existingObjectReplication = value; }
126 inline void SetExistingObjectReplication(ExistingObjectReplication&& value) { m_existingObjectReplicationHasBeenSet = true; m_existingObjectReplication = std::move(value); }
130
132
136 inline const Destination& GetDestination() const{ return m_destination; }
137 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
138 inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; }
139 inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
140 inline ReplicationRule& WithDestination(const Destination& value) { SetDestination(value); return *this;}
141 inline ReplicationRule& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;}
143
145
158 inline const DeleteMarkerReplication& GetDeleteMarkerReplication() const{ return m_deleteMarkerReplication; }
159 inline bool DeleteMarkerReplicationHasBeenSet() const { return m_deleteMarkerReplicationHasBeenSet; }
160 inline void SetDeleteMarkerReplication(const DeleteMarkerReplication& value) { m_deleteMarkerReplicationHasBeenSet = true; m_deleteMarkerReplication = value; }
161 inline void SetDeleteMarkerReplication(DeleteMarkerReplication&& value) { m_deleteMarkerReplicationHasBeenSet = true; m_deleteMarkerReplication = std::move(value); }
165
167
171 inline const Aws::String& GetBucket() const{ return m_bucket; }
172 inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; }
173 inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; }
174 inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); }
175 inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); }
176 inline ReplicationRule& WithBucket(const Aws::String& value) { SetBucket(value); return *this;}
177 inline ReplicationRule& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;}
178 inline ReplicationRule& WithBucket(const char* value) { SetBucket(value); return *this;}
180 private:
181
182 Aws::String m_iD;
183 bool m_iDHasBeenSet = false;
184
185 int m_priority;
186 bool m_priorityHasBeenSet = false;
187
188 ReplicationRuleFilter m_filter;
189 bool m_filterHasBeenSet = false;
190
191 ReplicationRuleStatus m_status;
192 bool m_statusHasBeenSet = false;
193
194 SourceSelectionCriteria m_sourceSelectionCriteria;
195 bool m_sourceSelectionCriteriaHasBeenSet = false;
196
197 ExistingObjectReplication m_existingObjectReplication;
198 bool m_existingObjectReplicationHasBeenSet = false;
199
200 Destination m_destination;
201 bool m_destinationHasBeenSet = false;
202
203 DeleteMarkerReplication m_deleteMarkerReplication;
204 bool m_deleteMarkerReplicationHasBeenSet = false;
205
206 Aws::String m_bucket;
207 bool m_bucketHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace S3Control
212} // namespace Aws
const Aws::String & GetID() const
void SetStatus(const ReplicationRuleStatus &value)
ReplicationRule & WithFilter(ReplicationRuleFilter &&value)
ReplicationRule & WithID(const char *value)
ReplicationRule & WithDestination(const Destination &value)
void SetStatus(ReplicationRuleStatus &&value)
const ExistingObjectReplication & GetExistingObjectReplication() const
ReplicationRule & WithSourceSelectionCriteria(SourceSelectionCriteria &&value)
void SetDeleteMarkerReplication(const DeleteMarkerReplication &value)
void SetSourceSelectionCriteria(const SourceSelectionCriteria &value)
void SetSourceSelectionCriteria(SourceSelectionCriteria &&value)
const DeleteMarkerReplication & GetDeleteMarkerReplication() const
ReplicationRule & WithBucket(const char *value)
ReplicationRule & WithStatus(const ReplicationRuleStatus &value)
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const ReplicationRuleFilter & GetFilter() const
AWS_S3CONTROL_API ReplicationRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationRule & WithDestination(Destination &&value)
ReplicationRule & WithStatus(ReplicationRuleStatus &&value)
void SetDestination(const Destination &value)
void SetID(const Aws::String &value)
ReplicationRule & WithBucket(const Aws::String &value)
ReplicationRule & WithPriority(int value)
void SetBucket(const Aws::String &value)
void SetExistingObjectReplication(ExistingObjectReplication &&value)
ReplicationRule & WithID(Aws::String &&value)
ReplicationRule & WithExistingObjectReplication(ExistingObjectReplication &&value)
const SourceSelectionCriteria & GetSourceSelectionCriteria() const
const Destination & GetDestination() const
ReplicationRule & WithID(const Aws::String &value)
ReplicationRule & WithBucket(Aws::String &&value)
ReplicationRule & WithSourceSelectionCriteria(const SourceSelectionCriteria &value)
AWS_S3CONTROL_API ReplicationRule(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationRule & WithExistingObjectReplication(const ExistingObjectReplication &value)
void SetFilter(const ReplicationRuleFilter &value)
const Aws::String & GetBucket() const
ReplicationRule & WithDeleteMarkerReplication(const DeleteMarkerReplication &value)
void SetDestination(Destination &&value)
ReplicationRule & WithFilter(const ReplicationRuleFilter &value)
void SetDeleteMarkerReplication(DeleteMarkerReplication &&value)
ReplicationRule & WithDeleteMarkerReplication(DeleteMarkerReplication &&value)
const ReplicationRuleStatus & GetStatus() const
void SetFilter(ReplicationRuleFilter &&value)
void SetExistingObjectReplication(const ExistingObjectReplication &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String