AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateClusterResult.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
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Json {
19class JsonValue;
20} // namespace Json
21} // namespace Utils
22namespace Kafka {
23namespace Model {
25 public:
26 AWS_KAFKA_API CreateClusterResult() = default;
29
31
36 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
37 template <typename ClusterArnT = Aws::String>
38 void SetClusterArn(ClusterArnT&& value) {
39 m_clusterArnHasBeenSet = true;
40 m_clusterArn = std::forward<ClusterArnT>(value);
41 }
42 template <typename ClusterArnT = Aws::String>
43 CreateClusterResult& WithClusterArn(ClusterArnT&& value) {
44 SetClusterArn(std::forward<ClusterArnT>(value));
45 return *this;
46 }
48
50
55 inline const Aws::String& GetClusterName() const { return m_clusterName; }
56 template <typename ClusterNameT = Aws::String>
57 void SetClusterName(ClusterNameT&& value) {
58 m_clusterNameHasBeenSet = true;
59 m_clusterName = std::forward<ClusterNameT>(value);
60 }
61 template <typename ClusterNameT = Aws::String>
62 CreateClusterResult& WithClusterName(ClusterNameT&& value) {
63 SetClusterName(std::forward<ClusterNameT>(value));
64 return *this;
65 }
67
69
76 inline ClusterState GetState() const { return m_state; }
77 inline void SetState(ClusterState value) {
78 m_stateHasBeenSet = true;
79 m_state = value;
80 }
82 SetState(value);
83 return *this;
84 }
86
88
89 inline const Aws::String& GetRequestId() const { return m_requestId; }
90 template <typename RequestIdT = Aws::String>
91 void SetRequestId(RequestIdT&& value) {
92 m_requestIdHasBeenSet = true;
93 m_requestId = std::forward<RequestIdT>(value);
94 }
95 template <typename RequestIdT = Aws::String>
96 CreateClusterResult& WithRequestId(RequestIdT&& value) {
97 SetRequestId(std::forward<RequestIdT>(value));
98 return *this;
99 }
101 private:
102 Aws::String m_clusterArn;
103
104 Aws::String m_clusterName;
105
107
108 Aws::String m_requestId;
109 bool m_clusterArnHasBeenSet = false;
110 bool m_clusterNameHasBeenSet = false;
111 bool m_stateHasBeenSet = false;
112 bool m_requestIdHasBeenSet = false;
113};
114
115} // namespace Model
116} // namespace Kafka
117} // namespace Aws
const Aws::String & GetClusterName() 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