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/s3-crt/S3Crt_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/s3-crt/model/ReplicationRuleFilter.h>
10#include <aws/s3-crt/model/ReplicationRuleStatus.h>
11#include <aws/s3-crt/model/SourceSelectionCriteria.h>
12#include <aws/s3-crt/model/ExistingObjectReplication.h>
13#include <aws/s3-crt/model/Destination.h>
14#include <aws/s3-crt/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 S3Crt
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_S3CRT_API ReplicationRule();
41 AWS_S3CRT_API ReplicationRule(const Aws::Utils::Xml::XmlNode& xmlNode);
42 AWS_S3CRT_API ReplicationRule& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
43
44 AWS_S3CRT_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
80 inline const ReplicationRuleFilter& GetFilter() const{ return m_filter; }
81 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
82 inline void SetFilter(const ReplicationRuleFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
83 inline void SetFilter(ReplicationRuleFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
84 inline ReplicationRule& WithFilter(const ReplicationRuleFilter& value) { SetFilter(value); return *this;}
85 inline ReplicationRule& WithFilter(ReplicationRuleFilter&& value) { SetFilter(std::move(value)); return *this;}
87
89
92 inline const ReplicationRuleStatus& GetStatus() const{ return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 inline void SetStatus(const ReplicationRuleStatus& value) { m_statusHasBeenSet = true; m_status = value; }
95 inline void SetStatus(ReplicationRuleStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
96 inline ReplicationRule& WithStatus(const ReplicationRuleStatus& value) { SetStatus(value); return *this;}
97 inline ReplicationRule& WithStatus(ReplicationRuleStatus&& value) { SetStatus(std::move(value)); return *this;}
99
101
108 inline const SourceSelectionCriteria& GetSourceSelectionCriteria() const{ return m_sourceSelectionCriteria; }
109 inline bool SourceSelectionCriteriaHasBeenSet() const { return m_sourceSelectionCriteriaHasBeenSet; }
110 inline void SetSourceSelectionCriteria(const SourceSelectionCriteria& value) { m_sourceSelectionCriteriaHasBeenSet = true; m_sourceSelectionCriteria = value; }
111 inline void SetSourceSelectionCriteria(SourceSelectionCriteria&& value) { m_sourceSelectionCriteriaHasBeenSet = true; m_sourceSelectionCriteria = std::move(value); }
115
117
125 inline const ExistingObjectReplication& GetExistingObjectReplication() const{ return m_existingObjectReplication; }
126 inline bool ExistingObjectReplicationHasBeenSet() const { return m_existingObjectReplicationHasBeenSet; }
127 inline void SetExistingObjectReplication(const ExistingObjectReplication& value) { m_existingObjectReplicationHasBeenSet = true; m_existingObjectReplication = value; }
128 inline void SetExistingObjectReplication(ExistingObjectReplication&& value) { m_existingObjectReplicationHasBeenSet = true; m_existingObjectReplication = std::move(value); }
132
134
138 inline const Destination& GetDestination() const{ return m_destination; }
139 inline bool DestinationHasBeenSet() const { return m_destinationHasBeenSet; }
140 inline void SetDestination(const Destination& value) { m_destinationHasBeenSet = true; m_destination = value; }
141 inline void SetDestination(Destination&& value) { m_destinationHasBeenSet = true; m_destination = std::move(value); }
142 inline ReplicationRule& WithDestination(const Destination& value) { SetDestination(value); return *this;}
143 inline ReplicationRule& WithDestination(Destination&& value) { SetDestination(std::move(value)); return *this;}
145
147
148 inline const DeleteMarkerReplication& GetDeleteMarkerReplication() const{ return m_deleteMarkerReplication; }
149 inline bool DeleteMarkerReplicationHasBeenSet() const { return m_deleteMarkerReplicationHasBeenSet; }
150 inline void SetDeleteMarkerReplication(const DeleteMarkerReplication& value) { m_deleteMarkerReplicationHasBeenSet = true; m_deleteMarkerReplication = value; }
151 inline void SetDeleteMarkerReplication(DeleteMarkerReplication&& value) { m_deleteMarkerReplicationHasBeenSet = true; m_deleteMarkerReplication = std::move(value); }
155 private:
156
157 Aws::String m_iD;
158 bool m_iDHasBeenSet = false;
159
160 int m_priority;
161 bool m_priorityHasBeenSet = false;
162
163 ReplicationRuleFilter m_filter;
164 bool m_filterHasBeenSet = false;
165
166 ReplicationRuleStatus m_status;
167 bool m_statusHasBeenSet = false;
168
169 SourceSelectionCriteria m_sourceSelectionCriteria;
170 bool m_sourceSelectionCriteriaHasBeenSet = false;
171
172 ExistingObjectReplication m_existingObjectReplication;
173 bool m_existingObjectReplicationHasBeenSet = false;
174
175 Destination m_destination;
176 bool m_destinationHasBeenSet = false;
177
178 DeleteMarkerReplication m_deleteMarkerReplication;
179 bool m_deleteMarkerReplicationHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace S3Crt
184} // namespace Aws
ReplicationRule & WithStatus(const ReplicationRuleStatus &value)
const ExistingObjectReplication & GetExistingObjectReplication() const
const ReplicationRuleFilter & GetFilter() const
void SetDeleteMarkerReplication(const DeleteMarkerReplication &value)
ReplicationRule & WithFilter(ReplicationRuleFilter &&value)
ReplicationRule & WithSourceSelectionCriteria(const SourceSelectionCriteria &value)
void SetStatus(const ReplicationRuleStatus &value)
AWS_S3CRT_API ReplicationRule(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationRule & WithID(const char *value)
const Destination & GetDestination() const
ReplicationRule & WithID(Aws::String &&value)
ReplicationRule & WithSourceSelectionCriteria(SourceSelectionCriteria &&value)
ReplicationRule & WithDeleteMarkerReplication(DeleteMarkerReplication &&value)
void SetDestination(const Destination &value)
ReplicationRule & WithDestination(Destination &&value)
AWS_S3CRT_API ReplicationRule & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const SourceSelectionCriteria & GetSourceSelectionCriteria() const
ReplicationRule & WithDeleteMarkerReplication(const DeleteMarkerReplication &value)
ReplicationRule & WithID(const Aws::String &value)
AWS_S3CRT_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::String & GetID() const
void SetStatus(ReplicationRuleStatus &&value)
const ReplicationRuleStatus & GetStatus() const
ReplicationRule & WithDestination(const Destination &value)
ReplicationRule & WithFilter(const ReplicationRuleFilter &value)
void SetDestination(Destination &&value)
void SetFilter(const ReplicationRuleFilter &value)
void SetExistingObjectReplication(ExistingObjectReplication &&value)
ReplicationRule & WithPriority(int value)
ReplicationRule & WithStatus(ReplicationRuleStatus &&value)
void SetFilter(ReplicationRuleFilter &&value)
ReplicationRule & WithExistingObjectReplication(ExistingObjectReplication &&value)
void SetID(const Aws::String &value)
void SetSourceSelectionCriteria(SourceSelectionCriteria &&value)
void SetSourceSelectionCriteria(const SourceSelectionCriteria &value)
const DeleteMarkerReplication & GetDeleteMarkerReplication() const
void SetID(Aws::String &&value)
ReplicationRule & WithExistingObjectReplication(const ExistingObjectReplication &value)
void SetDeleteMarkerReplication(DeleteMarkerReplication &&value)
void SetExistingObjectReplication(const ExistingObjectReplication &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String