AWS SDK for C++

AWS SDK for C++ Version 1.11.635

Loading...
Searching...
No Matches
ServiceSummary.h
1
6#pragma once
7#include <aws/servicediscovery/ServiceDiscovery_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/servicediscovery/model/ServiceType.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/core/utils/DateTime.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 ServiceDiscovery
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_SERVICEDISCOVERY_API ServiceSummary() = default;
41 AWS_SERVICEDISCOVERY_API ServiceSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SERVICEDISCOVERY_API ServiceSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetId() const { return m_id; }
51 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
52 template<typename IdT = Aws::String>
53 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
54 template<typename IdT = Aws::String>
55 ServiceSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
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) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
67 template<typename ArnT = Aws::String>
68 ServiceSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
70
72
80 inline const Aws::String& GetResourceOwner() const { return m_resourceOwner; }
81 inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; }
82 template<typename ResourceOwnerT = Aws::String>
83 void SetResourceOwner(ResourceOwnerT&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::forward<ResourceOwnerT>(value); }
84 template<typename ResourceOwnerT = Aws::String>
85 ServiceSummary& WithResourceOwner(ResourceOwnerT&& value) { SetResourceOwner(std::forward<ResourceOwnerT>(value)); return *this;}
87
89
92 inline const Aws::String& GetName() const { return m_name; }
93 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
94 template<typename NameT = Aws::String>
95 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
96 template<typename NameT = Aws::String>
97 ServiceSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
99
101
109 inline ServiceType GetType() const { return m_type; }
110 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
111 inline void SetType(ServiceType value) { m_typeHasBeenSet = true; m_type = value; }
112 inline ServiceSummary& WithType(ServiceType value) { SetType(value); return *this;}
114
116
119 inline const Aws::String& GetDescription() const { return m_description; }
120 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
121 template<typename DescriptionT = Aws::String>
122 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
123 template<typename DescriptionT = Aws::String>
124 ServiceSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
126
128
134 inline int GetInstanceCount() const { return m_instanceCount; }
135 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
136 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
137 inline ServiceSummary& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
139
141
145 inline const DnsConfig& GetDnsConfig() const { return m_dnsConfig; }
146 inline bool DnsConfigHasBeenSet() const { return m_dnsConfigHasBeenSet; }
147 template<typename DnsConfigT = DnsConfig>
148 void SetDnsConfig(DnsConfigT&& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = std::forward<DnsConfigT>(value); }
149 template<typename DnsConfigT = DnsConfig>
150 ServiceSummary& WithDnsConfig(DnsConfigT&& value) { SetDnsConfig(std::forward<DnsConfigT>(value)); return *this;}
152
154
159 inline const HealthCheckConfig& GetHealthCheckConfig() const { return m_healthCheckConfig; }
160 inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; }
161 template<typename HealthCheckConfigT = HealthCheckConfig>
162 void SetHealthCheckConfig(HealthCheckConfigT&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = std::forward<HealthCheckConfigT>(value); }
163 template<typename HealthCheckConfigT = HealthCheckConfig>
164 ServiceSummary& WithHealthCheckConfig(HealthCheckConfigT&& value) { SetHealthCheckConfig(std::forward<HealthCheckConfigT>(value)); return *this;}
166
168
182 inline const HealthCheckCustomConfig& GetHealthCheckCustomConfig() const { return m_healthCheckCustomConfig; }
183 inline bool HealthCheckCustomConfigHasBeenSet() const { return m_healthCheckCustomConfigHasBeenSet; }
184 template<typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
185 void SetHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = std::forward<HealthCheckCustomConfigT>(value); }
186 template<typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
187 ServiceSummary& WithHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) { SetHealthCheckCustomConfig(std::forward<HealthCheckCustomConfigT>(value)); return *this;}
189
191
194 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
195 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
196 template<typename CreateDateT = Aws::Utils::DateTime>
197 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
198 template<typename CreateDateT = Aws::Utils::DateTime>
199 ServiceSummary& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
201
203
211 inline const Aws::String& GetCreatedByAccount() const { return m_createdByAccount; }
212 inline bool CreatedByAccountHasBeenSet() const { return m_createdByAccountHasBeenSet; }
213 template<typename CreatedByAccountT = Aws::String>
214 void SetCreatedByAccount(CreatedByAccountT&& value) { m_createdByAccountHasBeenSet = true; m_createdByAccount = std::forward<CreatedByAccountT>(value); }
215 template<typename CreatedByAccountT = Aws::String>
216 ServiceSummary& WithCreatedByAccount(CreatedByAccountT&& value) { SetCreatedByAccount(std::forward<CreatedByAccountT>(value)); return *this;}
218 private:
219
220 Aws::String m_id;
221 bool m_idHasBeenSet = false;
222
223 Aws::String m_arn;
224 bool m_arnHasBeenSet = false;
225
226 Aws::String m_resourceOwner;
227 bool m_resourceOwnerHasBeenSet = false;
228
229 Aws::String m_name;
230 bool m_nameHasBeenSet = false;
231
233 bool m_typeHasBeenSet = false;
234
235 Aws::String m_description;
236 bool m_descriptionHasBeenSet = false;
237
238 int m_instanceCount{0};
239 bool m_instanceCountHasBeenSet = false;
240
241 DnsConfig m_dnsConfig;
242 bool m_dnsConfigHasBeenSet = false;
243
244 HealthCheckConfig m_healthCheckConfig;
245 bool m_healthCheckConfigHasBeenSet = false;
246
247 HealthCheckCustomConfig m_healthCheckCustomConfig;
248 bool m_healthCheckCustomConfigHasBeenSet = false;
249
250 Aws::Utils::DateTime m_createDate{};
251 bool m_createDateHasBeenSet = false;
252
253 Aws::String m_createdByAccount;
254 bool m_createdByAccountHasBeenSet = false;
255 };
256
257} // namespace Model
258} // namespace ServiceDiscovery
259} // 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