AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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/s3control/S3Control_EXPORTS.h>
10#include <aws/s3control/model/ReplicationRule.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace S3Control {
21namespace Model {
22
31 public:
32 AWS_S3CONTROL_API ReplicationConfiguration() = default;
33 AWS_S3CONTROL_API ReplicationConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
37
39
46 inline const Aws::String& GetRole() const { return m_role; }
47 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
48 template <typename RoleT = Aws::String>
49 void SetRole(RoleT&& value) {
50 m_roleHasBeenSet = true;
51 m_role = std::forward<RoleT>(value);
52 }
53 template <typename RoleT = Aws::String>
55 SetRole(std::forward<RoleT>(value));
56 return *this;
57 }
59
61
66 inline const Aws::Vector<ReplicationRule>& GetRules() const { return m_rules; }
67 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
68 template <typename RulesT = Aws::Vector<ReplicationRule>>
69 void SetRules(RulesT&& value) {
70 m_rulesHasBeenSet = true;
71 m_rules = std::forward<RulesT>(value);
72 }
73 template <typename RulesT = Aws::Vector<ReplicationRule>>
75 SetRules(std::forward<RulesT>(value));
76 return *this;
77 }
78 template <typename RulesT = ReplicationRule>
80 m_rulesHasBeenSet = true;
81 m_rules.emplace_back(std::forward<RulesT>(value));
82 return *this;
83 }
85 private:
86 Aws::String m_role;
87
89 bool m_roleHasBeenSet = false;
90 bool m_rulesHasBeenSet = false;
91};
92
93} // namespace Model
94} // namespace S3Control
95} // namespace Aws
ReplicationConfiguration & AddRules(RulesT &&value)
AWS_S3CONTROL_API ReplicationConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationConfiguration & WithRules(RulesT &&value)
const Aws::Vector< ReplicationRule > & GetRules() const
AWS_S3CONTROL_API ReplicationConfiguration()=default
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
ReplicationConfiguration & WithRole(RoleT &&value)
AWS_S3CONTROL_API ReplicationConfiguration & operator=(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