AWS SDK for C++

AWS SDK for C++ Version 1.11.782

Loading...
Searching...
No Matches
CreateClusterResult.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
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 CreateClusterResult() = 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 CreateClusterResult& 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 CreateClusterResult& 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
90 inline const Aws::String& GetRequestId() const { return m_requestId; }
91 template <typename RequestIdT = Aws::String>
92 void SetRequestId(RequestIdT&& value) {
93 m_requestIdHasBeenSet = true;
94 m_requestId = std::forward<RequestIdT>(value);
95 }
96 template <typename RequestIdT = Aws::String>
97 CreateClusterResult& WithRequestId(RequestIdT&& value) {
98 SetRequestId(std::forward<RequestIdT>(value));
99 return *this;
100 }
102 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
103
104 private:
105 Aws::String m_clusterArn;
106
107 Aws::String m_clusterName;
108
110
111 Aws::String m_requestId;
112 Aws::Http::HttpResponseCode m_HttpResponseCode;
113 bool m_clusterArnHasBeenSet = false;
114 bool m_clusterNameHasBeenSet = false;
115 bool m_stateHasBeenSet = false;
116 bool m_requestIdHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace Kafka
121} // namespace Aws
const Aws::String & GetClusterName() const
Aws::Http::HttpResponseCode GetHttpResponseCode() const
void SetClusterName(ClusterNameT &&value)
CreateClusterResult & WithState(ClusterState value)
const Aws::String & GetRequestId() const
AWS_KAFKA_API CreateClusterResult()=default
AWS_KAFKA_API CreateClusterResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateClusterResult & WithClusterArn(ClusterArnT &&value)
CreateClusterResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetClusterArn() const
AWS_KAFKA_API CreateClusterResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateClusterResult & WithClusterName(ClusterNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue