AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ReplicationConfiguration.h
1
6#pragma once
7#include <aws/s3/S3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3/model/ReplicationRule.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:
36 AWS_S3_API ReplicationConfiguration() = default;
39
40 AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
41
42
44
51 inline const Aws::String& GetRole() const { return m_role; }
52 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
53 template<typename RoleT = Aws::String>
54 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
55 template<typename RoleT = Aws::String>
56 ReplicationConfiguration& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
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) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
68 template<typename RulesT = Aws::Vector<ReplicationRule>>
69 ReplicationConfiguration& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
70 template<typename RulesT = ReplicationRule>
71 ReplicationConfiguration& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
73 private:
74
75 Aws::String m_role;
76 bool m_roleHasBeenSet = false;
77
79 bool m_rulesHasBeenSet = false;
80 };
81
82} // namespace Model
83} // namespace S3
84} // 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