AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateClusterV2Result.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kafka/Kafka_EXPORTS.h>
9#include <aws/kafka/model/ClusterState.h>
10#include <aws/kafka/model/ClusterType.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Kafka {
24namespace Model {
26 public:
27 AWS_KAFKA_API CreateClusterV2Result() = default;
30
32
37 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
38 template <typename ClusterArnT = Aws::String>
39 void SetClusterArn(ClusterArnT&& value) {
40 m_clusterArnHasBeenSet = true;
41 m_clusterArn = std::forward<ClusterArnT>(value);
42 }
43 template <typename ClusterArnT = Aws::String>
44 CreateClusterV2Result& WithClusterArn(ClusterArnT&& value) {
45 SetClusterArn(std::forward<ClusterArnT>(value));
46 return *this;
47 }
49
51
56 inline const Aws::String& GetClusterName() const { return m_clusterName; }
57 template <typename ClusterNameT = Aws::String>
58 void SetClusterName(ClusterNameT&& value) {
59 m_clusterNameHasBeenSet = true;
60 m_clusterName = std::forward<ClusterNameT>(value);
61 }
62 template <typename ClusterNameT = Aws::String>
63 CreateClusterV2Result& WithClusterName(ClusterNameT&& value) {
64 SetClusterName(std::forward<ClusterNameT>(value));
65 return *this;
66 }
68
70
77 inline ClusterState GetState() const { return m_state; }
78 inline void SetState(ClusterState value) {
79 m_stateHasBeenSet = true;
80 m_state = value;
81 }
83 SetState(value);
84 return *this;
85 }
87
89
95 inline ClusterType GetClusterType() const { return m_clusterType; }
96 inline void SetClusterType(ClusterType value) {
97 m_clusterTypeHasBeenSet = true;
98 m_clusterType = value;
99 }
101 SetClusterType(value);
102 return *this;
103 }
105
107
108 inline const Aws::String& GetRequestId() const { return m_requestId; }
109 template <typename RequestIdT = Aws::String>
110 void SetRequestId(RequestIdT&& value) {
111 m_requestIdHasBeenSet = true;
112 m_requestId = std::forward<RequestIdT>(value);
113 }
114 template <typename RequestIdT = Aws::String>
116 SetRequestId(std::forward<RequestIdT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_clusterArn;
122
123 Aws::String m_clusterName;
124
126
127 ClusterType m_clusterType{ClusterType::NOT_SET};
128
129 Aws::String m_requestId;
130 bool m_clusterArnHasBeenSet = false;
131 bool m_clusterNameHasBeenSet = false;
132 bool m_stateHasBeenSet = false;
133 bool m_clusterTypeHasBeenSet = false;
134 bool m_requestIdHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace Kafka
139} // namespace Aws
CreateClusterV2Result & WithRequestId(RequestIdT &&value)
AWS_KAFKA_API CreateClusterV2Result(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateClusterV2Result & WithState(ClusterState value)
CreateClusterV2Result & WithClusterName(ClusterNameT &&value)
AWS_KAFKA_API CreateClusterV2Result & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KAFKA_API CreateClusterV2Result()=default
CreateClusterV2Result & WithClusterType(ClusterType value)
CreateClusterV2Result & WithClusterArn(ClusterArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue