AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
MultiRegionProperties.h
1
6#pragma once
7#include <aws/dsql/DSQL_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace DSQL
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_DSQL_API MultiRegionProperties() = default;
40
41
43
47 inline const Aws::String& GetWitnessRegion() const { return m_witnessRegion; }
48 inline bool WitnessRegionHasBeenSet() const { return m_witnessRegionHasBeenSet; }
49 template<typename WitnessRegionT = Aws::String>
50 void SetWitnessRegion(WitnessRegionT&& value) { m_witnessRegionHasBeenSet = true; m_witnessRegion = std::forward<WitnessRegionT>(value); }
51 template<typename WitnessRegionT = Aws::String>
52 MultiRegionProperties& WithWitnessRegion(WitnessRegionT&& value) { SetWitnessRegion(std::forward<WitnessRegionT>(value)); return *this;}
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) { m_clustersHasBeenSet = true; m_clusters = std::forward<ClustersT>(value); }
64 template<typename ClustersT = Aws::Vector<Aws::String>>
65 MultiRegionProperties& WithClusters(ClustersT&& value) { SetClusters(std::forward<ClustersT>(value)); return *this;}
66 template<typename ClustersT = Aws::String>
67 MultiRegionProperties& AddClusters(ClustersT&& value) { m_clustersHasBeenSet = true; m_clusters.emplace_back(std::forward<ClustersT>(value)); return *this; }
69 private:
70
71 Aws::String m_witnessRegion;
72 bool m_witnessRegionHasBeenSet = false;
73
74 Aws::Vector<Aws::String> m_clusters;
75 bool m_clustersHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace DSQL
80} // 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