AWS SDK for C++

AWS SDK for C++ Version 1.11.928

Loading...
Searching...
No Matches
ClusterInList.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/docdb-elastic/DocDBElastic_EXPORTS.h>
9#include <aws/docdb-elastic/model/Status.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace DocDBElastic {
21namespace Model {
22
29 public:
30 AWS_DOCDBELASTIC_API ClusterInList() = default;
31 AWS_DOCDBELASTIC_API ClusterInList(Aws::Utils::Json::JsonView jsonValue);
32 AWS_DOCDBELASTIC_API ClusterInList& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_DOCDBELASTIC_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
40 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
41 template <typename ClusterArnT = Aws::String>
42 void SetClusterArn(ClusterArnT&& value) {
43 m_clusterArnHasBeenSet = true;
44 m_clusterArn = std::forward<ClusterArnT>(value);
45 }
46 template <typename ClusterArnT = Aws::String>
47 ClusterInList& WithClusterArn(ClusterArnT&& value) {
48 SetClusterArn(std::forward<ClusterArnT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetClusterName() const { return m_clusterName; }
58 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
59 template <typename ClusterNameT = Aws::String>
60 void SetClusterName(ClusterNameT&& value) {
61 m_clusterNameHasBeenSet = true;
62 m_clusterName = std::forward<ClusterNameT>(value);
63 }
64 template <typename ClusterNameT = Aws::String>
65 ClusterInList& WithClusterName(ClusterNameT&& value) {
66 SetClusterName(std::forward<ClusterNameT>(value));
67 return *this;
68 }
70
72
75 inline Status GetStatus() const { return m_status; }
76 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
77 inline void SetStatus(Status value) {
78 m_statusHasBeenSet = true;
79 m_status = value;
80 }
82 SetStatus(value);
83 return *this;
84 }
86 private:
87 Aws::String m_clusterArn;
88
89 Aws::String m_clusterName;
90
91 Status m_status{Status::NOT_SET};
92 bool m_clusterArnHasBeenSet = false;
93 bool m_clusterNameHasBeenSet = false;
94 bool m_statusHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace DocDBElastic
99} // namespace Aws
ClusterInList & WithClusterArn(ClusterArnT &&value)
AWS_DOCDBELASTIC_API ClusterInList()=default
void SetClusterArn(ClusterArnT &&value)
void SetClusterName(ClusterNameT &&value)
ClusterInList & WithStatus(Status value)
ClusterInList & WithClusterName(ClusterNameT &&value)
const Aws::String & GetClusterName() const
const Aws::String & GetClusterArn() const
AWS_DOCDBELASTIC_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_DOCDBELASTIC_API ClusterInList(Aws::Utils::Json::JsonView jsonValue)
AWS_DOCDBELASTIC_API ClusterInList & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue