AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ReplicationConfiguration.h
Go to the documentation of this file.
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace S3
23{
24namespace Model
25{
26
34 {
35 public:
39
41
42
50 inline const Aws::String& GetRole() const{ return m_role; }
51
59 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
60
68 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
69
77 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
78
86 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
87
95 inline ReplicationConfiguration& WithRole(const Aws::String& value) { SetRole(value); return *this;}
96
104 inline ReplicationConfiguration& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
105
113 inline ReplicationConfiguration& WithRole(const char* value) { SetRole(value); return *this;}
114
115
120 inline const Aws::Vector<ReplicationRule>& GetRules() const{ return m_rules; }
121
126 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
127
132 inline void SetRules(const Aws::Vector<ReplicationRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
133
138 inline void SetRules(Aws::Vector<ReplicationRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
139
144 inline ReplicationConfiguration& WithRules(const Aws::Vector<ReplicationRule>& value) { SetRules(value); return *this;}
145
150 inline ReplicationConfiguration& WithRules(Aws::Vector<ReplicationRule>&& value) { SetRules(std::move(value)); return *this;}
151
156 inline ReplicationConfiguration& AddRules(const ReplicationRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
157
162 inline ReplicationConfiguration& AddRules(ReplicationRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
163
164 private:
165
166 Aws::String m_role;
167 bool m_roleHasBeenSet = false;
168
170 bool m_rulesHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace S3
175} // namespace Aws
#define AWS_S3_API
Definition: S3_EXPORTS.h:28
ReplicationConfiguration & WithRole(const Aws::String &value)
ReplicationConfiguration & AddRules(const ReplicationRule &value)
AWS_S3_API ReplicationConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRules(Aws::Vector< ReplicationRule > &&value)
ReplicationConfiguration & WithRole(Aws::String &&value)
void SetRules(const Aws::Vector< ReplicationRule > &value)
ReplicationConfiguration & WithRole(const char *value)
ReplicationConfiguration & AddRules(ReplicationRule &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::Vector< ReplicationRule > & GetRules() const
AWS_S3_API ReplicationConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationConfiguration & WithRules(Aws::Vector< ReplicationRule > &&value)
ReplicationConfiguration & WithRules(const Aws::Vector< ReplicationRule > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector