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/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:
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 inline void SetRole(const Aws::String& value) { m_roleHasBeenSet = true; m_role = value; }
54 inline void SetRole(Aws::String&& value) { m_roleHasBeenSet = true; m_role = std::move(value); }
55 inline void SetRole(const char* value) { m_roleHasBeenSet = true; m_role.assign(value); }
56 inline ReplicationConfiguration& WithRole(const Aws::String& value) { SetRole(value); return *this;}
57 inline ReplicationConfiguration& WithRole(Aws::String&& value) { SetRole(std::move(value)); return *this;}
58 inline ReplicationConfiguration& WithRole(const char* value) { SetRole(value); return *this;}
60
62
66 inline const Aws::Vector<ReplicationRule>& GetRules() const{ return m_rules; }
67 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
68 inline void SetRules(const Aws::Vector<ReplicationRule>& value) { m_rulesHasBeenSet = true; m_rules = value; }
69 inline void SetRules(Aws::Vector<ReplicationRule>&& value) { m_rulesHasBeenSet = true; m_rules = std::move(value); }
70 inline ReplicationConfiguration& WithRules(const Aws::Vector<ReplicationRule>& value) { SetRules(value); return *this;}
71 inline ReplicationConfiguration& WithRules(Aws::Vector<ReplicationRule>&& value) { SetRules(std::move(value)); return *this;}
72 inline ReplicationConfiguration& AddRules(const ReplicationRule& value) { m_rulesHasBeenSet = true; m_rules.push_back(value); return *this; }
73 inline ReplicationConfiguration& AddRules(ReplicationRule&& value) { m_rulesHasBeenSet = true; m_rules.push_back(std::move(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 S3
86} // namespace Aws
ReplicationConfiguration & WithRole(const Aws::String &value)
ReplicationConfiguration & AddRules(const ReplicationRule &value)
AWS_S3_API ReplicationConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetRules(Aws::Vector< ReplicationRule > &&value)
ReplicationConfiguration & WithRole(Aws::String &&value)
void SetRules(const Aws::Vector< ReplicationRule > &value)
ReplicationConfiguration & WithRole(const char *value)
ReplicationConfiguration & AddRules(ReplicationRule &&value)
AWS_S3_API void AddToNode(Aws::Utils::Xml::XmlNode &parentNode) const
const Aws::Vector< ReplicationRule > & GetRules() const
AWS_S3_API ReplicationConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
ReplicationConfiguration & WithRules(Aws::Vector< ReplicationRule > &&value)
ReplicationConfiguration & WithRules(const Aws::Vector< ReplicationRule > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector