AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ServiceConfiguration.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ec2/model/ServiceState.h>
12#include <aws/ec2/model/PrivateDnsNameConfiguration.h>
13#include <aws/ec2/model/PayerResponsibility.h>
14#include <aws/ec2/model/ServiceTypeDetail.h>
15#include <aws/ec2/model/ServiceConnectivityType.h>
16#include <aws/ec2/model/Tag.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
40 {
41 public:
42 AWS_EC2_API ServiceConfiguration();
45
46 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
48
49
51
54 inline const Aws::Vector<ServiceTypeDetail>& GetServiceType() const{ return m_serviceType; }
55 inline bool ServiceTypeHasBeenSet() const { return m_serviceTypeHasBeenSet; }
56 inline void SetServiceType(const Aws::Vector<ServiceTypeDetail>& value) { m_serviceTypeHasBeenSet = true; m_serviceType = value; }
57 inline void SetServiceType(Aws::Vector<ServiceTypeDetail>&& value) { m_serviceTypeHasBeenSet = true; m_serviceType = std::move(value); }
59 inline ServiceConfiguration& WithServiceType(Aws::Vector<ServiceTypeDetail>&& value) { SetServiceType(std::move(value)); return *this;}
60 inline ServiceConfiguration& AddServiceType(const ServiceTypeDetail& value) { m_serviceTypeHasBeenSet = true; m_serviceType.push_back(value); return *this; }
61 inline ServiceConfiguration& AddServiceType(ServiceTypeDetail&& value) { m_serviceTypeHasBeenSet = true; m_serviceType.push_back(std::move(value)); return *this; }
63
65
68 inline const Aws::String& GetServiceId() const{ return m_serviceId; }
69 inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; }
70 inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; }
71 inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); }
72 inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); }
73 inline ServiceConfiguration& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;}
74 inline ServiceConfiguration& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;}
75 inline ServiceConfiguration& WithServiceId(const char* value) { SetServiceId(value); return *this;}
77
79
82 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
83 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
84 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
85 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
86 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
87 inline ServiceConfiguration& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
88 inline ServiceConfiguration& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
89 inline ServiceConfiguration& WithServiceName(const char* value) { SetServiceName(value); return *this;}
91
93
96 inline const ServiceState& GetServiceState() const{ return m_serviceState; }
97 inline bool ServiceStateHasBeenSet() const { return m_serviceStateHasBeenSet; }
98 inline void SetServiceState(const ServiceState& value) { m_serviceStateHasBeenSet = true; m_serviceState = value; }
99 inline void SetServiceState(ServiceState&& value) { m_serviceStateHasBeenSet = true; m_serviceState = std::move(value); }
100 inline ServiceConfiguration& WithServiceState(const ServiceState& value) { SetServiceState(value); return *this;}
101 inline ServiceConfiguration& WithServiceState(ServiceState&& value) { SetServiceState(std::move(value)); return *this;}
103
105
108 inline const Aws::Vector<Aws::String>& GetAvailabilityZones() const{ return m_availabilityZones; }
109 inline bool AvailabilityZonesHasBeenSet() const { return m_availabilityZonesHasBeenSet; }
110 inline void SetAvailabilityZones(const Aws::Vector<Aws::String>& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = value; }
111 inline void SetAvailabilityZones(Aws::Vector<Aws::String>&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones = std::move(value); }
114 inline ServiceConfiguration& AddAvailabilityZones(const Aws::String& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
115 inline ServiceConfiguration& AddAvailabilityZones(Aws::String&& value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(std::move(value)); return *this; }
116 inline ServiceConfiguration& AddAvailabilityZones(const char* value) { m_availabilityZonesHasBeenSet = true; m_availabilityZones.push_back(value); return *this; }
118
120
124 inline bool GetAcceptanceRequired() const{ return m_acceptanceRequired; }
125 inline bool AcceptanceRequiredHasBeenSet() const { return m_acceptanceRequiredHasBeenSet; }
126 inline void SetAcceptanceRequired(bool value) { m_acceptanceRequiredHasBeenSet = true; m_acceptanceRequired = value; }
127 inline ServiceConfiguration& WithAcceptanceRequired(bool value) { SetAcceptanceRequired(value); return *this;}
129
131
135 inline bool GetManagesVpcEndpoints() const{ return m_managesVpcEndpoints; }
136 inline bool ManagesVpcEndpointsHasBeenSet() const { return m_managesVpcEndpointsHasBeenSet; }
137 inline void SetManagesVpcEndpoints(bool value) { m_managesVpcEndpointsHasBeenSet = true; m_managesVpcEndpoints = value; }
138 inline ServiceConfiguration& WithManagesVpcEndpoints(bool value) { SetManagesVpcEndpoints(value); return *this;}
140
142
146 inline const Aws::Vector<Aws::String>& GetNetworkLoadBalancerArns() const{ return m_networkLoadBalancerArns; }
147 inline bool NetworkLoadBalancerArnsHasBeenSet() const { return m_networkLoadBalancerArnsHasBeenSet; }
148 inline void SetNetworkLoadBalancerArns(const Aws::Vector<Aws::String>& value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns = value; }
149 inline void SetNetworkLoadBalancerArns(Aws::Vector<Aws::String>&& value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns = std::move(value); }
152 inline ServiceConfiguration& AddNetworkLoadBalancerArns(const Aws::String& value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns.push_back(value); return *this; }
153 inline ServiceConfiguration& AddNetworkLoadBalancerArns(Aws::String&& value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns.push_back(std::move(value)); return *this; }
154 inline ServiceConfiguration& AddNetworkLoadBalancerArns(const char* value) { m_networkLoadBalancerArnsHasBeenSet = true; m_networkLoadBalancerArns.push_back(value); return *this; }
156
158
162 inline const Aws::Vector<Aws::String>& GetGatewayLoadBalancerArns() const{ return m_gatewayLoadBalancerArns; }
163 inline bool GatewayLoadBalancerArnsHasBeenSet() const { return m_gatewayLoadBalancerArnsHasBeenSet; }
164 inline void SetGatewayLoadBalancerArns(const Aws::Vector<Aws::String>& value) { m_gatewayLoadBalancerArnsHasBeenSet = true; m_gatewayLoadBalancerArns = value; }
165 inline void SetGatewayLoadBalancerArns(Aws::Vector<Aws::String>&& value) { m_gatewayLoadBalancerArnsHasBeenSet = true; m_gatewayLoadBalancerArns = std::move(value); }
168 inline ServiceConfiguration& AddGatewayLoadBalancerArns(const Aws::String& value) { m_gatewayLoadBalancerArnsHasBeenSet = true; m_gatewayLoadBalancerArns.push_back(value); return *this; }
169 inline ServiceConfiguration& AddGatewayLoadBalancerArns(Aws::String&& value) { m_gatewayLoadBalancerArnsHasBeenSet = true; m_gatewayLoadBalancerArns.push_back(std::move(value)); return *this; }
170 inline ServiceConfiguration& AddGatewayLoadBalancerArns(const char* value) { m_gatewayLoadBalancerArnsHasBeenSet = true; m_gatewayLoadBalancerArns.push_back(value); return *this; }
172
174
177 inline const Aws::Vector<ServiceConnectivityType>& GetSupportedIpAddressTypes() const{ return m_supportedIpAddressTypes; }
178 inline bool SupportedIpAddressTypesHasBeenSet() const { return m_supportedIpAddressTypesHasBeenSet; }
179 inline void SetSupportedIpAddressTypes(const Aws::Vector<ServiceConnectivityType>& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes = value; }
180 inline void SetSupportedIpAddressTypes(Aws::Vector<ServiceConnectivityType>&& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes = std::move(value); }
183 inline ServiceConfiguration& AddSupportedIpAddressTypes(const ServiceConnectivityType& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes.push_back(value); return *this; }
184 inline ServiceConfiguration& AddSupportedIpAddressTypes(ServiceConnectivityType&& value) { m_supportedIpAddressTypesHasBeenSet = true; m_supportedIpAddressTypes.push_back(std::move(value)); return *this; }
186
188
191 inline const Aws::Vector<Aws::String>& GetBaseEndpointDnsNames() const{ return m_baseEndpointDnsNames; }
192 inline bool BaseEndpointDnsNamesHasBeenSet() const { return m_baseEndpointDnsNamesHasBeenSet; }
193 inline void SetBaseEndpointDnsNames(const Aws::Vector<Aws::String>& value) { m_baseEndpointDnsNamesHasBeenSet = true; m_baseEndpointDnsNames = value; }
194 inline void SetBaseEndpointDnsNames(Aws::Vector<Aws::String>&& value) { m_baseEndpointDnsNamesHasBeenSet = true; m_baseEndpointDnsNames = std::move(value); }
197 inline ServiceConfiguration& AddBaseEndpointDnsNames(const Aws::String& value) { m_baseEndpointDnsNamesHasBeenSet = true; m_baseEndpointDnsNames.push_back(value); return *this; }
198 inline ServiceConfiguration& AddBaseEndpointDnsNames(Aws::String&& value) { m_baseEndpointDnsNamesHasBeenSet = true; m_baseEndpointDnsNames.push_back(std::move(value)); return *this; }
199 inline ServiceConfiguration& AddBaseEndpointDnsNames(const char* value) { m_baseEndpointDnsNamesHasBeenSet = true; m_baseEndpointDnsNames.push_back(value); return *this; }
201
203
206 inline const Aws::String& GetPrivateDnsName() const{ return m_privateDnsName; }
207 inline bool PrivateDnsNameHasBeenSet() const { return m_privateDnsNameHasBeenSet; }
208 inline void SetPrivateDnsName(const Aws::String& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = value; }
209 inline void SetPrivateDnsName(Aws::String&& value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName = std::move(value); }
210 inline void SetPrivateDnsName(const char* value) { m_privateDnsNameHasBeenSet = true; m_privateDnsName.assign(value); }
211 inline ServiceConfiguration& WithPrivateDnsName(const Aws::String& value) { SetPrivateDnsName(value); return *this;}
212 inline ServiceConfiguration& WithPrivateDnsName(Aws::String&& value) { SetPrivateDnsName(std::move(value)); return *this;}
213 inline ServiceConfiguration& WithPrivateDnsName(const char* value) { SetPrivateDnsName(value); return *this;}
215
217
220 inline const PrivateDnsNameConfiguration& GetPrivateDnsNameConfiguration() const{ return m_privateDnsNameConfiguration; }
221 inline bool PrivateDnsNameConfigurationHasBeenSet() const { return m_privateDnsNameConfigurationHasBeenSet; }
222 inline void SetPrivateDnsNameConfiguration(const PrivateDnsNameConfiguration& value) { m_privateDnsNameConfigurationHasBeenSet = true; m_privateDnsNameConfiguration = value; }
223 inline void SetPrivateDnsNameConfiguration(PrivateDnsNameConfiguration&& value) { m_privateDnsNameConfigurationHasBeenSet = true; m_privateDnsNameConfiguration = std::move(value); }
227
229
232 inline const PayerResponsibility& GetPayerResponsibility() const{ return m_payerResponsibility; }
233 inline bool PayerResponsibilityHasBeenSet() const { return m_payerResponsibilityHasBeenSet; }
234 inline void SetPayerResponsibility(const PayerResponsibility& value) { m_payerResponsibilityHasBeenSet = true; m_payerResponsibility = value; }
235 inline void SetPayerResponsibility(PayerResponsibility&& value) { m_payerResponsibilityHasBeenSet = true; m_payerResponsibility = std::move(value); }
239
241
244 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
245 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
246 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
247 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
248 inline ServiceConfiguration& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
249 inline ServiceConfiguration& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
250 inline ServiceConfiguration& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
251 inline ServiceConfiguration& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
253 private:
254
255 Aws::Vector<ServiceTypeDetail> m_serviceType;
256 bool m_serviceTypeHasBeenSet = false;
257
258 Aws::String m_serviceId;
259 bool m_serviceIdHasBeenSet = false;
260
261 Aws::String m_serviceName;
262 bool m_serviceNameHasBeenSet = false;
263
264 ServiceState m_serviceState;
265 bool m_serviceStateHasBeenSet = false;
266
267 Aws::Vector<Aws::String> m_availabilityZones;
268 bool m_availabilityZonesHasBeenSet = false;
269
270 bool m_acceptanceRequired;
271 bool m_acceptanceRequiredHasBeenSet = false;
272
273 bool m_managesVpcEndpoints;
274 bool m_managesVpcEndpointsHasBeenSet = false;
275
276 Aws::Vector<Aws::String> m_networkLoadBalancerArns;
277 bool m_networkLoadBalancerArnsHasBeenSet = false;
278
279 Aws::Vector<Aws::String> m_gatewayLoadBalancerArns;
280 bool m_gatewayLoadBalancerArnsHasBeenSet = false;
281
282 Aws::Vector<ServiceConnectivityType> m_supportedIpAddressTypes;
283 bool m_supportedIpAddressTypesHasBeenSet = false;
284
285 Aws::Vector<Aws::String> m_baseEndpointDnsNames;
286 bool m_baseEndpointDnsNamesHasBeenSet = false;
287
288 Aws::String m_privateDnsName;
289 bool m_privateDnsNameHasBeenSet = false;
290
291 PrivateDnsNameConfiguration m_privateDnsNameConfiguration;
292 bool m_privateDnsNameConfigurationHasBeenSet = false;
293
294 PayerResponsibility m_payerResponsibility;
295 bool m_payerResponsibilityHasBeenSet = false;
296
297 Aws::Vector<Tag> m_tags;
298 bool m_tagsHasBeenSet = false;
299 };
300
301} // namespace Model
302} // namespace EC2
303} // namespace Aws
const Aws::String & GetServiceName() const
ServiceConfiguration & WithServiceName(const Aws::String &value)
ServiceConfiguration & WithServiceName(Aws::String &&value)
void SetNetworkLoadBalancerArns(const Aws::Vector< Aws::String > &value)
const Aws::String & GetPrivateDnsName() const
ServiceConfiguration & AddAvailabilityZones(const Aws::String &value)
void SetServiceType(Aws::Vector< ServiceTypeDetail > &&value)
const Aws::Vector< ServiceConnectivityType > & GetSupportedIpAddressTypes() const
ServiceConfiguration & WithTags(Aws::Vector< Tag > &&value)
ServiceConfiguration & AddAvailabilityZones(Aws::String &&value)
ServiceConfiguration & AddGatewayLoadBalancerArns(const char *value)
void SetPayerResponsibility(const PayerResponsibility &value)
ServiceConfiguration & AddBaseEndpointDnsNames(const Aws::String &value)
ServiceConfiguration & WithNetworkLoadBalancerArns(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetBaseEndpointDnsNames() const
const Aws::Vector< ServiceTypeDetail > & GetServiceType() const
ServiceConfiguration & WithPayerResponsibility(PayerResponsibility &&value)
ServiceConfiguration & WithPrivateDnsNameConfiguration(const PrivateDnsNameConfiguration &value)
ServiceConfiguration & WithPrivateDnsName(const Aws::String &value)
ServiceConfiguration & AddNetworkLoadBalancerArns(const char *value)
ServiceConfiguration & WithAvailabilityZones(const Aws::Vector< Aws::String > &value)
ServiceConfiguration & WithAvailabilityZones(Aws::Vector< Aws::String > &&value)
ServiceConfiguration & WithManagesVpcEndpoints(bool value)
ServiceConfiguration & AddSupportedIpAddressTypes(ServiceConnectivityType &&value)
AWS_EC2_API ServiceConfiguration(const Aws::Utils::Xml::XmlNode &xmlNode)
ServiceConfiguration & AddServiceType(ServiceTypeDetail &&value)
void SetAvailabilityZones(const Aws::Vector< Aws::String > &value)
ServiceConfiguration & WithAcceptanceRequired(bool value)
void SetPrivateDnsName(const Aws::String &value)
ServiceConfiguration & WithServiceState(const ServiceState &value)
const Aws::Vector< Aws::String > & GetGatewayLoadBalancerArns() const
void SetAvailabilityZones(Aws::Vector< Aws::String > &&value)
const ServiceState & GetServiceState() const
ServiceConfiguration & AddNetworkLoadBalancerArns(const Aws::String &value)
const PayerResponsibility & GetPayerResponsibility() const
ServiceConfiguration & AddSupportedIpAddressTypes(const ServiceConnectivityType &value)
ServiceConfiguration & WithServiceType(Aws::Vector< ServiceTypeDetail > &&value)
void SetPrivateDnsNameConfiguration(PrivateDnsNameConfiguration &&value)
ServiceConfiguration & WithGatewayLoadBalancerArns(const Aws::Vector< Aws::String > &value)
const Aws::Vector< Tag > & GetTags() const
ServiceConfiguration & WithBaseEndpointDnsNames(Aws::Vector< Aws::String > &&value)
ServiceConfiguration & WithPrivateDnsName(const char *value)
void SetServiceState(const ServiceState &value)
ServiceConfiguration & WithTags(const Aws::Vector< Tag > &value)
void SetBaseEndpointDnsNames(Aws::Vector< Aws::String > &&value)
void SetSupportedIpAddressTypes(const Aws::Vector< ServiceConnectivityType > &value)
ServiceConfiguration & WithPrivateDnsNameConfiguration(PrivateDnsNameConfiguration &&value)
void SetNetworkLoadBalancerArns(Aws::Vector< Aws::String > &&value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ServiceConfiguration & AddTags(Tag &&value)
ServiceConfiguration & WithPayerResponsibility(const PayerResponsibility &value)
ServiceConfiguration & AddTags(const Tag &value)
ServiceConfiguration & AddGatewayLoadBalancerArns(Aws::String &&value)
const Aws::Vector< Aws::String > & GetNetworkLoadBalancerArns() const
ServiceConfiguration & AddBaseEndpointDnsNames(const char *value)
ServiceConfiguration & WithPrivateDnsName(Aws::String &&value)
ServiceConfiguration & AddBaseEndpointDnsNames(Aws::String &&value)
ServiceConfiguration & WithBaseEndpointDnsNames(const Aws::Vector< Aws::String > &value)
ServiceConfiguration & WithServiceName(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
ServiceConfiguration & WithNetworkLoadBalancerArns(const Aws::Vector< Aws::String > &value)
void SetServiceState(ServiceState &&value)
ServiceConfiguration & WithSupportedIpAddressTypes(Aws::Vector< ServiceConnectivityType > &&value)
void SetSupportedIpAddressTypes(Aws::Vector< ServiceConnectivityType > &&value)
void SetGatewayLoadBalancerArns(Aws::Vector< Aws::String > &&value)
ServiceConfiguration & WithGatewayLoadBalancerArns(Aws::Vector< Aws::String > &&value)
void SetServiceName(const Aws::String &value)
void SetTags(Aws::Vector< Tag > &&value)
const PrivateDnsNameConfiguration & GetPrivateDnsNameConfiguration() const
ServiceConfiguration & AddGatewayLoadBalancerArns(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
const Aws::String & GetServiceId() const
ServiceConfiguration & WithServiceId(Aws::String &&value)
void SetBaseEndpointDnsNames(const Aws::Vector< Aws::String > &value)
ServiceConfiguration & AddNetworkLoadBalancerArns(Aws::String &&value)
void SetServiceId(const Aws::String &value)
AWS_EC2_API ServiceConfiguration & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ServiceConfiguration & WithSupportedIpAddressTypes(const Aws::Vector< ServiceConnectivityType > &value)
ServiceConfiguration & WithServiceId(const char *value)
ServiceConfiguration & AddAvailabilityZones(const char *value)
ServiceConfiguration & WithServiceState(ServiceState &&value)
void SetServiceType(const Aws::Vector< ServiceTypeDetail > &value)
ServiceConfiguration & WithServiceId(const Aws::String &value)
void SetGatewayLoadBalancerArns(const Aws::Vector< Aws::String > &value)
ServiceConfiguration & AddServiceType(const ServiceTypeDetail &value)
ServiceConfiguration & WithServiceType(const Aws::Vector< ServiceTypeDetail > &value)
void SetPrivateDnsNameConfiguration(const PrivateDnsNameConfiguration &value)
void SetPayerResponsibility(PayerResponsibility &&value)
const Aws::Vector< Aws::String > & GetAvailabilityZones() const
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