AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
MultiRegionProperties.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/dsql/DSQL_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DSQL {
21namespace Model {
22
30 public:
31 AWS_DSQL_API MultiRegionProperties() = default;
35
37
41 inline const Aws::String& GetWitnessRegion() const { return m_witnessRegion; }
42 inline bool WitnessRegionHasBeenSet() const { return m_witnessRegionHasBeenSet; }
43 template <typename WitnessRegionT = Aws::String>
44 void SetWitnessRegion(WitnessRegionT&& value) {
45 m_witnessRegionHasBeenSet = true;
46 m_witnessRegion = std::forward<WitnessRegionT>(value);
47 }
48 template <typename WitnessRegionT = Aws::String>
49 MultiRegionProperties& WithWitnessRegion(WitnessRegionT&& value) {
50 SetWitnessRegion(std::forward<WitnessRegionT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<Aws::String>& GetClusters() const { return m_clusters; }
61 inline bool ClustersHasBeenSet() const { return m_clustersHasBeenSet; }
62 template <typename ClustersT = Aws::Vector<Aws::String>>
63 void SetClusters(ClustersT&& value) {
64 m_clustersHasBeenSet = true;
65 m_clusters = std::forward<ClustersT>(value);
66 }
67 template <typename ClustersT = Aws::Vector<Aws::String>>
68 MultiRegionProperties& WithClusters(ClustersT&& value) {
69 SetClusters(std::forward<ClustersT>(value));
70 return *this;
71 }
72 template <typename ClustersT = Aws::String>
73 MultiRegionProperties& AddClusters(ClustersT&& value) {
74 m_clustersHasBeenSet = true;
75 m_clusters.emplace_back(std::forward<ClustersT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_witnessRegion;
81
82 Aws::Vector<Aws::String> m_clusters;
83 bool m_witnessRegionHasBeenSet = false;
84 bool m_clustersHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace DSQL
89} // namespace Aws
MultiRegionProperties & AddClusters(ClustersT &&value)
AWS_DSQL_API MultiRegionProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetClusters() const
AWS_DSQL_API MultiRegionProperties()=default
AWS_DSQL_API MultiRegionProperties(Aws::Utils::Json::JsonView jsonValue)
AWS_DSQL_API Aws::Utils::Json::JsonValue Jsonize() const
MultiRegionProperties & WithWitnessRegion(WitnessRegionT &&value)
void SetWitnessRegion(WitnessRegionT &&value)
MultiRegionProperties & WithClusters(ClustersT &&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