AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
CreateWorkerConfigurationResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kafkaconnect/KafkaConnect_EXPORTS.h>
11#include <aws/kafkaconnect/model/WorkerConfigurationRevisionSummary.h>
12#include <aws/kafkaconnect/model/WorkerConfigurationState.h>
13
14#include <utility>
15
16namespace Aws {
17template <typename RESULT_TYPE>
18class AmazonWebServiceResult;
19
20namespace Utils {
21namespace Json {
22class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace KafkaConnect {
26namespace Model {
28 public:
29 AWS_KAFKACONNECT_API CreateWorkerConfigurationResult() = default;
32
34
37 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
38 template <typename CreationTimeT = Aws::Utils::DateTime>
39 void SetCreationTime(CreationTimeT&& value) {
40 m_creationTimeHasBeenSet = true;
41 m_creationTime = std::forward<CreationTimeT>(value);
42 }
43 template <typename CreationTimeT = Aws::Utils::DateTime>
45 SetCreationTime(std::forward<CreationTimeT>(value));
46 return *this;
47 }
49
51
54 inline const WorkerConfigurationRevisionSummary& GetLatestRevision() const { return m_latestRevision; }
55 template <typename LatestRevisionT = WorkerConfigurationRevisionSummary>
56 void SetLatestRevision(LatestRevisionT&& value) {
57 m_latestRevisionHasBeenSet = true;
58 m_latestRevision = std::forward<LatestRevisionT>(value);
59 }
60 template <typename LatestRevisionT = WorkerConfigurationRevisionSummary>
62 SetLatestRevision(std::forward<LatestRevisionT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetName() const { return m_name; }
72 template <typename NameT = Aws::String>
73 void SetName(NameT&& value) {
74 m_nameHasBeenSet = true;
75 m_name = std::forward<NameT>(value);
76 }
77 template <typename NameT = Aws::String>
79 SetName(std::forward<NameT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetWorkerConfigurationArn() const { return m_workerConfigurationArn; }
90 template <typename WorkerConfigurationArnT = Aws::String>
91 void SetWorkerConfigurationArn(WorkerConfigurationArnT&& value) {
92 m_workerConfigurationArnHasBeenSet = true;
93 m_workerConfigurationArn = std::forward<WorkerConfigurationArnT>(value);
94 }
95 template <typename WorkerConfigurationArnT = Aws::String>
97 SetWorkerConfigurationArn(std::forward<WorkerConfigurationArnT>(value));
98 return *this;
99 }
101
103
106 inline WorkerConfigurationState GetWorkerConfigurationState() const { return m_workerConfigurationState; }
108 m_workerConfigurationStateHasBeenSet = true;
109 m_workerConfigurationState = value;
110 }
113 return *this;
114 }
116
118
119 inline const Aws::String& GetRequestId() const { return m_requestId; }
120 template <typename RequestIdT = Aws::String>
121 void SetRequestId(RequestIdT&& value) {
122 m_requestIdHasBeenSet = true;
123 m_requestId = std::forward<RequestIdT>(value);
124 }
125 template <typename RequestIdT = Aws::String>
127 SetRequestId(std::forward<RequestIdT>(value));
128 return *this;
129 }
131 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
132
133 private:
134 Aws::Utils::DateTime m_creationTime{};
135
136 WorkerConfigurationRevisionSummary m_latestRevision;
137
138 Aws::String m_name;
139
140 Aws::String m_workerConfigurationArn;
141
143
144 Aws::String m_requestId;
145 Aws::Http::HttpResponseCode m_HttpResponseCode;
146 bool m_creationTimeHasBeenSet = false;
147 bool m_latestRevisionHasBeenSet = false;
148 bool m_nameHasBeenSet = false;
149 bool m_workerConfigurationArnHasBeenSet = false;
150 bool m_workerConfigurationStateHasBeenSet = false;
151 bool m_requestIdHasBeenSet = false;
152};
153
154} // namespace Model
155} // namespace KafkaConnect
156} // namespace Aws
AWS_KAFKACONNECT_API CreateWorkerConfigurationResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateWorkerConfigurationResult & WithCreationTime(CreationTimeT &&value)
AWS_KAFKACONNECT_API CreateWorkerConfigurationResult()=default
CreateWorkerConfigurationResult & WithWorkerConfigurationArn(WorkerConfigurationArnT &&value)
const WorkerConfigurationRevisionSummary & GetLatestRevision() const
CreateWorkerConfigurationResult & WithWorkerConfigurationState(WorkerConfigurationState value)
AWS_KAFKACONNECT_API CreateWorkerConfigurationResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreateWorkerConfigurationResult & WithRequestId(RequestIdT &&value)
CreateWorkerConfigurationResult & WithLatestRevision(LatestRevisionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue