AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template<typename NameT = Aws::String>
78 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
79 template<typename NameT = Aws::String>
80 Service& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
82
84
87 inline const Aws::String& GetNamespaceId() const { return m_namespaceId; }
88 inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
89 template<typename NamespaceIdT = Aws::String>
90 void SetNamespaceId(NamespaceIdT&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::forward<NamespaceIdT>(value); }
91 template<typename NamespaceIdT = Aws::String>
92 Service& WithNamespaceId(NamespaceIdT&& value) { SetNamespaceId(std::forward<NamespaceIdT>(value)); return *this;}
94
96
99 inline const Aws::String& GetDescription() const { return m_description; }
100 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
101 template<typename DescriptionT = Aws::String>
102 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
103 template<typename DescriptionT = Aws::String>
104 Service& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
106
108
114 inline int GetInstanceCount() const { return m_instanceCount; }
115 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
116 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
117 inline Service& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
119
121
127 inline const DnsConfig& GetDnsConfig() const { return m_dnsConfig; }
128 inline bool DnsConfigHasBeenSet() const { return m_dnsConfigHasBeenSet; }
129 template<typename DnsConfigT = DnsConfig>
130 void SetDnsConfig(DnsConfigT&& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = std::forward<DnsConfigT>(value); }
131 template<typename DnsConfigT = DnsConfig>
132 Service& WithDnsConfig(DnsConfigT&& value) { SetDnsConfig(std::forward<DnsConfigT>(value)); return *this;}
134
136
144 inline ServiceType GetType() const { return m_type; }
145 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
146 inline void SetType(ServiceType value) { m_typeHasBeenSet = true; m_type = value; }
147 inline Service& WithType(ServiceType value) { SetType(value); return *this;}
149
151
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 Service& WithHealthCheckConfig(HealthCheckConfigT&& value) { SetHealthCheckConfig(std::forward<HealthCheckConfigT>(value)); return *this;}
166
168
174 inline const HealthCheckCustomConfig& GetHealthCheckCustomConfig() const { return m_healthCheckCustomConfig; }
175 inline bool HealthCheckCustomConfigHasBeenSet() const { return m_healthCheckCustomConfigHasBeenSet; }
176 template<typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
177 void SetHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = std::forward<HealthCheckCustomConfigT>(value); }
178 template<typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
179 Service& WithHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) { SetHealthCheckCustomConfig(std::forward<HealthCheckCustomConfigT>(value)); return *this;}
181
183
189 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
190 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
191 template<typename CreateDateT = Aws::Utils::DateTime>
192 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
193 template<typename CreateDateT = Aws::Utils::DateTime>
194 Service& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
196
198
204 inline const Aws::String& GetCreatorRequestId() const { return m_creatorRequestId; }
205 inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; }
206 template<typename CreatorRequestIdT = Aws::String>
207 void SetCreatorRequestId(CreatorRequestIdT&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::forward<CreatorRequestIdT>(value); }
208 template<typename CreatorRequestIdT = Aws::String>
209 Service& WithCreatorRequestId(CreatorRequestIdT&& value) { SetCreatorRequestId(std::forward<CreatorRequestIdT>(value)); return *this;}
211 private:
212
213 Aws::String m_id;
214 bool m_idHasBeenSet = false;
215
216 Aws::String m_arn;
217 bool m_arnHasBeenSet = false;
218
219 Aws::String m_name;
220 bool m_nameHasBeenSet = false;
221
222 Aws::String m_namespaceId;
223 bool m_namespaceIdHasBeenSet = false;
224
225 Aws::String m_description;
226 bool m_descriptionHasBeenSet = false;
227
228 int m_instanceCount{0};
229 bool m_instanceCountHasBeenSet = false;
230
231 DnsConfig m_dnsConfig;
232 bool m_dnsConfigHasBeenSet = false;
233
235 bool m_typeHasBeenSet = false;
236
237 HealthCheckConfig m_healthCheckConfig;
238 bool m_healthCheckConfigHasBeenSet = false;
239
240 HealthCheckCustomConfig m_healthCheckCustomConfig;
241 bool m_healthCheckCustomConfigHasBeenSet = false;
242
243 Aws::Utils::DateTime m_createDate{};
244 bool m_createDateHasBeenSet = false;
245
246 Aws::String m_creatorRequestId;
247 bool m_creatorRequestIdHasBeenSet = false;
248 };
249
250} // namespace Model
251} // namespace ServiceDiscovery
252} // namespace Aws
AWS_SERVICEDISCOVERY_API Service(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetDescription() const
Definition Service.h:99
Service & WithCreatorRequestId(CreatorRequestIdT &&value)
Definition Service.h:209
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:162
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCreateDate(CreateDateT &&value)
Definition Service.h:192
const Aws::String & GetName() const
Definition Service.h:75
Service & WithHealthCheckConfig(HealthCheckConfigT &&value)
Definition Service.h:164
AWS_SERVICEDISCOVERY_API Service & operator=(Aws::Utils::Json::JsonView jsonValue)
const HealthCheckCustomConfig & GetHealthCheckCustomConfig() const
Definition Service.h:174
Service & WithInstanceCount(int value)
Definition Service.h:117
Service & WithDescription(DescriptionT &&value)
Definition Service.h:104
Service & WithName(NameT &&value)
Definition Service.h:80
const Aws::String & GetNamespaceId() const
Definition Service.h:87
bool HealthCheckCustomConfigHasBeenSet() const
Definition Service.h:175
const Aws::Utils::DateTime & GetCreateDate() const
Definition Service.h:189
void SetCreatorRequestId(CreatorRequestIdT &&value)
Definition Service.h:207
Service & WithArn(ArnT &&value)
Definition Service.h:68
void SetDescription(DescriptionT &&value)
Definition Service.h:102
const Aws::String & GetCreatorRequestId() const
Definition Service.h:204
const DnsConfig & GetDnsConfig() const
Definition Service.h:127
Service & WithCreateDate(CreateDateT &&value)
Definition Service.h:194
const HealthCheckConfig & GetHealthCheckConfig() const
Definition Service.h:159
Service & WithHealthCheckCustomConfig(HealthCheckCustomConfigT &&value)
Definition Service.h:179
AWS_SERVICEDISCOVERY_API Service()=default
Service & WithDnsConfig(DnsConfigT &&value)
Definition Service.h:132
void SetDnsConfig(DnsConfigT &&value)
Definition Service.h:130
void SetType(ServiceType value)
Definition Service.h:146
Service & WithNamespaceId(NamespaceIdT &&value)
Definition Service.h:92
void SetNamespaceId(NamespaceIdT &&value)
Definition Service.h:90
void SetHealthCheckCustomConfig(HealthCheckCustomConfigT &&value)
Definition Service.h:177
Service & WithType(ServiceType value)
Definition Service.h:147
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