AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ReplicationSpecification.h
1
6#pragma once
7#include <aws/keyspaces/Keyspaces_EXPORTS.h>
8#include <aws/keyspaces/model/Rs.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Keyspaces
24{
25namespace Model
26{
27
38 {
39 public:
40 AWS_KEYSPACES_API ReplicationSpecification() = default;
43 AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline Rs GetReplicationStrategy() const { return m_replicationStrategy; }
52 inline bool ReplicationStrategyHasBeenSet() const { return m_replicationStrategyHasBeenSet; }
53 inline void SetReplicationStrategy(Rs value) { m_replicationStrategyHasBeenSet = true; m_replicationStrategy = value; }
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) { m_regionListHasBeenSet = true; m_regionList = std::forward<RegionListT>(value); }
66 template<typename RegionListT = Aws::Vector<Aws::String>>
67 ReplicationSpecification& WithRegionList(RegionListT&& value) { SetRegionList(std::forward<RegionListT>(value)); return *this;}
68 template<typename RegionListT = Aws::String>
69 ReplicationSpecification& AddRegionList(RegionListT&& value) { m_regionListHasBeenSet = true; m_regionList.emplace_back(std::forward<RegionListT>(value)); return *this; }
71 private:
72
73 Rs m_replicationStrategy{Rs::NOT_SET};
74 bool m_replicationStrategyHasBeenSet = false;
75
76 Aws::Vector<Aws::String> m_regionList;
77 bool m_regionListHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Keyspaces
82} // 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