AWS SDK for C++

AWS SDK for C++ Version 1.11.935

Loading...
Searching...
No Matches
RegionalCluster.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/memorydb/MemoryDB_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace MemoryDB {
20namespace Model {
21
28 public:
29 AWS_MEMORYDB_API RegionalCluster() = default;
30 AWS_MEMORYDB_API RegionalCluster(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_MEMORYDB_API RegionalCluster& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
38 inline const Aws::String& GetClusterName() const { return m_clusterName; }
39 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
40 template <typename ClusterNameT = Aws::String>
41 void SetClusterName(ClusterNameT&& value) {
42 m_clusterNameHasBeenSet = true;
43 m_clusterName = std::forward<ClusterNameT>(value);
44 }
45 template <typename ClusterNameT = Aws::String>
46 RegionalCluster& WithClusterName(ClusterNameT&& value) {
47 SetClusterName(std::forward<ClusterNameT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetRegion() const { return m_region; }
57 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
58 template <typename RegionT = Aws::String>
59 void SetRegion(RegionT&& value) {
60 m_regionHasBeenSet = true;
61 m_region = std::forward<RegionT>(value);
62 }
63 template <typename RegionT = Aws::String>
64 RegionalCluster& WithRegion(RegionT&& value) {
65 SetRegion(std::forward<RegionT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetStatus() const { return m_status; }
75 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
76 template <typename StatusT = Aws::String>
77 void SetStatus(StatusT&& value) {
78 m_statusHasBeenSet = true;
79 m_status = std::forward<StatusT>(value);
80 }
81 template <typename StatusT = Aws::String>
82 RegionalCluster& WithStatus(StatusT&& value) {
83 SetStatus(std::forward<StatusT>(value));
84 return *this;
85 }
87
89
92 inline const Aws::String& GetARN() const { return m_aRN; }
93 inline bool ARNHasBeenSet() const { return m_aRNHasBeenSet; }
94 template <typename ARNT = Aws::String>
95 void SetARN(ARNT&& value) {
96 m_aRNHasBeenSet = true;
97 m_aRN = std::forward<ARNT>(value);
98 }
99 template <typename ARNT = Aws::String>
100 RegionalCluster& WithARN(ARNT&& value) {
101 SetARN(std::forward<ARNT>(value));
102 return *this;
103 }
105 private:
106 Aws::String m_clusterName;
107
108 Aws::String m_region;
109
110 Aws::String m_status;
111
112 Aws::String m_aRN;
113 bool m_clusterNameHasBeenSet = false;
114 bool m_regionHasBeenSet = false;
115 bool m_statusHasBeenSet = false;
116 bool m_aRNHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace MemoryDB
121} // namespace Aws
const Aws::String & GetStatus() const
RegionalCluster & WithClusterName(ClusterNameT &&value)
RegionalCluster & WithStatus(StatusT &&value)
AWS_MEMORYDB_API RegionalCluster()=default
AWS_MEMORYDB_API RegionalCluster & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetRegion() const
const Aws::String & GetClusterName() const
RegionalCluster & WithARN(ARNT &&value)
AWS_MEMORYDB_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
RegionalCluster & WithRegion(RegionT &&value)
AWS_MEMORYDB_API RegionalCluster(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetARN() const
void SetClusterName(ClusterNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String