AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
55 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
56 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
57 inline ReplicationConfiguration& WithRole(const Aws::String& value) { SetRole(value); return *this;}
58 inline ReplicationConfiguration& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
59 inline ReplicationConfiguration& WithRole(const char* value) { SetRole(value); return *this;}
61
63
68 inline const Aws::Vector<ReplicationRule>& GetRules() const{ return m_rules; }
69 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
70 inline void SetRules(const Aws::Vector<ReplicationRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
71 inline void SetRules(Aws::Vector<ReplicationRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
72 inline ReplicationConfiguration& WithRules(const Aws::Vector<ReplicationRule>& value) { SetRules(value); return *this;}
73 inline ReplicationConfiguration& WithRules(Aws::Vector<ReplicationRule>&& value) { SetRules(std::move(value)); return *this;}
74 inline ReplicationConfiguration& AddRules(const ReplicationRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
75 inline ReplicationConfiguration& AddRules(ReplicationRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(value)); return *this; }
77 private:
78
79 Aws::String m_role;
80 bool m_roleHasBeenSet = false;
81
83 bool m_rulesHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace S3Control
88} // namespace Aws
ReplicationConfiguration & WithRole(const char *value)
AWS_S3CONTROL_API ReplicationConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationConfiguration & WithRules(const Aws::Vector< ReplicationRule > &value)
void SetRules(const Aws::Vector< ReplicationRule > &value)
ReplicationConfiguration & WithRules(Aws::Vector< ReplicationRule > &&value)
ReplicationConfiguration & WithRole(Aws::String &&value)
void SetRules(Aws::Vector< ReplicationRule > &&value)
const Aws::Vector< ReplicationRule > & GetRules() const
AWS_S3CONTROL_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
AWS_S3CONTROL_API ReplicationConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationConfiguration & AddRules(ReplicationRule &&value)
ReplicationConfiguration & WithRole(const Aws::String &value)
ReplicationConfiguration & AddRules(const ReplicationRule &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector