AWS SDK for C++

AWS SDK for C++ Version 1.11.866

Loading...
Searching...
No Matches
UpdateRegistryResult.h
1
6#pragma once
7#include <aws/agent-registry-control/AgentRegistryControl_EXPORTS.h>
8#include <aws/agent-registry-control/model/ApprovalConfiguration.h>
9#include <aws/agent-registry-control/model/DiscoveryConfiguration.h>
10#include <aws/agent-registry-control/model/RegistryStatus.h>
11#include <aws/core/http/HttpResponse.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18template <typename RESULT_TYPE>
19class AmazonWebServiceResult;
20
21namespace Utils {
22namespace Json {
23class JsonValue;
24} // namespace Json
25} // namespace Utils
26namespace AgentRegistryControl {
27namespace Model {
34 public:
35 AWS_AGENTREGISTRYCONTROL_API UpdateRegistryResult() = default;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetDescription() const { return m_description; }
61 template <typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
67 UpdateRegistryResult& WithDescription(DescriptionT&& value) {
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetRegistryId() const { return m_registryId; }
78 template <typename RegistryIdT = Aws::String>
79 void SetRegistryId(RegistryIdT&& value) {
80 m_registryIdHasBeenSet = true;
81 m_registryId = std::forward<RegistryIdT>(value);
82 }
83 template <typename RegistryIdT = Aws::String>
84 UpdateRegistryResult& WithRegistryId(RegistryIdT&& value) {
85 SetRegistryId(std::forward<RegistryIdT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetRegistryArn() const { return m_registryArn; }
95 template <typename RegistryArnT = Aws::String>
96 void SetRegistryArn(RegistryArnT&& value) {
97 m_registryArnHasBeenSet = true;
98 m_registryArn = std::forward<RegistryArnT>(value);
99 }
100 template <typename RegistryArnT = Aws::String>
101 UpdateRegistryResult& WithRegistryArn(RegistryArnT&& value) {
102 SetRegistryArn(std::forward<RegistryArnT>(value));
103 return *this;
104 }
106
108
111 inline const DiscoveryConfiguration& GetDiscoveryConfiguration() const { return m_discoveryConfiguration; }
112 template <typename DiscoveryConfigurationT = DiscoveryConfiguration>
113 void SetDiscoveryConfiguration(DiscoveryConfigurationT&& value) {
114 m_discoveryConfigurationHasBeenSet = true;
115 m_discoveryConfiguration = std::forward<DiscoveryConfigurationT>(value);
116 }
117 template <typename DiscoveryConfigurationT = DiscoveryConfiguration>
118 UpdateRegistryResult& WithDiscoveryConfiguration(DiscoveryConfigurationT&& value) {
119 SetDiscoveryConfiguration(std::forward<DiscoveryConfigurationT>(value));
120 return *this;
121 }
123
125
128 inline const ApprovalConfiguration& GetApprovalConfiguration() const { return m_approvalConfiguration; }
129 template <typename ApprovalConfigurationT = ApprovalConfiguration>
130 void SetApprovalConfiguration(ApprovalConfigurationT&& value) {
131 m_approvalConfigurationHasBeenSet = true;
132 m_approvalConfiguration = std::forward<ApprovalConfigurationT>(value);
133 }
134 template <typename ApprovalConfigurationT = ApprovalConfiguration>
135 UpdateRegistryResult& WithApprovalConfiguration(ApprovalConfigurationT&& value) {
136 SetApprovalConfiguration(std::forward<ApprovalConfigurationT>(value));
137 return *this;
138 }
140
142
145 inline RegistryStatus GetStatus() const { return m_status; }
146 inline void SetStatus(RegistryStatus value) {
147 m_statusHasBeenSet = true;
148 m_status = value;
149 }
151 SetStatus(value);
152 return *this;
153 }
155
157
161 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
162 template <typename StatusReasonT = Aws::String>
163 void SetStatusReason(StatusReasonT&& value) {
164 m_statusReasonHasBeenSet = true;
165 m_statusReason = std::forward<StatusReasonT>(value);
166 }
167 template <typename StatusReasonT = Aws::String>
168 UpdateRegistryResult& WithStatusReason(StatusReasonT&& value) {
169 SetStatusReason(std::forward<StatusReasonT>(value));
170 return *this;
171 }
173
175
178 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
179 template <typename CreatedAtT = Aws::Utils::DateTime>
180 void SetCreatedAt(CreatedAtT&& value) {
181 m_createdAtHasBeenSet = true;
182 m_createdAt = std::forward<CreatedAtT>(value);
183 }
184 template <typename CreatedAtT = Aws::Utils::DateTime>
185 UpdateRegistryResult& WithCreatedAt(CreatedAtT&& value) {
186 SetCreatedAt(std::forward<CreatedAtT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
196 template <typename UpdatedAtT = Aws::Utils::DateTime>
197 void SetUpdatedAt(UpdatedAtT&& value) {
198 m_updatedAtHasBeenSet = true;
199 m_updatedAt = std::forward<UpdatedAtT>(value);
200 }
201 template <typename UpdatedAtT = Aws::Utils::DateTime>
202 UpdateRegistryResult& WithUpdatedAt(UpdatedAtT&& value) {
203 SetUpdatedAt(std::forward<UpdatedAtT>(value));
204 return *this;
205 }
207
209
210 inline const Aws::String& GetRequestId() const { return m_requestId; }
211 template <typename RequestIdT = Aws::String>
212 void SetRequestId(RequestIdT&& value) {
213 m_requestIdHasBeenSet = true;
214 m_requestId = std::forward<RequestIdT>(value);
215 }
216 template <typename RequestIdT = Aws::String>
217 UpdateRegistryResult& WithRequestId(RequestIdT&& value) {
218 SetRequestId(std::forward<RequestIdT>(value));
219 return *this;
220 }
222 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
223
224 private:
225 Aws::String m_name;
226
227 Aws::String m_description;
228
229 Aws::String m_registryId;
230
231 Aws::String m_registryArn;
232
233 DiscoveryConfiguration m_discoveryConfiguration;
234
235 ApprovalConfiguration m_approvalConfiguration;
236
238
239 Aws::String m_statusReason;
240
241 Aws::Utils::DateTime m_createdAt{};
242
243 Aws::Utils::DateTime m_updatedAt{};
244
245 Aws::String m_requestId;
246 Aws::Http::HttpResponseCode m_HttpResponseCode;
247 bool m_nameHasBeenSet = false;
248 bool m_descriptionHasBeenSet = false;
249 bool m_registryIdHasBeenSet = false;
250 bool m_registryArnHasBeenSet = false;
251 bool m_discoveryConfigurationHasBeenSet = false;
252 bool m_approvalConfigurationHasBeenSet = false;
253 bool m_statusHasBeenSet = false;
254 bool m_statusReasonHasBeenSet = false;
255 bool m_createdAtHasBeenSet = false;
256 bool m_updatedAtHasBeenSet = false;
257 bool m_requestIdHasBeenSet = false;
258};
259
260} // namespace Model
261} // namespace AgentRegistryControl
262} // namespace Aws
AWS_AGENTREGISTRYCONTROL_API UpdateRegistryResult()=default
void SetApprovalConfiguration(ApprovalConfigurationT &&value)
UpdateRegistryResult & WithRegistryId(RegistryIdT &&value)
UpdateRegistryResult & WithUpdatedAt(UpdatedAtT &&value)
UpdateRegistryResult & WithApprovalConfiguration(ApprovalConfigurationT &&value)
AWS_AGENTREGISTRYCONTROL_API UpdateRegistryResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
UpdateRegistryResult & WithRequestId(RequestIdT &&value)
UpdateRegistryResult & WithDiscoveryConfiguration(DiscoveryConfigurationT &&value)
AWS_AGENTREGISTRYCONTROL_API UpdateRegistryResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const ApprovalConfiguration & GetApprovalConfiguration() const
UpdateRegistryResult & WithCreatedAt(CreatedAtT &&value)
UpdateRegistryResult & WithRegistryArn(RegistryArnT &&value)
UpdateRegistryResult & WithStatus(RegistryStatus value)
UpdateRegistryResult & WithStatusReason(StatusReasonT &&value)
const DiscoveryConfiguration & GetDiscoveryConfiguration() const
void SetDiscoveryConfiguration(DiscoveryConfigurationT &&value)
UpdateRegistryResult & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue