AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
43 AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
51 inline const Rs& GetReplicationStrategy() const{ return m_replicationStrategy; }
52 inline bool ReplicationStrategyHasBeenSet() const { return m_replicationStrategyHasBeenSet; }
53 inline void SetReplicationStrategy(const Rs& value) { m_replicationStrategyHasBeenSet = true; m_replicationStrategy = value; }
54 inline void SetReplicationStrategy(Rs&& value) { m_replicationStrategyHasBeenSet = true; m_replicationStrategy = std::move(value); }
55 inline ReplicationSpecification& WithReplicationStrategy(const Rs& value) { SetReplicationStrategy(value); return *this;}
56 inline ReplicationSpecification& WithReplicationStrategy(Rs&& value) { SetReplicationStrategy(std::move(value)); return *this;}
58
60
64 inline const Aws::Vector<Aws::String>& GetRegionList() const{ return m_regionList; }
65 inline bool RegionListHasBeenSet() const { return m_regionListHasBeenSet; }
66 inline void SetRegionList(const Aws::Vector<Aws::String>& value) { m_regionListHasBeenSet = true; m_regionList = value; }
67 inline void SetRegionList(Aws::Vector<Aws::String>&& value) { m_regionListHasBeenSet = true; m_regionList = std::move(value); }
69 inline ReplicationSpecification& WithRegionList(Aws::Vector<Aws::String>&& value) { SetRegionList(std::move(value)); return *this;}
70 inline ReplicationSpecification& AddRegionList(const Aws::String& value) { m_regionListHasBeenSet = true; m_regionList.push_back(value); return *this; }
71 inline ReplicationSpecification& AddRegionList(Aws::String&& value) { m_regionListHasBeenSet = true; m_regionList.push_back(std::move(value)); return *this; }
72 inline ReplicationSpecification& AddRegionList(const char* value) { m_regionListHasBeenSet = true; m_regionList.push_back(value); return *this; }
74 private:
75
76 Rs m_replicationStrategy;
77 bool m_replicationStrategyHasBeenSet = false;
78
79 Aws::Vector<Aws::String> m_regionList;
80 bool m_regionListHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace Keyspaces
85} // namespace Aws
const Aws::Vector< Aws::String > & GetRegionList() const
AWS_KEYSPACES_API ReplicationSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRegionList(const Aws::Vector< Aws::String > &value)
ReplicationSpecification & WithReplicationStrategy(Rs &&value)
ReplicationSpecification & AddRegionList(const Aws::String &value)
void SetRegionList(Aws::Vector< Aws::String > &&value)
ReplicationSpecification & AddRegionList(const char *value)
ReplicationSpecification & WithRegionList(const Aws::Vector< Aws::String > &value)
ReplicationSpecification & WithReplicationStrategy(const Rs &value)
ReplicationSpecification & WithRegionList(Aws::Vector< Aws::String > &&value)
AWS_KEYSPACES_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KEYSPACES_API ReplicationSpecification(Aws::Utils::Json::JsonView jsonValue)
ReplicationSpecification & AddRegionList(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue