AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ReplicationConfiguration.h
1
6#pragma once
7#include <aws/s3control/S3Control_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/s3control/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 S3Control
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_S3CONTROL_API ReplicationConfiguration() = default;
38 AWS_S3CONTROL_API ReplicationConfiguration(const Aws::Utils::Xml::XmlNode& xmlNode);
40
41 AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
42
43
45
52 inline const Aws::String& GetRole() const { return m_role; }
53 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
54 template<typename RoleT = Aws::String>
55 void SetRole(RoleT&& value) { m_roleHasBeenSet = true; m_role = std::forward<RoleT>(value); }
56 template<typename RoleT = Aws::String>
57 ReplicationConfiguration& WithRole(RoleT&& value) { SetRole(std::forward<RoleT>(value)); return *this;}
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) { m_rulesHasBeenSet = true; m_rules = std::forward<RulesT>(value); }
70 template<typename RulesT = Aws::Vector<ReplicationRule>>
71 ReplicationConfiguration& WithRules(RulesT&& value) { SetRules(std::forward<RulesT>(value)); return *this;}
72 template<typename RulesT = ReplicationRule>
73 ReplicationConfiguration& AddRules(RulesT&& value) { m_rulesHasBeenSet = true; m_rules.emplace_back(std::forward<RulesT>(value)); return *this; }
75 private:
76
77 Aws::String m_role;
78 bool m_roleHasBeenSet = false;
79
81 bool m_rulesHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace S3Control
86} // 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