AWS SDK for C++

AWS SDK for C++ Version 1.11.844

Loading...
Searching...
No Matches
GetConnectorV2Result.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/securityhub/SecurityHub_EXPORTS.h>
11#include <aws/securityhub/model/EnablementStatus.h>
12#include <aws/securityhub/model/HealthCheck.h>
13#include <aws/securityhub/model/ProviderDetail.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 SecurityHub {
27namespace Model {
29 public:
30 AWS_SECURITYHUB_API GetConnectorV2Result() = default;
33
35
38 inline const Aws::String& GetConnectorArn() const { return m_connectorArn; }
39 template <typename ConnectorArnT = Aws::String>
40 void SetConnectorArn(ConnectorArnT&& value) {
41 m_connectorArnHasBeenSet = true;
42 m_connectorArn = std::forward<ConnectorArnT>(value);
43 }
44 template <typename ConnectorArnT = Aws::String>
45 GetConnectorV2Result& WithConnectorArn(ConnectorArnT&& value) {
46 SetConnectorArn(std::forward<ConnectorArnT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetConnectorId() const { return m_connectorId; }
56 template <typename ConnectorIdT = Aws::String>
57 void SetConnectorId(ConnectorIdT&& value) {
58 m_connectorIdHasBeenSet = true;
59 m_connectorId = std::forward<ConnectorIdT>(value);
60 }
61 template <typename ConnectorIdT = Aws::String>
62 GetConnectorV2Result& WithConnectorId(ConnectorIdT&& value) {
63 SetConnectorId(std::forward<ConnectorIdT>(value));
64 return *this;
65 }
67
69
72 inline const Aws::String& GetName() const { return m_name; }
73 template <typename NameT = Aws::String>
74 void SetName(NameT&& value) {
75 m_nameHasBeenSet = true;
76 m_name = std::forward<NameT>(value);
77 }
78 template <typename NameT = Aws::String>
80 SetName(std::forward<NameT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetDescription() const { return m_description; }
90 template <typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) {
92 m_descriptionHasBeenSet = true;
93 m_description = std::forward<DescriptionT>(value);
94 }
95 template <typename DescriptionT = Aws::String>
96 GetConnectorV2Result& WithDescription(DescriptionT&& value) {
97 SetDescription(std::forward<DescriptionT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetKmsKeyArn() const { return m_kmsKeyArn; }
107 template <typename KmsKeyArnT = Aws::String>
108 void SetKmsKeyArn(KmsKeyArnT&& value) {
109 m_kmsKeyArnHasBeenSet = true;
110 m_kmsKeyArn = std::forward<KmsKeyArnT>(value);
111 }
112 template <typename KmsKeyArnT = Aws::String>
113 GetConnectorV2Result& WithKmsKeyArn(KmsKeyArnT&& value) {
114 SetKmsKeyArn(std::forward<KmsKeyArnT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
124 template <typename CreatedAtT = Aws::Utils::DateTime>
125 void SetCreatedAt(CreatedAtT&& value) {
126 m_createdAtHasBeenSet = true;
127 m_createdAt = std::forward<CreatedAtT>(value);
128 }
129 template <typename CreatedAtT = Aws::Utils::DateTime>
130 GetConnectorV2Result& WithCreatedAt(CreatedAtT&& value) {
131 SetCreatedAt(std::forward<CreatedAtT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::Utils::DateTime& GetLastUpdatedAt() const { return m_lastUpdatedAt; }
142 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
143 void SetLastUpdatedAt(LastUpdatedAtT&& value) {
144 m_lastUpdatedAtHasBeenSet = true;
145 m_lastUpdatedAt = std::forward<LastUpdatedAtT>(value);
146 }
147 template <typename LastUpdatedAtT = Aws::Utils::DateTime>
148 GetConnectorV2Result& WithLastUpdatedAt(LastUpdatedAtT&& value) {
149 SetLastUpdatedAt(std::forward<LastUpdatedAtT>(value));
150 return *this;
151 }
153
155
158 inline const HealthCheck& GetHealth() const { return m_health; }
159 template <typename HealthT = HealthCheck>
160 void SetHealth(HealthT&& value) {
161 m_healthHasBeenSet = true;
162 m_health = std::forward<HealthT>(value);
163 }
164 template <typename HealthT = HealthCheck>
166 SetHealth(std::forward<HealthT>(value));
167 return *this;
168 }
170
172
175 inline const ProviderDetail& GetProviderDetail() const { return m_providerDetail; }
176 template <typename ProviderDetailT = ProviderDetail>
177 void SetProviderDetail(ProviderDetailT&& value) {
178 m_providerDetailHasBeenSet = true;
179 m_providerDetail = std::forward<ProviderDetailT>(value);
180 }
181 template <typename ProviderDetailT = ProviderDetail>
182 GetConnectorV2Result& WithProviderDetail(ProviderDetailT&& value) {
183 SetProviderDetail(std::forward<ProviderDetailT>(value));
184 return *this;
185 }
187
189
192 inline EnablementStatus GetEnablementStatus() const { return m_enablementStatus; }
194 m_enablementStatusHasBeenSet = true;
195 m_enablementStatus = value;
196 }
198 SetEnablementStatus(value);
199 return *this;
200 }
202
204
208 inline const Aws::String& GetEnablementStatusReason() const { return m_enablementStatusReason; }
209 template <typename EnablementStatusReasonT = Aws::String>
210 void SetEnablementStatusReason(EnablementStatusReasonT&& value) {
211 m_enablementStatusReasonHasBeenSet = true;
212 m_enablementStatusReason = std::forward<EnablementStatusReasonT>(value);
213 }
214 template <typename EnablementStatusReasonT = Aws::String>
215 GetConnectorV2Result& WithEnablementStatusReason(EnablementStatusReasonT&& value) {
216 SetEnablementStatusReason(std::forward<EnablementStatusReasonT>(value));
217 return *this;
218 }
220
222
223 inline const Aws::String& GetRequestId() const { return m_requestId; }
224 template <typename RequestIdT = Aws::String>
225 void SetRequestId(RequestIdT&& value) {
226 m_requestIdHasBeenSet = true;
227 m_requestId = std::forward<RequestIdT>(value);
228 }
229 template <typename RequestIdT = Aws::String>
230 GetConnectorV2Result& WithRequestId(RequestIdT&& value) {
231 SetRequestId(std::forward<RequestIdT>(value));
232 return *this;
233 }
235 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
236
237 private:
238 Aws::String m_connectorArn;
239
240 Aws::String m_connectorId;
241
242 Aws::String m_name;
243
244 Aws::String m_description;
245
246 Aws::String m_kmsKeyArn;
247
248 Aws::Utils::DateTime m_createdAt{};
249
250 Aws::Utils::DateTime m_lastUpdatedAt{};
251
252 HealthCheck m_health;
253
254 ProviderDetail m_providerDetail;
255
257
258 Aws::String m_enablementStatusReason;
259
260 Aws::String m_requestId;
261 Aws::Http::HttpResponseCode m_HttpResponseCode;
262 bool m_connectorArnHasBeenSet = false;
263 bool m_connectorIdHasBeenSet = false;
264 bool m_nameHasBeenSet = false;
265 bool m_descriptionHasBeenSet = false;
266 bool m_kmsKeyArnHasBeenSet = false;
267 bool m_createdAtHasBeenSet = false;
268 bool m_lastUpdatedAtHasBeenSet = false;
269 bool m_healthHasBeenSet = false;
270 bool m_providerDetailHasBeenSet = false;
271 bool m_enablementStatusHasBeenSet = false;
272 bool m_enablementStatusReasonHasBeenSet = false;
273 bool m_requestIdHasBeenSet = false;
274};
275
276} // namespace Model
277} // namespace SecurityHub
278} // namespace Aws
GetConnectorV2Result & WithRequestId(RequestIdT &&value)
GetConnectorV2Result & WithProviderDetail(ProviderDetailT &&value)
GetConnectorV2Result & WithKmsKeyArn(KmsKeyArnT &&value)
AWS_SECURITYHUB_API GetConnectorV2Result()=default
AWS_SECURITYHUB_API GetConnectorV2Result(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetConnectorV2Result & WithDescription(DescriptionT &&value)
GetConnectorV2Result & WithHealth(HealthT &&value)
GetConnectorV2Result & WithConnectorArn(ConnectorArnT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetConnectorV2Result & WithConnectorId(ConnectorIdT &&value)
GetConnectorV2Result & WithEnablementStatus(EnablementStatus value)
GetConnectorV2Result & WithEnablementStatusReason(EnablementStatusReasonT &&value)
GetConnectorV2Result & WithCreatedAt(CreatedAtT &&value)
GetConnectorV2Result & WithName(NameT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_SECURITYHUB_API GetConnectorV2Result & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetLastUpdatedAt() const
void SetEnablementStatusReason(EnablementStatusReasonT &&value)
GetConnectorV2Result & WithLastUpdatedAt(LastUpdatedAtT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue