AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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
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 ServiceSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
82
84
92 inline ServiceType GetType() const { return m_type; }
93 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
94 inline void SetType(ServiceType value) { m_typeHasBeenSet = true; m_type = value; }
95 inline ServiceSummary& WithType(ServiceType value) { SetType(value); return *this;}
97
99
102 inline const Aws::String& GetDescription() const { return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 template<typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
106 template<typename DescriptionT = Aws::String>
107 ServiceSummary& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
109
111
117 inline int GetInstanceCount() const { return m_instanceCount; }
118 inline bool InstanceCountHasBeenSet() const { return m_instanceCountHasBeenSet; }
119 inline void SetInstanceCount(int value) { m_instanceCountHasBeenSet = true; m_instanceCount = value; }
120 inline ServiceSummary& WithInstanceCount(int value) { SetInstanceCount(value); return *this;}
122
124
128 inline const DnsConfig& GetDnsConfig() const { return m_dnsConfig; }
129 inline bool DnsConfigHasBeenSet() const { return m_dnsConfigHasBeenSet; }
130 template<typename DnsConfigT = DnsConfig>
131 void SetDnsConfig(DnsConfigT&& value) { m_dnsConfigHasBeenSet = true; m_dnsConfig = std::forward<DnsConfigT>(value); }
132 template<typename DnsConfigT = DnsConfig>
133 ServiceSummary& WithDnsConfig(DnsConfigT&& value) { SetDnsConfig(std::forward<DnsConfigT>(value)); return *this;}
135
137
142 inline const HealthCheckConfig& GetHealthCheckConfig() const { return m_healthCheckConfig; }
143 inline bool HealthCheckConfigHasBeenSet() const { return m_healthCheckConfigHasBeenSet; }
144 template<typename HealthCheckConfigT = HealthCheckConfig>
145 void SetHealthCheckConfig(HealthCheckConfigT&& value) { m_healthCheckConfigHasBeenSet = true; m_healthCheckConfig = std::forward<HealthCheckConfigT>(value); }
146 template<typename HealthCheckConfigT = HealthCheckConfig>
147 ServiceSummary& WithHealthCheckConfig(HealthCheckConfigT&& value) { SetHealthCheckConfig(std::forward<HealthCheckConfigT>(value)); return *this;}
149
151
165 inline const HealthCheckCustomConfig& GetHealthCheckCustomConfig() const { return m_healthCheckCustomConfig; }
166 inline bool HealthCheckCustomConfigHasBeenSet() const { return m_healthCheckCustomConfigHasBeenSet; }
167 template<typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
168 void SetHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) { m_healthCheckCustomConfigHasBeenSet = true; m_healthCheckCustomConfig = std::forward<HealthCheckCustomConfigT>(value); }
169 template<typename HealthCheckCustomConfigT = HealthCheckCustomConfig>
170 ServiceSummary& WithHealthCheckCustomConfig(HealthCheckCustomConfigT&& value) { SetHealthCheckCustomConfig(std::forward<HealthCheckCustomConfigT>(value)); return *this;}
172
174
177 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
178 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
179 template<typename CreateDateT = Aws::Utils::DateTime>
180 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
181 template<typename CreateDateT = Aws::Utils::DateTime>
182 ServiceSummary& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
184 private:
185
186 Aws::String m_id;
187 bool m_idHasBeenSet = false;
188
189 Aws::String m_arn;
190 bool m_arnHasBeenSet = false;
191
192 Aws::String m_name;
193 bool m_nameHasBeenSet = false;
194
196 bool m_typeHasBeenSet = false;
197
198 Aws::String m_description;
199 bool m_descriptionHasBeenSet = false;
200
201 int m_instanceCount{0};
202 bool m_instanceCountHasBeenSet = false;
203
204 DnsConfig m_dnsConfig;
205 bool m_dnsConfigHasBeenSet = false;
206
207 HealthCheckConfig m_healthCheckConfig;
208 bool m_healthCheckConfigHasBeenSet = false;
209
210 HealthCheckCustomConfig m_healthCheckCustomConfig;
211 bool m_healthCheckCustomConfigHasBeenSet = false;
212
213 Aws::Utils::DateTime m_createDate{};
214 bool m_createDateHasBeenSet = false;
215 };
216
217} // namespace Model
218} // namespace ServiceDiscovery
219} // namespace Aws
AWS_SERVICEDISCOVERY_API ServiceSummary()=default
ServiceSummary & WithArn(ArnT &&value)
ServiceSummary & WithHealthCheckConfig(HealthCheckConfigT &&value)
const HealthCheckConfig & GetHealthCheckConfig() 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)
ServiceSummary & WithHealthCheckCustomConfig(HealthCheckCustomConfigT &&value)
ServiceSummary & WithName(NameT &&value)
void SetHealthCheckConfig(HealthCheckConfigT &&value)
ServiceSummary & WithType(ServiceType value)
ServiceSummary & WithInstanceCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue