AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
53 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
54 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
55 inline Service& WithId(const Aws::String& value) { SetId(value); return *this;}
56 inline Service& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
57 inline Service& WithId(const char* value) { SetId(value); return *this;}
59
61
65 inline const Aws::String& GetArn() const{ return m_arn; }
66 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
67 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
68 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
69 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
70 inline Service& WithArn(const Aws::String& value) { SetArn(value); return *this;}
71 inline Service& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
72 inline Service& WithArn(const char* value) { SetArn(value); return *this;}
74
76
79 inline const Aws::String& GetName() const{ return m_name; }
80 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
81 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
82 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
83 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
84 inline Service& WithName(const Aws::String& value) { SetName(value); return *this;}
85 inline Service& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
86 inline Service& WithName(const char* value) { SetName(value); return *this;}
88
90
93 inline const Aws::String& GetNamespaceId() const{ return m_namespaceId; }
94 inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
95 inline void SetNamespaceId(const Aws::String& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = value; }
96 inline void SetNamespaceId(Aws::String&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::move(value); }
97 inline void SetNamespaceId(const char* value) { m_namespaceIdHasBeenSet = true; m_namespaceId.assign(value); }
98 inline Service& WithNamespaceId(const Aws::String& value) { SetNamespaceId(value); return *this;}
99 inline Service& WithNamespaceId(Aws::String&& value) { SetNamespaceId(std::move(value)); return *this;}
100 inline Service& WithNamespaceId(const char* value) { SetNamespaceId(value); return *this;}
102
104
107 inline const Aws::String& GetDescription() const{ return m_description; }
108 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
109 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
110 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
111 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
112 inline Service& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
113 inline Service& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
114 inline Service& WithDescription(const char* value) { SetDescription(value); return *this;}
116
118
124 inline int GetInstanceCount() const{ return m_instanceCount; }
125 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
126 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
127 inline Service& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
129
131
137 inline const DnsConfig& GetDnsConfig() const{ return m_dnsConfig; }
138 inline bool DnsConfigHasBeenSet() const { return m_dnsConfigHasBeenSet; }
139 inline void SetDnsConfig(const DnsConfig& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = value; }
140 inline void SetDnsConfig(DnsConfig&& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = std::move(value); }
141 inline Service& WithDnsConfig(const DnsConfig& value) { SetDnsConfig(value); return *this;}
142 inline Service& WithDnsConfig(DnsConfig&& value) { SetDnsConfig(std::move(value)); return *this;}
144
146
154 inline const ServiceType& GetType() const{ return m_type; }
155 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
156 inline void SetType(const ServiceType& value) { m_typeHasBeenSet = true; m_type = value; }
157 inline void SetType(ServiceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
158 inline Service& WithType(const ServiceType& value) { SetType(value); return *this;}
159 inline Service& WithType(ServiceType&& value) { SetType(std::move(value)); return *this;}
161
163
171 inline const HealthCheckConfig& GetHealthCheckConfig() const{ return m_healthCheckConfig; }
172 inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; }
173 inline void SetHealthCheckConfig(const HealthCheckConfig& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = value; }
174 inline void SetHealthCheckConfig(HealthCheckConfig&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = std::move(value); }
175 inline Service& WithHealthCheckConfig(const HealthCheckConfig& value) { SetHealthCheckConfig(value); return *this;}
176 inline Service& WithHealthCheckConfig(HealthCheckConfig&& value) { SetHealthCheckConfig(std::move(value)); return *this;}
178
180
186 inline const HealthCheckCustomConfig& GetHealthCheckCustomConfig() const{ return m_healthCheckCustomConfig; }
187 inline bool HealthCheckCustomConfigHasBeenSet() const { return m_healthCheckCustomConfigHasBeenSet; }
188 inline void SetHealthCheckCustomConfig(const HealthCheckCustomConfig& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = value; }
189 inline void SetHealthCheckCustomConfig(HealthCheckCustomConfig&& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = std::move(value); }
193
195
201 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
202 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
203 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
204 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
205 inline Service& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
206 inline Service& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
208
210
216 inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; }
217 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
218 inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; }
219 inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); }
220 inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); }
221 inline Service& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;}
222 inline Service& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;}
223 inline Service& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;}
225 private:
226
227 Aws::String m_id;
228 bool m_idHasBeenSet = false;
229
230 Aws::String m_arn;
231 bool m_arnHasBeenSet = false;
232
233 Aws::String m_name;
234 bool m_nameHasBeenSet = false;
235
236 Aws::String m_namespaceId;
237 bool m_namespaceIdHasBeenSet = false;
238
239 Aws::String m_description;
240 bool m_descriptionHasBeenSet = false;
241
242 int m_instanceCount;
243 bool m_instanceCountHasBeenSet = false;
244
245 DnsConfig m_dnsConfig;
246 bool m_dnsConfigHasBeenSet = false;
247
248 ServiceType m_type;
249 bool m_typeHasBeenSet = false;
250
251 HealthCheckConfig m_healthCheckConfig;
252 bool m_healthCheckConfigHasBeenSet = false;
253
254 HealthCheckCustomConfig m_healthCheckCustomConfig;
255 bool m_healthCheckCustomConfigHasBeenSet = false;
256
257 Aws::Utils::DateTime m_createDate;
258 bool m_createDateHasBeenSet = false;
259
260 Aws::String m_creatorRequestId;
261 bool m_creatorRequestIdHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace ServiceDiscovery
266} // namespace Aws
void SetDescription(const Aws::String &value)
Definition Service.h:109
AWS_SERVICEDISCOVERY_API Service(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
Definition Service.h:107
void SetDnsConfig(const DnsConfig &value)
Definition Service.h:139
const Aws::String & GetArn() const
Definition Service.h:65
const Aws::String & GetId() const
Definition Service.h:50
void SetDescription(Aws::String &&value)
Definition Service.h:110
Service & WithArn(Aws::String &&value)
Definition Service.h:71
void SetHealthCheckCustomConfig(const HealthCheckCustomConfig &value)
Definition Service.h:188
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetName() const
Definition Service.h:79
void SetHealthCheckConfig(HealthCheckConfig &&value)
Definition Service.h:174
Service & WithDnsConfig(const DnsConfig &value)
Definition Service.h:141
void SetDescription(const char *value)
Definition Service.h:111
Service & WithName(const Aws::String &value)
Definition Service.h:84
void SetName(const char *value)
Definition Service.h:83
AWS_SERVICEDISCOVERY_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetHealthCheckConfig(const HealthCheckConfig &value)
Definition Service.h:173
const HealthCheckCustomConfig & GetHealthCheckCustomConfig() const
Definition Service.h:186
void SetDnsConfig(DnsConfig &&value)
Definition Service.h:140
Service & WithInstanceCount(int value)
Definition Service.h:127
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition Service.h:204
Service & WithName(const char *value)
Definition Service.h:86
Service & WithCreatorRequestId(const Aws::String &value)
Definition Service.h:221
void SetArn(const Aws::String &value)
Definition Service.h:67
Service & WithType(ServiceType &&value)
Definition Service.h:159
void SetId(Aws::String &&value)
Definition Service.h:53
Service & WithDnsConfig(DnsConfig &&value)
Definition Service.h:142
Service & WithId(Aws::String &&value)
Definition Service.h:56
Service & WithNamespaceId(const Aws::String &value)
Definition Service.h:98
void SetType(ServiceType &&value)
Definition Service.h:157
const Aws::String & GetNamespaceId() const
Definition Service.h:93
bool HealthCheckCustomConfigHasBeenSet() const
Definition Service.h:187
Service & WithCreateDate(const Aws::Utils::DateTime &value)
Definition Service.h:205
void SetArn(const char *value)
Definition Service.h:69
Service & WithHealthCheckCustomConfig(HealthCheckCustomConfig &&value)
Definition Service.h:191
void SetName(const Aws::String &value)
Definition Service.h:81
Service & WithHealthCheckConfig(const HealthCheckConfig &value)
Definition Service.h:175
Service & WithCreatorRequestId(const char *value)
Definition Service.h:223
const Aws::Utils::DateTime & GetCreateDate() const
Definition Service.h:201
Service & WithCreateDate(Aws::Utils::DateTime &&value)
Definition Service.h:206
Service & WithArn(const Aws::String &value)
Definition Service.h:70
void SetNamespaceId(const Aws::String &value)
Definition Service.h:95
void SetHealthCheckCustomConfig(HealthCheckCustomConfig &&value)
Definition Service.h:189
void SetId(const char *value)
Definition Service.h:54
const Aws::String & GetCreatorRequestId() const
Definition Service.h:216
const ServiceType & GetType() const
Definition Service.h:154
void SetCreatorRequestId(const Aws::String &value)
Definition Service.h:218
Service & WithId(const Aws::String &value)
Definition Service.h:55
void SetCreatorRequestId(const char *value)
Definition Service.h:220
const DnsConfig & GetDnsConfig() const
Definition Service.h:137
const HealthCheckConfig & GetHealthCheckConfig() const
Definition Service.h:171
void SetName(Aws::String &&value)
Definition Service.h:82
Service & WithName(Aws::String &&value)
Definition Service.h:85
Service & WithType(const ServiceType &value)
Definition Service.h:158
void SetNamespaceId(Aws::String &&value)
Definition Service.h:96
Service & WithArn(const char *value)
Definition Service.h:72
Service & WithDescription(const Aws::String &value)
Definition Service.h:112
Service & WithNamespaceId(const char *value)
Definition Service.h:100
void SetArn(Aws::String &&value)
Definition Service.h:68
void SetCreatorRequestId(Aws::String &&value)
Definition Service.h:219
Service & WithHealthCheckConfig(HealthCheckConfig &&value)
Definition Service.h:176
Service & WithDescription(const char *value)
Definition Service.h:114
AWS_SERVICEDISCOVERY_API Service()
Service & WithNamespaceId(Aws::String &&value)
Definition Service.h:99
Service & WithCreatorRequestId(Aws::String &&value)
Definition Service.h:222
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition Service.h:203
Service & WithHealthCheckCustomConfig(const HealthCheckCustomConfig &value)
Definition Service.h:190
Service & WithDescription(Aws::String &&value)
Definition Service.h:113
Service & WithId(const char *value)
Definition Service.h:57
void SetId(const Aws::String &value)
Definition Service.h:52
void SetNamespaceId(const char *value)
Definition Service.h:97
void SetType(const ServiceType &value)
Definition Service.h:156
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue