AWS SDK for C++

AWS SDK for C++ Version 1.11.686

Loading...
Searching...
No Matches
ReplicationSpecification.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/keyspaces/Keyspaces_EXPORTS.h>
10#include <aws/keyspaces/model/Rs.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Keyspaces {
22namespace Model {
23
34 public:
35 AWS_KEYSPACES_API ReplicationSpecification() = default;
38 AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline Rs GetReplicationStrategy() const { return m_replicationStrategy; }
46 inline bool ReplicationStrategyHasBeenSet() const { return m_replicationStrategyHasBeenSet; }
47 inline void SetReplicationStrategy(Rs value) {
48 m_replicationStrategyHasBeenSet = true;
49 m_replicationStrategy = value;
50 }
53 return *this;
54 }
56
58
62 inline const Aws::Vector<Aws::String>& GetRegionList() const { return m_regionList; }
63 inline bool RegionListHasBeenSet() const { return m_regionListHasBeenSet; }
64 template <typename RegionListT = Aws::Vector<Aws::String>>
65 void SetRegionList(RegionListT&& value) {
66 m_regionListHasBeenSet = true;
67 m_regionList = std::forward<RegionListT>(value);
68 }
69 template <typename RegionListT = Aws::Vector<Aws::String>>
71 SetRegionList(std::forward<RegionListT>(value));
72 return *this;
73 }
74 template <typename RegionListT = Aws::String>
76 m_regionListHasBeenSet = true;
77 m_regionList.emplace_back(std::forward<RegionListT>(value));
78 return *this;
79 }
81 private:
82 Rs m_replicationStrategy{Rs::NOT_SET};
83 bool m_replicationStrategyHasBeenSet = false;
84
85 Aws::Vector<Aws::String> m_regionList;
86 bool m_regionListHasBeenSet = false;
87};
88
89} // namespace Model
90} // namespace Keyspaces
91} // namespace Aws
const Aws::Vector< Aws::String > & GetRegionList() const
AWS_KEYSPACES_API ReplicationSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
ReplicationSpecification & AddRegionList(RegionListT &&value)
ReplicationSpecification & WithRegionList(RegionListT &&value)
AWS_KEYSPACES_API ReplicationSpecification()=default
AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KEYSPACES_API ReplicationSpecification(Aws::Utils::Json::JsonView jsonValue)
ReplicationSpecification & WithReplicationStrategy(Rs value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue