AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceDetail.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/ec2/model/PayerResponsibility.h>
12#include <aws/ec2/model/DnsNameState.h>
13#include <aws/ec2/model/ServiceTypeDetail.h>
14#include <aws/ec2/model/PrivateDnsDetails.h>
15#include <aws/ec2/model/Tag.h>
16#include <aws/ec2/model/ServiceConnectivityType.h>
17#include <utility>
18
19namespace Aws
20{
21namespace Utils
22{
23namespace Xml
24{
25 class XmlNode;
26} // namespace Xml
27} // namespace Utils
28namespace EC2
29{
30namespace Model
31{
32
39 {
40 public:
41 AWS_EC2_API ServiceDetail();
42 AWS_EC2_API ServiceDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
43 AWS_EC2_API ServiceDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44
45 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
47
48
50
53 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
54 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
55 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
56 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
57 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
58 inline ServiceDetail& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
59 inline ServiceDetail& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
60 inline ServiceDetail& WithServiceName(const char* value) { SetServiceName(value); return *this;}
62
64
67 inline const Aws::String& GetServiceId() const{ return m_serviceId; }
68 inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
69 inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
70 inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
71 inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
72 inline ServiceDetail& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
73 inline ServiceDetail& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
74 inline ServiceDetail& WithServiceId(const char* value) { SetServiceId(value); return *this;}
76
78
81 inline const Aws::Vector<ServiceTypeDetail>& GetServiceType() const{ return m_serviceType; }
82 inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
83 inline void SetServiceType(const Aws::Vector<ServiceTypeDetail>& value) { m_serviceTypeHasBeenSet = true; m_serviceType = value; }
84 inline void SetServiceType(Aws::Vector<ServiceTypeDetail>&& value) { m_serviceTypeHasBeenSet = true; m_serviceType = std::move(value); }
85 inline ServiceDetail& WithServiceType(const Aws::Vector<ServiceTypeDetail>& value) { SetServiceType(value); return *this;}
86 inline ServiceDetail& WithServiceType(Aws::Vector<ServiceTypeDetail>&& value) { SetServiceType(std::move(value)); return *this;}
87 inline ServiceDetail& AddServiceType(const ServiceTypeDetail& value) { m_serviceTypeHasBeenSet = true; m_serviceType.push_back(value); return *this; }
88 inline ServiceDetail& AddServiceType(ServiceTypeDetail&& value) { m_serviceTypeHasBeenSet = true; m_serviceType.push_back(std::move(value)); return *this; }
90
92
95 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const{ return m_availabilityZones; }
96 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
97 inline void SetAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
98 inline void SetAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
100 inline ServiceDetail& WithAvailabilityZones(Aws::Vector<Aws::String>&& value) { SetAvailabilityZones(std::move(value)); return *this;}
101 inline ServiceDetail& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
102 inline ServiceDetail& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
103 inline ServiceDetail& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
105
107
110 inline const Aws::String& GetOwner() const{ return m_owner; }
111 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
112 inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; }
113 inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); }
114 inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); }
115 inline ServiceDetail& WithOwner(const Aws::String& value) { SetOwner(value); return *this;}
116 inline ServiceDetail& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;}
117 inline ServiceDetail& WithOwner(const char* value) { SetOwner(value); return *this;}
119
121
124 inline const Aws::Vector<Aws::String>& GetBaseEndpointDnsNames() const{ return m_baseEndpointDnsNames; }
125 inline bool BaseEndpointDnsNamesHasBeenSet() const { return m_baseEndpointDnsNamesHasBeenSet; }
126 inline void SetBaseEndpointDnsNames(const Aws::Vector<Aws::String>& value) { m_baseEndpointDnsNamesHasBeenSet = true; m_baseEndpointDnsNames = value; }
127 inline void SetBaseEndpointDnsNames(Aws::Vector<Aws::String>&& value) { m_baseEndpointDnsNamesHasBeenSet = true; m_baseEndpointDnsNames = std::move(value); }
130 inline ServiceDetail& AddBaseEndpointDnsNames(const Aws::String& value) { m_baseEndpointDnsNamesHasBeenSet = true; m_baseEndpointDnsNames.push_back(value); return *this; }
131 inline ServiceDetail& AddBaseEndpointDnsNames(Aws::String&& value) { m_baseEndpointDnsNamesHasBeenSet = true; m_baseEndpointDnsNames.push_back(std::move(value)); return *this; }
132 inline ServiceDetail& AddBaseEndpointDnsNames(const char* value) { m_baseEndpointDnsNamesHasBeenSet = true; m_baseEndpointDnsNames.push_back(value); return *this; }
134
136
139 inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; }
140 inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; }
141 inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; }
142 inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); }
143 inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); }
144 inline ServiceDetail& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;}
145 inline ServiceDetail& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;}
146 inline ServiceDetail& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;}
148
150
153 inline const Aws::Vector<PrivateDnsDetails>& GetPrivateDnsNames() const{ return m_privateDnsNames; }
154 inline bool PrivateDnsNamesHasBeenSet() const { return m_privateDnsNamesHasBeenSet; }
155 inline void SetPrivateDnsNames(const Aws::Vector<PrivateDnsDetails>& value) { m_privateDnsNamesHasBeenSet = true; m_privateDnsNames = value; }
156 inline void SetPrivateDnsNames(Aws::Vector<PrivateDnsDetails>&& value) { m_privateDnsNamesHasBeenSet = true; m_privateDnsNames = std::move(value); }
158 inline ServiceDetail& WithPrivateDnsNames(Aws::Vector<PrivateDnsDetails>&& value) { SetPrivateDnsNames(std::move(value)); return *this;}
159 inline ServiceDetail& AddPrivateDnsNames(const PrivateDnsDetails& value) { m_privateDnsNamesHasBeenSet = true; m_privateDnsNames.push_back(value); return *this; }
160 inline ServiceDetail& AddPrivateDnsNames(PrivateDnsDetails&& value) { m_privateDnsNamesHasBeenSet = true; m_privateDnsNames.push_back(std::move(value)); return *this; }
162
164
167 inline bool GetVpcEndpointPolicySupported() const{ return m_vpcEndpointPolicySupported; }
168 inline bool VpcEndpointPolicySupportedHasBeenSet() const { return m_vpcEndpointPolicySupportedHasBeenSet; }
169 inline void SetVpcEndpointPolicySupported(bool value) { m_vpcEndpointPolicySupportedHasBeenSet = true; m_vpcEndpointPolicySupported = value; }
172
174
178 inline bool GetAcceptanceRequired() const{ return m_acceptanceRequired; }
179 inline bool AcceptanceRequiredHasBeenSet() const { return m_acceptanceRequiredHasBeenSet; }
180 inline void SetAcceptanceRequired(bool value) { m_acceptanceRequiredHasBeenSet = true; m_acceptanceRequired = value; }
181 inline ServiceDetail& WithAcceptanceRequired(bool value) { SetAcceptanceRequired(value); return *this;}
183
185
189 inline bool GetManagesVpcEndpoints() const{ return m_managesVpcEndpoints; }
190 inline bool ManagesVpcEndpointsHasBeenSet() const { return m_managesVpcEndpointsHasBeenSet; }
191 inline void SetManagesVpcEndpoints(bool value) { m_managesVpcEndpointsHasBeenSet = true; m_managesVpcEndpoints = value; }
192 inline ServiceDetail& WithManagesVpcEndpoints(bool value) { SetManagesVpcEndpoints(value); return *this;}
194
196
199 inline const PayerResponsibility& GetPayerResponsibility() const{ return m_payerResponsibility; }
200 inline bool PayerResponsibilityHasBeenSet() const { return m_payerResponsibilityHasBeenSet; }
201 inline void SetPayerResponsibility(const PayerResponsibility& value) { m_payerResponsibilityHasBeenSet = true; m_payerResponsibility = value; }
202 inline void SetPayerResponsibility(PayerResponsibility&& value) { m_payerResponsibilityHasBeenSet = true; m_payerResponsibility = std::move(value); }
204 inline ServiceDetail& WithPayerResponsibility(PayerResponsibility&& value) { SetPayerResponsibility(std::move(value)); return *this;}
206
208
211 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
212 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
213 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
214 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
215 inline ServiceDetail& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
216 inline ServiceDetail& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
217 inline ServiceDetail& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
218 inline ServiceDetail& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
220
222
227 inline const DnsNameState& GetPrivateDnsNameVerificationState() const{ return m_privateDnsNameVerificationState; }
228 inline bool PrivateDnsNameVerificationStateHasBeenSet() const { return m_privateDnsNameVerificationStateHasBeenSet; }
229 inline void SetPrivateDnsNameVerificationState(const DnsNameState& value) { m_privateDnsNameVerificationStateHasBeenSet = true; m_privateDnsNameVerificationState = value; }
230 inline void SetPrivateDnsNameVerificationState(DnsNameState&& value) { m_privateDnsNameVerificationStateHasBeenSet = true; m_privateDnsNameVerificationState = std::move(value); }
234
236
239 inline const Aws::Vector<ServiceConnectivityType>& GetSupportedIpAddressTypes() const{ return m_supportedIpAddressTypes; }
240 inline bool SupportedIpAddressTypesHasBeenSet() const { return m_supportedIpAddressTypesHasBeenSet; }
241 inline void SetSupportedIpAddressTypes(const Aws::Vector<ServiceConnectivityType>& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes = value; }
242 inline void SetSupportedIpAddressTypes(Aws::Vector<ServiceConnectivityType>&& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes = std::move(value); }
245 inline ServiceDetail& AddSupportedIpAddressTypes(const ServiceConnectivityType& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes.push_back(value); return *this; }
246 inline ServiceDetail& AddSupportedIpAddressTypes(ServiceConnectivityType&& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes.push_back(std::move(value)); return *this; }
248 private:
249
250 Aws::String m_serviceName;
251 bool m_serviceNameHasBeenSet = false;
252
253 Aws::String m_serviceId;
254 bool m_serviceIdHasBeenSet = false;
255
256 Aws::Vector<ServiceTypeDetail> m_serviceType;
257 bool m_serviceTypeHasBeenSet = false;
258
259 Aws::Vector<Aws::String> m_availabilityZones;
260 bool m_availabilityZonesHasBeenSet = false;
261
262 Aws::String m_owner;
263 bool m_ownerHasBeenSet = false;
264
265 Aws::Vector<Aws::String> m_baseEndpointDnsNames;
266 bool m_baseEndpointDnsNamesHasBeenSet = false;
267
268 Aws::String m_privateDnsName;
269 bool m_privateDnsNameHasBeenSet = false;
270
271 Aws::Vector<PrivateDnsDetails> m_privateDnsNames;
272 bool m_privateDnsNamesHasBeenSet = false;
273
274 bool m_vpcEndpointPolicySupported;
275 bool m_vpcEndpointPolicySupportedHasBeenSet = false;
276
277 bool m_acceptanceRequired;
278 bool m_acceptanceRequiredHasBeenSet = false;
279
280 bool m_managesVpcEndpoints;
281 bool m_managesVpcEndpointsHasBeenSet = false;
282
283 PayerResponsibility m_payerResponsibility;
284 bool m_payerResponsibilityHasBeenSet = false;
285
286 Aws::Vector<Tag> m_tags;
287 bool m_tagsHasBeenSet = false;
288
289 DnsNameState m_privateDnsNameVerificationState;
290 bool m_privateDnsNameVerificationStateHasBeenSet = false;
291
292 Aws::Vector<ServiceConnectivityType> m_supportedIpAddressTypes;
293 bool m_supportedIpAddressTypesHasBeenSet = false;
294 };
295
296} // namespace Model
297} // namespace EC2
298} // namespace Aws
ServiceDetail & WithServiceName(Aws::String &&value)
ServiceDetail & WithSupportedIpAddressTypes(Aws::Vector< ServiceConnectivityType > &&value)
ServiceDetail & AddBaseEndpointDnsNames(const Aws::String &value)
ServiceDetail & AddBaseEndpointDnsNames(Aws::String &&value)
ServiceDetail & WithOwner(Aws::String &&value)
ServiceDetail & WithPrivateDnsName(const char *value)
void SetSupportedIpAddressTypes(Aws::Vector< ServiceConnectivityType > &&value)
ServiceDetail & AddPrivateDnsNames(PrivateDnsDetails &&value)
ServiceDetail & AddPrivateDnsNames(const PrivateDnsDetails &value)
ServiceDetail & AddServiceType(const ServiceTypeDetail &value)
void SetPayerResponsibility(const PayerResponsibility &value)
bool PrivateDnsNameVerificationStateHasBeenSet() const
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetOwner() const
ServiceDetail & WithServiceName(const char *value)
void SetManagesVpcEndpoints(bool value)
ServiceDetail & WithSupportedIpAddressTypes(const Aws::Vector< ServiceConnectivityType > &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetServiceId(Aws::String &&value)
ServiceDetail & WithBaseEndpointDnsNames(Aws::Vector< Aws::String > &&value)
void SetServiceId(const char *value)
ServiceDetail & WithTags(const Aws::Vector< Tag > &value)
const PayerResponsibility & GetPayerResponsibility() const
void SetBaseEndpointDnsNames(const Aws::Vector< Aws::String > &value)
const Aws::String & GetServiceId() const
ServiceDetail & WithServiceId(const char *value)
void SetServiceName(const Aws::String &value)
void SetPrivateDnsNameVerificationState(DnsNameState &&value)
ServiceDetail & WithServiceName(const Aws::String &value)
ServiceDetail & AddAvailabilityZones(const char *value)
void SetSupportedIpAddressTypes(const Aws::Vector< ServiceConnectivityType > &value)
void SetTags(const Aws::Vector< Tag > &value)
ServiceDetail & WithManagesVpcEndpoints(bool value)
void SetPrivateDnsNames(Aws::Vector< PrivateDnsDetails > &&value)
ServiceDetail & AddSupportedIpAddressTypes(const ServiceConnectivityType &value)
ServiceDetail & AddTags(const Tag &value)
ServiceDetail & WithPrivateDnsNames(Aws::Vector< PrivateDnsDetails > &&value)
void SetPrivateDnsName(Aws::String &&value)
ServiceDetail & WithVpcEndpointPolicySupported(bool value)
ServiceDetail & WithPayerResponsibility(PayerResponsibility &&value)
ServiceDetail & WithPrivateDnsName(const Aws::String &value)
void SetVpcEndpointPolicySupported(bool value)
AWS_EC2_API ServiceDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
ServiceDetail & WithServiceId(const Aws::String &value)
ServiceDetail & WithServiceType(const Aws::Vector< ServiceTypeDetail > &value)
ServiceDetail & AddTags(Tag &&value)
const Aws::Vector< Tag > & GetTags() const
void SetServiceName(const char *value)
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
ServiceDetail & AddServiceType(ServiceTypeDetail &&value)
void SetAcceptanceRequired(bool value)
bool SupportedIpAddressTypesHasBeenSet() const
const Aws::String & GetPrivateDnsName() const
void SetPrivateDnsName(const Aws::String &value)
bool BaseEndpointDnsNamesHasBeenSet() const
ServiceDetail & WithAcceptanceRequired(bool value)
const Aws::Vector< PrivateDnsDetails > & GetPrivateDnsNames() const
void SetOwner(Aws::String &&value)
void SetOwner(const Aws::String &value)
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
ServiceDetail & WithBaseEndpointDnsNames(const Aws::Vector< Aws::String > &value)
ServiceDetail & WithTags(Aws::Vector< Tag > &&value)
ServiceDetail & AddAvailabilityZones(const Aws::String &value)
ServiceDetail & AddBaseEndpointDnsNames(const char *value)
const DnsNameState & GetPrivateDnsNameVerificationState() const
ServiceDetail & WithOwner(const char *value)
bool VpcEndpointPolicySupportedHasBeenSet() const
ServiceDetail & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
void SetAvailabilityZones(Aws::Vector< Aws::String > &&value)
void SetPrivateDnsNameVerificationState(const DnsNameState &value)
const Aws::Vector< ServiceConnectivityType > & GetSupportedIpAddressTypes() const
void SetPrivateDnsNames(const Aws::Vector< PrivateDnsDetails > &value)
void SetServiceType(const Aws::Vector< ServiceTypeDetail > &value)
ServiceDetail & WithPrivateDnsNames(const Aws::Vector< PrivateDnsDetails > &value)
void SetPrivateDnsName(const char *value)
ServiceDetail & WithPrivateDnsNameVerificationState(const DnsNameState &value)
ServiceDetail & WithServiceType(Aws::Vector< ServiceTypeDetail > &&value)
ServiceDetail & WithPrivateDnsNameVerificationState(DnsNameState &&value)
void SetTags(Aws::Vector< Tag > &&value)
ServiceDetail & WithServiceId(Aws::String &&value)
ServiceDetail & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
ServiceDetail & AddSupportedIpAddressTypes(ServiceConnectivityType &&value)
const Aws::Vector< ServiceTypeDetail > & GetServiceType() const
void SetServiceId(const Aws::String &value)
void SetServiceType(Aws::Vector< ServiceTypeDetail > &&value)
void SetOwner(const char *value)
ServiceDetail & AddAvailabilityZones(Aws::String &&value)
const Aws::String & GetServiceName() const
ServiceDetail & WithPayerResponsibility(const PayerResponsibility &value)
ServiceDetail & WithPrivateDnsName(Aws::String &&value)
void SetServiceName(Aws::String &&value)
void SetPayerResponsibility(PayerResponsibility &&value)
const Aws::Vector< Aws::String > & GetBaseEndpointDnsNames() const
void SetBaseEndpointDnsNames(Aws::Vector< Aws::String > &&value)
AWS_EC2_API ServiceDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ServiceDetail & WithOwner(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream