AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ClusterOperationV2.h
1
6#pragma once
7#include <aws/kafka/Kafka_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kafka/model/ClusterType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/kafka/model/ErrorInfo.h>
12#include <aws/kafka/model/ClusterOperationV2Provisioned.h>
13#include <aws/kafka/model/ClusterOperationV2Serverless.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Kafka
27{
28namespace Model
29{
30
39 {
40 public:
41 AWS_KAFKA_API ClusterOperationV2() = default;
44 AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
52 inline const Aws::String& GetClusterArn() const { return m_clusterArn; }
53 inline bool ClusterArnHasBeenSet() const { return m_clusterArnHasBeenSet; }
54 template<typename ClusterArnT = Aws::String>
55 void SetClusterArn(ClusterArnT&& value) { m_clusterArnHasBeenSet = true; m_clusterArn = std::forward<ClusterArnT>(value); }
56 template<typename ClusterArnT = Aws::String>
57 ClusterOperationV2& WithClusterArn(ClusterArnT&& value) { SetClusterArn(std::forward<ClusterArnT>(value)); return *this;}
59
61
65 inline ClusterType GetClusterType() const { return m_clusterType; }
66 inline bool ClusterTypeHasBeenSet() const { return m_clusterTypeHasBeenSet; }
67 inline void SetClusterType(ClusterType value) { m_clusterTypeHasBeenSet = true; m_clusterType = value; }
68 inline ClusterOperationV2& WithClusterType(ClusterType value) { SetClusterType(value); return *this;}
70
72
76 inline const Aws::Utils::DateTime& GetStartTime() const { return m_startTime; }
77 inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; }
78 template<typename StartTimeT = Aws::Utils::DateTime>
79 void SetStartTime(StartTimeT&& value) { m_startTimeHasBeenSet = true; m_startTime = std::forward<StartTimeT>(value); }
80 template<typename StartTimeT = Aws::Utils::DateTime>
81 ClusterOperationV2& WithStartTime(StartTimeT&& value) { SetStartTime(std::forward<StartTimeT>(value)); return *this;}
83
85
89 inline const Aws::Utils::DateTime& GetEndTime() const { return m_endTime; }
90 inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; }
91 template<typename EndTimeT = Aws::Utils::DateTime>
92 void SetEndTime(EndTimeT&& value) { m_endTimeHasBeenSet = true; m_endTime = std::forward<EndTimeT>(value); }
93 template<typename EndTimeT = Aws::Utils::DateTime>
94 ClusterOperationV2& WithEndTime(EndTimeT&& value) { SetEndTime(std::forward<EndTimeT>(value)); return *this;}
96
98
103 inline const ErrorInfo& GetErrorInfo() const { return m_errorInfo; }
104 inline bool ErrorInfoHasBeenSet() const { return m_errorInfoHasBeenSet; }
105 template<typename ErrorInfoT = ErrorInfo>
106 void SetErrorInfo(ErrorInfoT&& value) { m_errorInfoHasBeenSet = true; m_errorInfo = std::forward<ErrorInfoT>(value); }
107 template<typename ErrorInfoT = ErrorInfo>
108 ClusterOperationV2& WithErrorInfo(ErrorInfoT&& value) { SetErrorInfo(std::forward<ErrorInfoT>(value)); return *this;}
110
112
116 inline const Aws::String& GetOperationArn() const { return m_operationArn; }
117 inline bool OperationArnHasBeenSet() const { return m_operationArnHasBeenSet; }
118 template<typename OperationArnT = Aws::String>
119 void SetOperationArn(OperationArnT&& value) { m_operationArnHasBeenSet = true; m_operationArn = std::forward<OperationArnT>(value); }
120 template<typename OperationArnT = Aws::String>
121 ClusterOperationV2& WithOperationArn(OperationArnT&& value) { SetOperationArn(std::forward<OperationArnT>(value)); return *this;}
123
125
129 inline const Aws::String& GetOperationState() const { return m_operationState; }
130 inline bool OperationStateHasBeenSet() const { return m_operationStateHasBeenSet; }
131 template<typename OperationStateT = Aws::String>
132 void SetOperationState(OperationStateT&& value) { m_operationStateHasBeenSet = true; m_operationState = std::forward<OperationStateT>(value); }
133 template<typename OperationStateT = Aws::String>
134 ClusterOperationV2& WithOperationState(OperationStateT&& value) { SetOperationState(std::forward<OperationStateT>(value)); return *this;}
136
138
142 inline const Aws::String& GetOperationType() const { return m_operationType; }
143 inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; }
144 template<typename OperationTypeT = Aws::String>
145 void SetOperationType(OperationTypeT&& value) { m_operationTypeHasBeenSet = true; m_operationType = std::forward<OperationTypeT>(value); }
146 template<typename OperationTypeT = Aws::String>
147 ClusterOperationV2& WithOperationType(OperationTypeT&& value) { SetOperationType(std::forward<OperationTypeT>(value)); return *this;}
149
151
155 inline const ClusterOperationV2Provisioned& GetProvisioned() const { return m_provisioned; }
156 inline bool ProvisionedHasBeenSet() const { return m_provisionedHasBeenSet; }
157 template<typename ProvisionedT = ClusterOperationV2Provisioned>
158 void SetProvisioned(ProvisionedT&& value) { m_provisionedHasBeenSet = true; m_provisioned = std::forward<ProvisionedT>(value); }
159 template<typename ProvisionedT = ClusterOperationV2Provisioned>
160 ClusterOperationV2& WithProvisioned(ProvisionedT&& value) { SetProvisioned(std::forward<ProvisionedT>(value)); return *this;}
162
164
168 inline const ClusterOperationV2Serverless& GetServerless() const { return m_serverless; }
169 inline bool ServerlessHasBeenSet() const { return m_serverlessHasBeenSet; }
170 template<typename ServerlessT = ClusterOperationV2Serverless>
171 void SetServerless(ServerlessT&& value) { m_serverlessHasBeenSet = true; m_serverless = std::forward<ServerlessT>(value); }
172 template<typename ServerlessT = ClusterOperationV2Serverless>
173 ClusterOperationV2& WithServerless(ServerlessT&& value) { SetServerless(std::forward<ServerlessT>(value)); return *this;}
175 private:
176
177 Aws::String m_clusterArn;
178 bool m_clusterArnHasBeenSet = false;
179
180 ClusterType m_clusterType{ClusterType::NOT_SET};
181 bool m_clusterTypeHasBeenSet = false;
182
183 Aws::Utils::DateTime m_startTime{};
184 bool m_startTimeHasBeenSet = false;
185
186 Aws::Utils::DateTime m_endTime{};
187 bool m_endTimeHasBeenSet = false;
188
189 ErrorInfo m_errorInfo;
190 bool m_errorInfoHasBeenSet = false;
191
192 Aws::String m_operationArn;
193 bool m_operationArnHasBeenSet = false;
194
195 Aws::String m_operationState;
196 bool m_operationStateHasBeenSet = false;
197
198 Aws::String m_operationType;
199 bool m_operationTypeHasBeenSet = false;
200
201 ClusterOperationV2Provisioned m_provisioned;
202 bool m_provisionedHasBeenSet = false;
203
204 ClusterOperationV2Serverless m_serverless;
205 bool m_serverlessHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace Kafka
210} // namespace Aws
ClusterOperationV2 & WithClusterType(ClusterType value)
ClusterOperationV2 & WithOperationState(OperationStateT &&value)
ClusterOperationV2 & WithClusterArn(ClusterArnT &&value)
void SetClusterArn(ClusterArnT &&value)
AWS_KAFKA_API ClusterOperationV2 & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOperationArn(OperationArnT &&value)
const Aws::Utils::DateTime & GetStartTime() const
void SetOperationType(OperationTypeT &&value)
const ClusterOperationV2Provisioned & GetProvisioned() const
ClusterOperationV2 & WithEndTime(EndTimeT &&value)
const ClusterOperationV2Serverless & GetServerless() const
void SetProvisioned(ProvisionedT &&value)
const Aws::String & GetClusterArn() const
AWS_KAFKA_API ClusterOperationV2()=default
AWS_KAFKA_API Aws::Utils::Json::JsonValue Jsonize() const
ClusterOperationV2 & WithOperationType(OperationTypeT &&value)
ClusterOperationV2 & WithOperationArn(OperationArnT &&value)
ClusterOperationV2 & WithProvisioned(ProvisionedT &&value)
ClusterOperationV2 & WithServerless(ServerlessT &&value)
const Aws::String & GetOperationType() const
ClusterOperationV2 & WithStartTime(StartTimeT &&value)
void SetOperationState(OperationStateT &&value)
AWS_KAFKA_API ClusterOperationV2(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetOperationArn() const
const Aws::Utils::DateTime & GetEndTime() const
ClusterOperationV2 & WithErrorInfo(ErrorInfoT &&value)
const Aws::String & GetOperationState() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue