AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ServiceSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
10#include <aws/servicediscovery/model/DnsConfig.h>
11#include <aws/servicediscovery/model/HealthCheckConfig.h>
12#include <aws/servicediscovery/model/HealthCheckCustomConfig.h>
13#include <aws/servicediscovery/model/ServiceType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ServiceDiscovery {
25namespace Model {
26
34 public:
35 AWS_SERVICEDISCOVERY_API ServiceSummary() = default;
36 AWS_SERVICEDISCOVERY_API ServiceSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SERVICEDISCOVERY_API ServiceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetId() const { return m_id; }
45 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
46 template <typename IdT = Aws::String>
47 void SetId(IdT&& value) {
48 m_idHasBeenSet = true;
49 m_id = std::forward<IdT>(value);
50 }
51 template <typename IdT = Aws::String>
52 ServiceSummary& WithId(IdT&& value) {
53 SetId(std::forward<IdT>(value));
54 return *this;
55 }
57
59
63 inline const Aws::String& GetArn() const { return m_arn; }
64 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
65 template <typename ArnT = Aws::String>
66 void SetArn(ArnT&& value) {
67 m_arnHasBeenSet = true;
68 m_arn = std::forward<ArnT>(value);
69 }
70 template <typename ArnT = Aws::String>
71 ServiceSummary& WithArn(ArnT&& value) {
72 SetArn(std::forward<ArnT>(value));
73 return *this;
74 }
76
78
86 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
87 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
88 template <typename ResourceOwnerT = Aws::String>
89 void SetResourceOwner(ResourceOwnerT&& value) {
90 m_resourceOwnerHasBeenSet = true;
91 m_resourceOwner = std::forward<ResourceOwnerT>(value);
92 }
93 template <typename ResourceOwnerT = Aws::String>
94 ServiceSummary& WithResourceOwner(ResourceOwnerT&& value) {
95 SetResourceOwner(std::forward<ResourceOwnerT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetName() const { return m_name; }
105 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
106 template <typename NameT = Aws::String>
107 void SetName(NameT&& value) {
108 m_nameHasBeenSet = true;
109 m_name = std::forward<NameT>(value);
110 }
111 template <typename NameT = Aws::String>
112 ServiceSummary& WithName(NameT&& value) {
113 SetName(std::forward<NameT>(value));
114 return *this;
115 }
117
119
127 inline ServiceType GetType() const { return m_type; }
128 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
129 inline void SetType(ServiceType value) {
130 m_typeHasBeenSet = true;
131 m_type = value;
132 }
134 SetType(value);
135 return *this;
136 }
138
140
143 inline const Aws::String& GetDescription() const { return m_description; }
144 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
145 template <typename DescriptionT = Aws::String>
146 void SetDescription(DescriptionT&& value) {
147 m_descriptionHasBeenSet = true;
148 m_description = std::forward<DescriptionT>(value);
149 }
150 template <typename DescriptionT = Aws::String>
151 ServiceSummary& WithDescription(DescriptionT&& value) {
152 SetDescription(std::forward<DescriptionT>(value));
153 return *this;
154 }
156
158
164 inline int GetInstanceCount() const { return m_instanceCount; }
165 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
166 inline void SetInstanceCount(int value) {
167 m_instanceCountHasBeenSet = true;
168 m_instanceCount = value;
169 }
171 SetInstanceCount(value);
172 return *this;
173 }
175
177
181 inline const DnsConfig& GetDnsConfig() const { return m_dnsConfig; }
182 inline bool DnsConfigHasBeenSet() const { return m_dnsConfigHasBeenSet; }
183 template <typename DnsConfigT = DnsConfig>
184 void SetDnsConfig(DnsConfigT&& value) {
185 m_dnsConfigHasBeenSet = true;
186 m_dnsConfig = std::forward<DnsConfigT>(value);
187 }
188 template <typename DnsConfigT = DnsConfig>
189 ServiceSummary& WithDnsConfig(DnsConfigT&& value) {
190 SetDnsConfig(std::forward<DnsConfigT>(value));
191 return *this;
192 }
194
196
201 inline const HealthCheckConfig& GetHealthCheckConfig() const { return m_healthCheckConfig; }
202 inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; }
203 template <typename HealthCheckConfigT = HealthCheckConfig>
204 void SetHealthCheckConfig(HealthCheckConfigT&& value) {
205 m_healthCheckConfigHasBeenSet = true;
206 m_healthCheckConfig = std::forward<HealthCheckConfigT>(value);
207 }
208 template <typename HealthCheckConfigT = HealthCheckConfig>
209 ServiceSummary& WithHealthCheckConfig(HealthCheckConfigT&& value) {
210 SetHealthCheckConfig(std::forward<HealthCheckConfigT>(value));
211 return *this;
212 }
214
216
230 inline const HealthCheckCustomConfig& GetHealthCheckCustomConfig() const { return m_healthCheckCustomConfig; }
231 inline bool HealthCheckCustomConfigHasBeenSet() const { return m_healthCheckCustomConfigHasBeenSet; }
232 template <typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
233 void SetHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) {
234 m_healthCheckCustomConfigHasBeenSet = true;
235 m_healthCheckCustomConfig = std::forward<HealthCheckCustomConfigT>(value);
236 }
237 template <typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
238 ServiceSummary& WithHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) {
239 SetHealthCheckCustomConfig(std::forward<HealthCheckCustomConfigT>(value));
240 return *this;
241 }
243
245
248 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
249 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
250 template <typename CreateDateT = Aws::Utils::DateTime>
251 void SetCreateDate(CreateDateT&& value) {
252 m_createDateHasBeenSet = true;
253 m_createDate = std::forward<CreateDateT>(value);
254 }
255 template <typename CreateDateT = Aws::Utils::DateTime>
256 ServiceSummary& WithCreateDate(CreateDateT&& value) {
257 SetCreateDate(std::forward<CreateDateT>(value));
258 return *this;
259 }
261
263
271 inline const Aws::String& GetCreatedByAccount() const { return m_createdByAccount; }
272 inline bool CreatedByAccountHasBeenSet() const { return m_createdByAccountHasBeenSet; }
273 template <typename CreatedByAccountT = Aws::String>
274 void SetCreatedByAccount(CreatedByAccountT&& value) {
275 m_createdByAccountHasBeenSet = true;
276 m_createdByAccount = std::forward<CreatedByAccountT>(value);
277 }
278 template <typename CreatedByAccountT = Aws::String>
279 ServiceSummary& WithCreatedByAccount(CreatedByAccountT&& value) {
280 SetCreatedByAccount(std::forward<CreatedByAccountT>(value));
281 return *this;
282 }
284 private:
285 Aws::String m_id;
286
287 Aws::String m_arn;
288
289 Aws::String m_resourceOwner;
290
291 Aws::String m_name;
292
294
295 Aws::String m_description;
296
297 int m_instanceCount{0};
298
299 DnsConfig m_dnsConfig;
300
301 HealthCheckConfig m_healthCheckConfig;
302
303 HealthCheckCustomConfig m_healthCheckCustomConfig;
304
305 Aws::Utils::DateTime m_createDate{};
306
307 Aws::String m_createdByAccount;
308 bool m_idHasBeenSet = false;
309 bool m_arnHasBeenSet = false;
310 bool m_resourceOwnerHasBeenSet = false;
311 bool m_nameHasBeenSet = false;
312 bool m_typeHasBeenSet = false;
313 bool m_descriptionHasBeenSet = false;
314 bool m_instanceCountHasBeenSet = false;
315 bool m_dnsConfigHasBeenSet = false;
316 bool m_healthCheckConfigHasBeenSet = false;
317 bool m_healthCheckCustomConfigHasBeenSet = false;
318 bool m_createDateHasBeenSet = false;
319 bool m_createdByAccountHasBeenSet = false;
320};
321
322} // namespace Model
323} // namespace ServiceDiscovery
324} // namespace Aws
AWS_SERVICEDISCOVERY_API ServiceSummary()=default
ServiceSummary & WithArn(ArnT &&value)
ServiceSummary & WithCreatedByAccount(CreatedByAccountT &&value)
ServiceSummary & WithHealthCheckConfig(HealthCheckConfigT &&value)
const HealthCheckConfig & GetHealthCheckConfig() const
const Aws::String & GetCreatedByAccount() const
ServiceSummary & WithDnsConfig(DnsConfigT &&value)
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
const HealthCheckCustomConfig & GetHealthCheckCustomConfig() const
void SetHealthCheckCustomConfig(HealthCheckCustomConfigT &&value)
const Aws::Utils::DateTime & GetCreateDate() const
ServiceSummary & WithDescription(DescriptionT &&value)
AWS_SERVICEDISCOVERY_API ServiceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceSummary & WithCreateDate(CreateDateT &&value)
AWS_SERVICEDISCOVERY_API ServiceSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetResourceOwner() const
ServiceSummary & WithHealthCheckCustomConfig(HealthCheckCustomConfigT &&value)
ServiceSummary & WithName(NameT &&value)
void SetResourceOwner(ResourceOwnerT &&value)
ServiceSummary & WithResourceOwner(ResourceOwnerT &&value)
void SetHealthCheckConfig(HealthCheckConfigT &&value)
ServiceSummary & WithType(ServiceType value)
void SetCreatedByAccount(CreatedByAccountT &&value)
ServiceSummary & WithInstanceCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue