AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
TableBucketReplicationConfiguration.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/s3tables/S3Tables_EXPORTS.h>
10#include <aws/s3tables/model/TableBucketReplicationRule.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace S3Tables {
22namespace Model {
23
32 public:
33 AWS_S3TABLES_API TableBucketReplicationConfiguration() = default;
36 AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
43 inline const Aws::String& GetRole() const { return m_role; }
44 inline bool RoleHasBeenSet() const { return m_roleHasBeenSet; }
45 template <typename RoleT = Aws::String>
46 void SetRole(RoleT&& value) {
47 m_roleHasBeenSet = true;
48 m_role = std::forward<RoleT>(value);
49 }
50 template <typename RoleT = Aws::String>
52 SetRole(std::forward<RoleT>(value));
53 return *this;
54 }
56
58
62 inline const Aws::Vector<TableBucketReplicationRule>& GetRules() const { return m_rules; }
63 inline bool RulesHasBeenSet() const { return m_rulesHasBeenSet; }
64 template <typename RulesT = Aws::Vector<TableBucketReplicationRule>>
65 void SetRules(RulesT&& value) {
66 m_rulesHasBeenSet = true;
67 m_rules = std::forward<RulesT>(value);
68 }
69 template <typename RulesT = Aws::Vector<TableBucketReplicationRule>>
71 SetRules(std::forward<RulesT>(value));
72 return *this;
73 }
74 template <typename RulesT = TableBucketReplicationRule>
76 m_rulesHasBeenSet = true;
77 m_rules.emplace_back(std::forward<RulesT>(value));
78 return *this;
79 }
81 private:
82 Aws::String m_role;
83
85 bool m_roleHasBeenSet = false;
86 bool m_rulesHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace S3Tables
91} // namespace Aws
TableBucketReplicationConfiguration & AddRules(RulesT &&value)
TableBucketReplicationConfiguration & WithRules(RulesT &&value)
AWS_S3TABLES_API TableBucketReplicationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_S3TABLES_API TableBucketReplicationConfiguration(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< TableBucketReplicationRule > & GetRules() const
TableBucketReplicationConfiguration & WithRole(RoleT &&value)
AWS_S3TABLES_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue