AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
ReplicationConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/s3/S3_EXPORTS.h>
10#include <aws/s3/model/ReplicationRule.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3 {
21namespace Model {
22
30 public:
31 AWS_S3_API ReplicationConfiguration() = default;
34
35 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
36
38
45 inline const Aws::String& GetRole() const { return m_role; }
46 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
47 template <typename RoleT = Aws::String>
48 void SetRole(RoleT&& value) {
49 m_roleHasBeenSet = true;
50 m_role = std::forward<RoleT>(value);
51 }
52 template <typename RoleT = Aws::String>
54 SetRole(std::forward<RoleT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::Vector<ReplicationRule>& GetRules() const { return m_rules; }
65 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
66 template <typename RulesT = Aws::Vector<ReplicationRule>>
67 void SetRules(RulesT&& value) {
68 m_rulesHasBeenSet = true;
69 m_rules = std::forward<RulesT>(value);
70 }
71 template <typename RulesT = Aws::Vector<ReplicationRule>>
73 SetRules(std::forward<RulesT>(value));
74 return *this;
75 }
76 template <typename RulesT = ReplicationRule>
78 m_rulesHasBeenSet = true;
79 m_rules.emplace_back(std::forward<RulesT>(value));
80 return *this;
81 }
83 private:
84 Aws::String m_role;
85
87 bool m_roleHasBeenSet = false;
88 bool m_rulesHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace S3
93} // namespace Aws
ReplicationConfiguration & WithRules(RulesT &&value)
AWS_S3_API ReplicationConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationConfiguration & AddRules(RulesT &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::Vector< ReplicationRule > & GetRules() const
ReplicationConfiguration & WithRole(RoleT &&value)
AWS_S3_API ReplicationConfiguration()=default
AWS_S3_API ReplicationConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector