AWS SDK for C++

AWS SDK for C++ Version 1.11.634

Loading...
Searching...
No Matches
Service.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/DnsConfig.h>
10#include <aws/servicediscovery/model/ServiceType.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
37 class Service
38 {
39 public:
40 AWS_SERVICEDISCOVERY_API Service() = default;
41 AWS_SERVICEDISCOVERY_API Service(Aws::Utils::Json::JsonView jsonValue);
42 AWS_SERVICEDISCOVERY_API Service& 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 Service& 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 Service& 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 Service& 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 Service& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
99
101
104 inline const Aws::String& GetNamespaceId() const { return m_namespaceId; }
105 inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
106 template<typename NamespaceIdT = Aws::String>
107 void SetNamespaceId(NamespaceIdT&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::forward<NamespaceIdT>(value); }
108 template<typename NamespaceIdT = Aws::String>
109 Service& WithNamespaceId(NamespaceIdT&& value) { SetNamespaceId(std::forward<NamespaceIdT>(value)); return *this;}
111
113
116 inline const Aws::String& GetDescription() const { return m_description; }
117 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
118 template<typename DescriptionT = Aws::String>
119 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
120 template<typename DescriptionT = Aws::String>
121 Service& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
123
125
131 inline int GetInstanceCount() const { return m_instanceCount; }
132 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
133 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
134 inline Service& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
136
138
144 inline const DnsConfig& GetDnsConfig() const { return m_dnsConfig; }
145 inline bool DnsConfigHasBeenSet() const { return m_dnsConfigHasBeenSet; }
146 template<typename DnsConfigT = DnsConfig>
147 void SetDnsConfig(DnsConfigT&& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = std::forward<DnsConfigT>(value); }
148 template<typename DnsConfigT = DnsConfig>
149 Service& WithDnsConfig(DnsConfigT&& value) { SetDnsConfig(std::forward<DnsConfigT>(value)); return *this;}
151
153
161 inline ServiceType GetType() const { return m_type; }
162 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
163 inline void SetType(ServiceType value) { m_typeHasBeenSet = true; m_type = value; }
164 inline Service& WithType(ServiceType value) { SetType(value); return *this;}
166
168
176 inline const HealthCheckConfig& GetHealthCheckConfig() const { return m_healthCheckConfig; }
177 inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; }
178 template<typename HealthCheckConfigT = HealthCheckConfig>
179 void SetHealthCheckConfig(HealthCheckConfigT&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = std::forward<HealthCheckConfigT>(value); }
180 template<typename HealthCheckConfigT = HealthCheckConfig>
181 Service& WithHealthCheckConfig(HealthCheckConfigT&& value) { SetHealthCheckConfig(std::forward<HealthCheckConfigT>(value)); return *this;}
183
185
191 inline const HealthCheckCustomConfig& GetHealthCheckCustomConfig() const { return m_healthCheckCustomConfig; }
192 inline bool HealthCheckCustomConfigHasBeenSet() const { return m_healthCheckCustomConfigHasBeenSet; }
193 template<typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
194 void SetHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = std::forward<HealthCheckCustomConfigT>(value); }
195 template<typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
196 Service& WithHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) { SetHealthCheckCustomConfig(std::forward<HealthCheckCustomConfigT>(value)); return *this;}
198
200
206 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
207 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
208 template<typename CreateDateT = Aws::Utils::DateTime>
209 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
210 template<typename CreateDateT = Aws::Utils::DateTime>
211 Service& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
213
215
221 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
222 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
223 template<typename CreatorRequestIdT = Aws::String>
224 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
225 template<typename CreatorRequestIdT = Aws::String>
226 Service& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
228
230
238 inline const Aws::String& GetCreatedByAccount() const { return m_createdByAccount; }
239 inline bool CreatedByAccountHasBeenSet() const { return m_createdByAccountHasBeenSet; }
240 template<typename CreatedByAccountT = Aws::String>
241 void SetCreatedByAccount(CreatedByAccountT&& value) { m_createdByAccountHasBeenSet = true; m_createdByAccount = std::forward<CreatedByAccountT>(value); }
242 template<typename CreatedByAccountT = Aws::String>
243 Service& WithCreatedByAccount(CreatedByAccountT&& value) { SetCreatedByAccount(std::forward<CreatedByAccountT>(value)); return *this;}
245 private:
246
247 Aws::String m_id;
248 bool m_idHasBeenSet = false;
249
250 Aws::String m_arn;
251 bool m_arnHasBeenSet = false;
252
253 Aws::String m_resourceOwner;
254 bool m_resourceOwnerHasBeenSet = false;
255
256 Aws::String m_name;
257 bool m_nameHasBeenSet = false;
258
259 Aws::String m_namespaceId;
260 bool m_namespaceIdHasBeenSet = false;
261
262 Aws::String m_description;
263 bool m_descriptionHasBeenSet = false;
264
265 int m_instanceCount{0};
266 bool m_instanceCountHasBeenSet = false;
267
268 DnsConfig m_dnsConfig;
269 bool m_dnsConfigHasBeenSet = false;
270
272 bool m_typeHasBeenSet = false;
273
274 HealthCheckConfig m_healthCheckConfig;
275 bool m_healthCheckConfigHasBeenSet = false;
276
277 HealthCheckCustomConfig m_healthCheckCustomConfig;
278 bool m_healthCheckCustomConfigHasBeenSet = false;
279
280 Aws::Utils::DateTime m_createDate{};
281 bool m_createDateHasBeenSet = false;
282
283 Aws::String m_creatorRequestId;
284 bool m_creatorRequestIdHasBeenSet = false;
285
286 Aws::String m_createdByAccount;
287 bool m_createdByAccountHasBeenSet = false;
288 };
289
290} // namespace Model
291} // namespace ServiceDiscovery
292} // namespace Aws
AWS_SERVICEDISCOVERY_API Service(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
Definition Service.h:116
Service & WithCreatorRequestId(CreatorRequestIdT &&value)
Definition Service.h:226
const Aws::String & GetArn() const
Definition Service.h:63
const Aws::String & GetId() const
Definition Service.h:50
void SetHealthCheckConfig(HealthCheckConfigT &&value)
Definition Service.h:179
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreateDate(CreateDateT &&value)
Definition Service.h:209
const Aws::String & GetName() const
Definition Service.h:92
Service & WithHealthCheckConfig(HealthCheckConfigT &&value)
Definition Service.h:181
AWS_SERVICEDISCOVERY_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
const HealthCheckCustomConfig & GetHealthCheckCustomConfig() const
Definition Service.h:191
Service & WithInstanceCount(int value)
Definition Service.h:134
void SetResourceOwner(ResourceOwnerT &&value)
Definition Service.h:83
Service & WithDescription(DescriptionT &&value)
Definition Service.h:121
Service & WithName(NameT &&value)
Definition Service.h:97
const Aws::String & GetNamespaceId() const
Definition Service.h:104
bool HealthCheckCustomConfigHasBeenSet() const
Definition Service.h:192
const Aws::Utils::DateTime & GetCreateDate() const
Definition Service.h:206
void SetCreatorRequestId(CreatorRequestIdT &&value)
Definition Service.h:224
Service & WithArn(ArnT &&value)
Definition Service.h:68
const Aws::String & GetResourceOwner() const
Definition Service.h:80
void SetDescription(DescriptionT &&value)
Definition Service.h:119
const Aws::String & GetCreatorRequestId() const
Definition Service.h:221
const Aws::String & GetCreatedByAccount() const
Definition Service.h:238
const DnsConfig & GetDnsConfig() const
Definition Service.h:144
Service & WithCreateDate(CreateDateT &&value)
Definition Service.h:211
const HealthCheckConfig & GetHealthCheckConfig() const
Definition Service.h:176
Service & WithHealthCheckCustomConfig(HealthCheckCustomConfigT &&value)
Definition Service.h:196
AWS_SERVICEDISCOVERY_API Service()=default
Service & WithDnsConfig(DnsConfigT &&value)
Definition Service.h:149
void SetDnsConfig(DnsConfigT &&value)
Definition Service.h:147
void SetType(ServiceType value)
Definition Service.h:163
Service & WithResourceOwner(ResourceOwnerT &&value)
Definition Service.h:85
Service & WithNamespaceId(NamespaceIdT &&value)
Definition Service.h:109
void SetNamespaceId(NamespaceIdT &&value)
Definition Service.h:107
void SetCreatedByAccount(CreatedByAccountT &&value)
Definition Service.h:241
Service & WithCreatedByAccount(CreatedByAccountT &&value)
Definition Service.h:243
void SetHealthCheckCustomConfig(HealthCheckCustomConfigT &&value)
Definition Service.h:194
Service & WithType(ServiceType value)
Definition Service.h:164
Service & WithId(IdT &&value)
Definition Service.h:55
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue