AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 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 ServiceSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
56 inline ServiceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
57 inline ServiceSummary& 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 ServiceSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
71 inline ServiceSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
72 inline ServiceSummary& 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 ServiceSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
85 inline ServiceSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
86 inline ServiceSummary& WithName(const char* value) { SetName(value); return *this;}
88
90
98 inline const ServiceType& GetType() const{ return m_type; }
99 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
100 inline void SetType(const ServiceType& value) { m_typeHasBeenSet = true; m_type = value; }
101 inline void SetType(ServiceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
102 inline ServiceSummary& WithType(const ServiceType& value) { SetType(value); return *this;}
103 inline ServiceSummary& WithType(ServiceType&& value) { SetType(std::move(value)); return *this;}
105
107
110 inline const Aws::String& GetDescription() const{ return m_description; }
111 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
112 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
113 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
114 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
115 inline ServiceSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
116 inline ServiceSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
117 inline ServiceSummary& WithDescription(const char* value) { SetDescription(value); return *this;}
119
121
127 inline int GetInstanceCount() const{ return m_instanceCount; }
128 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
129 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
130 inline ServiceSummary& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
132
134
138 inline const DnsConfig& GetDnsConfig() const{ return m_dnsConfig; }
139 inline bool DnsConfigHasBeenSet() const { return m_dnsConfigHasBeenSet; }
140 inline void SetDnsConfig(const DnsConfig& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = value; }
141 inline void SetDnsConfig(DnsConfig&& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = std::move(value); }
142 inline ServiceSummary& WithDnsConfig(const DnsConfig& value) { SetDnsConfig(value); return *this;}
143 inline ServiceSummary& WithDnsConfig(DnsConfig&& value) { SetDnsConfig(std::move(value)); return *this;}
145
147
152 inline const HealthCheckConfig& GetHealthCheckConfig() const{ return m_healthCheckConfig; }
153 inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; }
154 inline void SetHealthCheckConfig(const HealthCheckConfig& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = value; }
155 inline void SetHealthCheckConfig(HealthCheckConfig&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = std::move(value); }
156 inline ServiceSummary& WithHealthCheckConfig(const HealthCheckConfig& value) { SetHealthCheckConfig(value); return *this;}
157 inline ServiceSummary& WithHealthCheckConfig(HealthCheckConfig&& value) { SetHealthCheckConfig(std::move(value)); return *this;}
159
161
175 inline const HealthCheckCustomConfig& GetHealthCheckCustomConfig() const{ return m_healthCheckCustomConfig; }
176 inline bool HealthCheckCustomConfigHasBeenSet() const { return m_healthCheckCustomConfigHasBeenSet; }
177 inline void SetHealthCheckCustomConfig(const HealthCheckCustomConfig& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = value; }
178 inline void SetHealthCheckCustomConfig(HealthCheckCustomConfig&& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = std::move(value); }
182
184
187 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
188 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
189 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
190 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
191 inline ServiceSummary& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
192 inline ServiceSummary& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
194 private:
195
196 Aws::String m_id;
197 bool m_idHasBeenSet = false;
198
199 Aws::String m_arn;
200 bool m_arnHasBeenSet = false;
201
202 Aws::String m_name;
203 bool m_nameHasBeenSet = false;
204
205 ServiceType m_type;
206 bool m_typeHasBeenSet = false;
207
208 Aws::String m_description;
209 bool m_descriptionHasBeenSet = false;
210
211 int m_instanceCount;
212 bool m_instanceCountHasBeenSet = false;
213
214 DnsConfig m_dnsConfig;
215 bool m_dnsConfigHasBeenSet = false;
216
217 HealthCheckConfig m_healthCheckConfig;
218 bool m_healthCheckConfigHasBeenSet = false;
219
220 HealthCheckCustomConfig m_healthCheckCustomConfig;
221 bool m_healthCheckCustomConfigHasBeenSet = false;
222
223 Aws::Utils::DateTime m_createDate;
224 bool m_createDateHasBeenSet = false;
225 };
226
227} // namespace Model
228} // namespace ServiceDiscovery
229} // namespace Aws
void SetArn(const Aws::String &value)
ServiceSummary & WithDnsConfig(const DnsConfig &value)
ServiceSummary & WithDescription(Aws::String &&value)
void SetName(const Aws::String &value)
void SetCreateDate(Aws::Utils::DateTime &&value)
ServiceSummary & WithCreateDate(const Aws::Utils::DateTime &value)
ServiceSummary & WithId(const Aws::String &value)
const HealthCheckConfig & GetHealthCheckConfig() const
ServiceSummary & WithCreateDate(Aws::Utils::DateTime &&value)
void SetDnsConfig(const DnsConfig &value)
ServiceSummary & WithType(ServiceType &&value)
ServiceSummary & WithHealthCheckConfig(const HealthCheckConfig &value)
ServiceSummary & WithArn(const char *value)
void SetDescription(const Aws::String &value)
AWS_SERVICEDISCOVERY_API Aws::Utils::Json::JsonValue Jsonize() const
void SetHealthCheckConfig(const HealthCheckConfig &value)
const HealthCheckCustomConfig & GetHealthCheckCustomConfig() const
void SetHealthCheckConfig(HealthCheckConfig &&value)
const Aws::Utils::DateTime & GetCreateDate() const
AWS_SERVICEDISCOVERY_API ServiceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SERVICEDISCOVERY_API ServiceSummary(Aws::Utils::Json::JsonView jsonValue)
ServiceSummary & WithName(const Aws::String &value)
ServiceSummary & WithName(Aws::String &&value)
ServiceSummary & WithArn(const Aws::String &value)
void SetCreateDate(const Aws::Utils::DateTime &value)
ServiceSummary & WithId(const char *value)
AWS_SERVICEDISCOVERY_API ServiceSummary()
ServiceSummary & WithArn(Aws::String &&value)
ServiceSummary & WithId(Aws::String &&value)
ServiceSummary & WithDescription(const char *value)
ServiceSummary & WithName(const char *value)
ServiceSummary & WithHealthCheckConfig(HealthCheckConfig &&value)
ServiceSummary & WithHealthCheckCustomConfig(const HealthCheckCustomConfig &value)
void SetType(const ServiceType &value)
ServiceSummary & WithType(const ServiceType &value)
void SetHealthCheckCustomConfig(const HealthCheckCustomConfig &value)
void SetId(const Aws::String &value)
ServiceSummary & WithDnsConfig(DnsConfig &&value)
void SetHealthCheckCustomConfig(HealthCheckCustomConfig &&value)
ServiceSummary & WithDescription(const Aws::String &value)
ServiceSummary & WithHealthCheckCustomConfig(HealthCheckCustomConfig &&value)
ServiceSummary & WithInstanceCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue