AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateClusterV2Result.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kafka/Kafka_EXPORTS.h>
10#include <aws/kafka/model/ClusterState.h>
11#include <aws/kafka/model/ClusterType.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace Kafka {
25namespace Model {
27 public:
28 AWS_KAFKA_API CreateClusterV2Result() = default;
31
33
38 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
39 template <typename ClusterArnT = Aws::String>
40 void SetClusterArn(ClusterArnT&& value) {
41 m_clusterArnHasBeenSet = true;
42 m_clusterArn = std::forward<ClusterArnT>(value);
43 }
44 template <typename ClusterArnT = Aws::String>
45 CreateClusterV2Result& WithClusterArn(ClusterArnT&& value) {
46 SetClusterArn(std::forward<ClusterArnT>(value));
47 return *this;
48 }
50
52
57 inline const Aws::String& GetClusterName() const { return m_clusterName; }
58 template <typename ClusterNameT = Aws::String>
59 void SetClusterName(ClusterNameT&& value) {
60 m_clusterNameHasBeenSet = true;
61 m_clusterName = std::forward<ClusterNameT>(value);
62 }
63 template <typename ClusterNameT = Aws::String>
64 CreateClusterV2Result& WithClusterName(ClusterNameT&& value) {
65 SetClusterName(std::forward<ClusterNameT>(value));
66 return *this;
67 }
69
71
78 inline ClusterState GetState() const { return m_state; }
79 inline void SetState(ClusterState value) {
80 m_stateHasBeenSet = true;
81 m_state = value;
82 }
84 SetState(value);
85 return *this;
86 }
88
90
96 inline ClusterType GetClusterType() const { return m_clusterType; }
97 inline void SetClusterType(ClusterType value) {
98 m_clusterTypeHasBeenSet = true;
99 m_clusterType = value;
100 }
102 SetClusterType(value);
103 return *this;
104 }
106
108
109 inline const Aws::String& GetRequestId() const { return m_requestId; }
110 template <typename RequestIdT = Aws::String>
111 void SetRequestId(RequestIdT&& value) {
112 m_requestIdHasBeenSet = true;
113 m_requestId = std::forward<RequestIdT>(value);
114 }
115 template <typename RequestIdT = Aws::String>
117 SetRequestId(std::forward<RequestIdT>(value));
118 return *this;
119 }
121 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
122
123 private:
124 Aws::String m_clusterArn;
125
126 Aws::String m_clusterName;
127
129
130 ClusterType m_clusterType{ClusterType::NOT_SET};
131
132 Aws::String m_requestId;
133 Aws::Http::HttpResponseCode m_HttpResponseCode;
134 bool m_clusterArnHasBeenSet = false;
135 bool m_clusterNameHasBeenSet = false;
136 bool m_stateHasBeenSet = false;
137 bool m_clusterTypeHasBeenSet = false;
138 bool m_requestIdHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace Kafka
143} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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