AWS SDK for C++  1.9.75
AWS SDK for C++
TransitGatewayRequestOptions.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
17 #include <utility>
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Xml
24 {
25  class XmlNode;
26 } // namespace Xml
27 } // namespace Utils
28 namespace EC2
29 {
30 namespace Model
31 {
32 
39  {
40  public:
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
48 
54  inline long long GetAmazonSideAsn() const{ return m_amazonSideAsn; }
55 
61  inline bool AmazonSideAsnHasBeenSet() const { return m_amazonSideAsnHasBeenSet; }
62 
68  inline void SetAmazonSideAsn(long long value) { m_amazonSideAsnHasBeenSet = true; m_amazonSideAsn = value; }
69 
75  inline TransitGatewayRequestOptions& WithAmazonSideAsn(long long value) { SetAmazonSideAsn(value); return *this;}
76 
77 
82  inline const AutoAcceptSharedAttachmentsValue& GetAutoAcceptSharedAttachments() const{ return m_autoAcceptSharedAttachments; }
83 
88  inline bool AutoAcceptSharedAttachmentsHasBeenSet() const { return m_autoAcceptSharedAttachmentsHasBeenSet; }
89 
94  inline void SetAutoAcceptSharedAttachments(const AutoAcceptSharedAttachmentsValue& value) { m_autoAcceptSharedAttachmentsHasBeenSet = true; m_autoAcceptSharedAttachments = value; }
95 
100  inline void SetAutoAcceptSharedAttachments(AutoAcceptSharedAttachmentsValue&& value) { m_autoAcceptSharedAttachmentsHasBeenSet = true; m_autoAcceptSharedAttachments = std::move(value); }
101 
106  inline TransitGatewayRequestOptions& WithAutoAcceptSharedAttachments(const AutoAcceptSharedAttachmentsValue& value) { SetAutoAcceptSharedAttachments(value); return *this;}
107 
112  inline TransitGatewayRequestOptions& WithAutoAcceptSharedAttachments(AutoAcceptSharedAttachmentsValue&& value) { SetAutoAcceptSharedAttachments(std::move(value)); return *this;}
113 
114 
119  inline const DefaultRouteTableAssociationValue& GetDefaultRouteTableAssociation() const{ return m_defaultRouteTableAssociation; }
120 
125  inline bool DefaultRouteTableAssociationHasBeenSet() const { return m_defaultRouteTableAssociationHasBeenSet; }
126 
131  inline void SetDefaultRouteTableAssociation(const DefaultRouteTableAssociationValue& value) { m_defaultRouteTableAssociationHasBeenSet = true; m_defaultRouteTableAssociation = value; }
132 
137  inline void SetDefaultRouteTableAssociation(DefaultRouteTableAssociationValue&& value) { m_defaultRouteTableAssociationHasBeenSet = true; m_defaultRouteTableAssociation = std::move(value); }
138 
143  inline TransitGatewayRequestOptions& WithDefaultRouteTableAssociation(const DefaultRouteTableAssociationValue& value) { SetDefaultRouteTableAssociation(value); return *this;}
144 
149  inline TransitGatewayRequestOptions& WithDefaultRouteTableAssociation(DefaultRouteTableAssociationValue&& value) { SetDefaultRouteTableAssociation(std::move(value)); return *this;}
150 
151 
156  inline const DefaultRouteTablePropagationValue& GetDefaultRouteTablePropagation() const{ return m_defaultRouteTablePropagation; }
157 
162  inline bool DefaultRouteTablePropagationHasBeenSet() const { return m_defaultRouteTablePropagationHasBeenSet; }
163 
168  inline void SetDefaultRouteTablePropagation(const DefaultRouteTablePropagationValue& value) { m_defaultRouteTablePropagationHasBeenSet = true; m_defaultRouteTablePropagation = value; }
169 
174  inline void SetDefaultRouteTablePropagation(DefaultRouteTablePropagationValue&& value) { m_defaultRouteTablePropagationHasBeenSet = true; m_defaultRouteTablePropagation = std::move(value); }
175 
180  inline TransitGatewayRequestOptions& WithDefaultRouteTablePropagation(const DefaultRouteTablePropagationValue& value) { SetDefaultRouteTablePropagation(value); return *this;}
181 
186  inline TransitGatewayRequestOptions& WithDefaultRouteTablePropagation(DefaultRouteTablePropagationValue&& value) { SetDefaultRouteTablePropagation(std::move(value)); return *this;}
187 
188 
193  inline const VpnEcmpSupportValue& GetVpnEcmpSupport() const{ return m_vpnEcmpSupport; }
194 
199  inline bool VpnEcmpSupportHasBeenSet() const { return m_vpnEcmpSupportHasBeenSet; }
200 
205  inline void SetVpnEcmpSupport(const VpnEcmpSupportValue& value) { m_vpnEcmpSupportHasBeenSet = true; m_vpnEcmpSupport = value; }
206 
211  inline void SetVpnEcmpSupport(VpnEcmpSupportValue&& value) { m_vpnEcmpSupportHasBeenSet = true; m_vpnEcmpSupport = std::move(value); }
212 
217  inline TransitGatewayRequestOptions& WithVpnEcmpSupport(const VpnEcmpSupportValue& value) { SetVpnEcmpSupport(value); return *this;}
218 
223  inline TransitGatewayRequestOptions& WithVpnEcmpSupport(VpnEcmpSupportValue&& value) { SetVpnEcmpSupport(std::move(value)); return *this;}
224 
225 
229  inline const DnsSupportValue& GetDnsSupport() const{ return m_dnsSupport; }
230 
234  inline bool DnsSupportHasBeenSet() const { return m_dnsSupportHasBeenSet; }
235 
239  inline void SetDnsSupport(const DnsSupportValue& value) { m_dnsSupportHasBeenSet = true; m_dnsSupport = value; }
240 
244  inline void SetDnsSupport(DnsSupportValue&& value) { m_dnsSupportHasBeenSet = true; m_dnsSupport = std::move(value); }
245 
249  inline TransitGatewayRequestOptions& WithDnsSupport(const DnsSupportValue& value) { SetDnsSupport(value); return *this;}
250 
254  inline TransitGatewayRequestOptions& WithDnsSupport(DnsSupportValue&& value) { SetDnsSupport(std::move(value)); return *this;}
255 
256 
260  inline const MulticastSupportValue& GetMulticastSupport() const{ return m_multicastSupport; }
261 
265  inline bool MulticastSupportHasBeenSet() const { return m_multicastSupportHasBeenSet; }
266 
270  inline void SetMulticastSupport(const MulticastSupportValue& value) { m_multicastSupportHasBeenSet = true; m_multicastSupport = value; }
271 
275  inline void SetMulticastSupport(MulticastSupportValue&& value) { m_multicastSupportHasBeenSet = true; m_multicastSupport = std::move(value); }
276 
280  inline TransitGatewayRequestOptions& WithMulticastSupport(const MulticastSupportValue& value) { SetMulticastSupport(value); return *this;}
281 
285  inline TransitGatewayRequestOptions& WithMulticastSupport(MulticastSupportValue&& value) { SetMulticastSupport(std::move(value)); return *this;}
286 
287 
293  inline const Aws::Vector<Aws::String>& GetTransitGatewayCidrBlocks() const{ return m_transitGatewayCidrBlocks; }
294 
300  inline bool TransitGatewayCidrBlocksHasBeenSet() const { return m_transitGatewayCidrBlocksHasBeenSet; }
301 
307  inline void SetTransitGatewayCidrBlocks(const Aws::Vector<Aws::String>& value) { m_transitGatewayCidrBlocksHasBeenSet = true; m_transitGatewayCidrBlocks = value; }
308 
314  inline void SetTransitGatewayCidrBlocks(Aws::Vector<Aws::String>&& value) { m_transitGatewayCidrBlocksHasBeenSet = true; m_transitGatewayCidrBlocks = std::move(value); }
315 
321  inline TransitGatewayRequestOptions& WithTransitGatewayCidrBlocks(const Aws::Vector<Aws::String>& value) { SetTransitGatewayCidrBlocks(value); return *this;}
322 
328  inline TransitGatewayRequestOptions& WithTransitGatewayCidrBlocks(Aws::Vector<Aws::String>&& value) { SetTransitGatewayCidrBlocks(std::move(value)); return *this;}
329 
335  inline TransitGatewayRequestOptions& AddTransitGatewayCidrBlocks(const Aws::String& value) { m_transitGatewayCidrBlocksHasBeenSet = true; m_transitGatewayCidrBlocks.push_back(value); return *this; }
336 
342  inline TransitGatewayRequestOptions& AddTransitGatewayCidrBlocks(Aws::String&& value) { m_transitGatewayCidrBlocksHasBeenSet = true; m_transitGatewayCidrBlocks.push_back(std::move(value)); return *this; }
343 
349  inline TransitGatewayRequestOptions& AddTransitGatewayCidrBlocks(const char* value) { m_transitGatewayCidrBlocksHasBeenSet = true; m_transitGatewayCidrBlocks.push_back(value); return *this; }
350 
351  private:
352 
353  long long m_amazonSideAsn;
354  bool m_amazonSideAsnHasBeenSet;
355 
356  AutoAcceptSharedAttachmentsValue m_autoAcceptSharedAttachments;
357  bool m_autoAcceptSharedAttachmentsHasBeenSet;
358 
359  DefaultRouteTableAssociationValue m_defaultRouteTableAssociation;
360  bool m_defaultRouteTableAssociationHasBeenSet;
361 
362  DefaultRouteTablePropagationValue m_defaultRouteTablePropagation;
363  bool m_defaultRouteTablePropagationHasBeenSet;
364 
365  VpnEcmpSupportValue m_vpnEcmpSupport;
366  bool m_vpnEcmpSupportHasBeenSet;
367 
368  DnsSupportValue m_dnsSupport;
369  bool m_dnsSupportHasBeenSet;
370 
371  MulticastSupportValue m_multicastSupport;
372  bool m_multicastSupportHasBeenSet;
373 
374  Aws::Vector<Aws::String> m_transitGatewayCidrBlocks;
375  bool m_transitGatewayCidrBlocksHasBeenSet;
376  };
377 
378 } // namespace Model
379 } // namespace EC2
380 } // namespace Aws
Aws::EC2::Model::TransitGatewayRequestOptions::MulticastSupportHasBeenSet
bool MulticastSupportHasBeenSet() const
Definition: TransitGatewayRequestOptions.h:265
Aws::EC2::Model::TransitGatewayRequestOptions::SetMulticastSupport
void SetMulticastSupport(MulticastSupportValue &&value)
Definition: TransitGatewayRequestOptions.h:275
Aws::EC2::Model::TransitGatewayRequestOptions
Definition: TransitGatewayRequestOptions.h:39
Aws::EC2::Model::TransitGatewayRequestOptions::WithDnsSupport
TransitGatewayRequestOptions & WithDnsSupport(const DnsSupportValue &value)
Definition: TransitGatewayRequestOptions.h:249
Aws::EC2::Model::TransitGatewayRequestOptions::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::TransitGatewayRequestOptions::GetDnsSupport
const DnsSupportValue & GetDnsSupport() const
Definition: TransitGatewayRequestOptions.h:229
Aws::EC2::Model::DefaultRouteTableAssociationValue
DefaultRouteTableAssociationValue
Definition: DefaultRouteTableAssociationValue.h:17
Aws::EC2::Model::TransitGatewayRequestOptions::GetDefaultRouteTablePropagation
const DefaultRouteTablePropagationValue & GetDefaultRouteTablePropagation() const
Definition: TransitGatewayRequestOptions.h:156
Aws::EC2::Model::TransitGatewayRequestOptions::SetVpnEcmpSupport
void SetVpnEcmpSupport(const VpnEcmpSupportValue &value)
Definition: TransitGatewayRequestOptions.h:205
DefaultRouteTableAssociationValue.h
Aws::EC2::Model::TransitGatewayRequestOptions::SetDefaultRouteTablePropagation
void SetDefaultRouteTablePropagation(const DefaultRouteTablePropagationValue &value)
Definition: TransitGatewayRequestOptions.h:168
Aws::EC2::Model::TransitGatewayRequestOptions::TransitGatewayRequestOptions
TransitGatewayRequestOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
VpnEcmpSupportValue.h
Aws::EC2::Model::TransitGatewayRequestOptions::SetDnsSupport
void SetDnsSupport(DnsSupportValue &&value)
Definition: TransitGatewayRequestOptions.h:244
Aws::EC2::Model::TransitGatewayRequestOptions::SetVpnEcmpSupport
void SetVpnEcmpSupport(VpnEcmpSupportValue &&value)
Definition: TransitGatewayRequestOptions.h:211
Aws::EC2::Model::TransitGatewayRequestOptions::SetDefaultRouteTableAssociation
void SetDefaultRouteTableAssociation(DefaultRouteTableAssociationValue &&value)
Definition: TransitGatewayRequestOptions.h:137
Aws::EC2::Model::TransitGatewayRequestOptions::GetTransitGatewayCidrBlocks
const Aws::Vector< Aws::String > & GetTransitGatewayCidrBlocks() const
Definition: TransitGatewayRequestOptions.h:293
Aws::EC2::Model::TransitGatewayRequestOptions::WithMulticastSupport
TransitGatewayRequestOptions & WithMulticastSupport(const MulticastSupportValue &value)
Definition: TransitGatewayRequestOptions.h:280
Aws::EC2::Model::TransitGatewayRequestOptions::GetVpnEcmpSupport
const VpnEcmpSupportValue & GetVpnEcmpSupport() const
Definition: TransitGatewayRequestOptions.h:193
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::TransitGatewayRequestOptions::AutoAcceptSharedAttachmentsHasBeenSet
bool AutoAcceptSharedAttachmentsHasBeenSet() const
Definition: TransitGatewayRequestOptions.h:88
Aws::EC2::Model::TransitGatewayRequestOptions::AmazonSideAsnHasBeenSet
bool AmazonSideAsnHasBeenSet() const
Definition: TransitGatewayRequestOptions.h:61
Aws::EC2::Model::TransitGatewayRequestOptions::VpnEcmpSupportHasBeenSet
bool VpnEcmpSupportHasBeenSet() const
Definition: TransitGatewayRequestOptions.h:199
Aws::EC2::Model::TransitGatewayRequestOptions::operator=
TransitGatewayRequestOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::TransitGatewayRequestOptions::SetDefaultRouteTableAssociation
void SetDefaultRouteTableAssociation(const DefaultRouteTableAssociationValue &value)
Definition: TransitGatewayRequestOptions.h:131
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
AWSStreamFwd.h
Aws::EC2::Model::TransitGatewayRequestOptions::WithTransitGatewayCidrBlocks
TransitGatewayRequestOptions & WithTransitGatewayCidrBlocks(Aws::Vector< Aws::String > &&value)
Definition: TransitGatewayRequestOptions.h:328
AWSVector.h
Aws::EC2::Model::TransitGatewayRequestOptions::SetAutoAcceptSharedAttachments
void SetAutoAcceptSharedAttachments(AutoAcceptSharedAttachmentsValue &&value)
Definition: TransitGatewayRequestOptions.h:100
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::TransitGatewayRequestOptions::SetAutoAcceptSharedAttachments
void SetAutoAcceptSharedAttachments(const AutoAcceptSharedAttachmentsValue &value)
Definition: TransitGatewayRequestOptions.h:94
Aws::EC2::Model::TransitGatewayRequestOptions::WithAmazonSideAsn
TransitGatewayRequestOptions & WithAmazonSideAsn(long long value)
Definition: TransitGatewayRequestOptions.h:75
AutoAcceptSharedAttachmentsValue.h
Aws::EC2::Model::DnsSupportValue
DnsSupportValue
Definition: DnsSupportValue.h:17
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::TransitGatewayRequestOptions::DefaultRouteTableAssociationHasBeenSet
bool DefaultRouteTableAssociationHasBeenSet() const
Definition: TransitGatewayRequestOptions.h:125
Aws::EC2::Model::VpnEcmpSupportValue
VpnEcmpSupportValue
Definition: VpnEcmpSupportValue.h:17
Aws::EC2::Model::TransitGatewayRequestOptions::WithDefaultRouteTableAssociation
TransitGatewayRequestOptions & WithDefaultRouteTableAssociation(const DefaultRouteTableAssociationValue &value)
Definition: TransitGatewayRequestOptions.h:143
Aws::EC2::Model::TransitGatewayRequestOptions::SetDefaultRouteTablePropagation
void SetDefaultRouteTablePropagation(DefaultRouteTablePropagationValue &&value)
Definition: TransitGatewayRequestOptions.h:174
Aws::EC2::Model::TransitGatewayRequestOptions::WithDefaultRouteTablePropagation
TransitGatewayRequestOptions & WithDefaultRouteTablePropagation(DefaultRouteTablePropagationValue &&value)
Definition: TransitGatewayRequestOptions.h:186
Aws::EC2::Model::TransitGatewayRequestOptions::GetMulticastSupport
const MulticastSupportValue & GetMulticastSupport() const
Definition: TransitGatewayRequestOptions.h:260
Aws::EC2::Model::TransitGatewayRequestOptions::WithVpnEcmpSupport
TransitGatewayRequestOptions & WithVpnEcmpSupport(const VpnEcmpSupportValue &value)
Definition: TransitGatewayRequestOptions.h:217
Aws::EC2::Model::TransitGatewayRequestOptions::WithAutoAcceptSharedAttachments
TransitGatewayRequestOptions & WithAutoAcceptSharedAttachments(const AutoAcceptSharedAttachmentsValue &value)
Definition: TransitGatewayRequestOptions.h:106
Aws::EC2::Model::TransitGatewayRequestOptions::SetMulticastSupport
void SetMulticastSupport(const MulticastSupportValue &value)
Definition: TransitGatewayRequestOptions.h:270
Aws::EC2::Model::TransitGatewayRequestOptions::WithAutoAcceptSharedAttachments
TransitGatewayRequestOptions & WithAutoAcceptSharedAttachments(AutoAcceptSharedAttachmentsValue &&value)
Definition: TransitGatewayRequestOptions.h:112
AWSString.h
Aws::EC2::Model::TransitGatewayRequestOptions::SetTransitGatewayCidrBlocks
void SetTransitGatewayCidrBlocks(Aws::Vector< Aws::String > &&value)
Definition: TransitGatewayRequestOptions.h:314
Aws::EC2::Model::MulticastSupportValue
MulticastSupportValue
Definition: MulticastSupportValue.h:17
Aws::EC2::Model::TransitGatewayRequestOptions::DnsSupportHasBeenSet
bool DnsSupportHasBeenSet() const
Definition: TransitGatewayRequestOptions.h:234
Aws::EC2::Model::TransitGatewayRequestOptions::SetTransitGatewayCidrBlocks
void SetTransitGatewayCidrBlocks(const Aws::Vector< Aws::String > &value)
Definition: TransitGatewayRequestOptions.h:307
DnsSupportValue.h
Aws::EC2::Model::TransitGatewayRequestOptions::WithMulticastSupport
TransitGatewayRequestOptions & WithMulticastSupport(MulticastSupportValue &&value)
Definition: TransitGatewayRequestOptions.h:285
Aws::EC2::Model::TransitGatewayRequestOptions::WithDnsSupport
TransitGatewayRequestOptions & WithDnsSupport(DnsSupportValue &&value)
Definition: TransitGatewayRequestOptions.h:254
DefaultRouteTablePropagationValue.h
Aws::EC2::Model::TransitGatewayRequestOptions::GetAmazonSideAsn
long long GetAmazonSideAsn() const
Definition: TransitGatewayRequestOptions.h:54
Aws::EC2::Model::TransitGatewayRequestOptions::AddTransitGatewayCidrBlocks
TransitGatewayRequestOptions & AddTransitGatewayCidrBlocks(const char *value)
Definition: TransitGatewayRequestOptions.h:349
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::TransitGatewayRequestOptions::WithTransitGatewayCidrBlocks
TransitGatewayRequestOptions & WithTransitGatewayCidrBlocks(const Aws::Vector< Aws::String > &value)
Definition: TransitGatewayRequestOptions.h:321
Aws::EC2::Model::TransitGatewayRequestOptions::TransitGatewayCidrBlocksHasBeenSet
bool TransitGatewayCidrBlocksHasBeenSet() const
Definition: TransitGatewayRequestOptions.h:300
Aws::EC2::Model::TransitGatewayRequestOptions::TransitGatewayRequestOptions
TransitGatewayRequestOptions()
Aws::EC2::Model::TransitGatewayRequestOptions::AddTransitGatewayCidrBlocks
TransitGatewayRequestOptions & AddTransitGatewayCidrBlocks(Aws::String &&value)
Definition: TransitGatewayRequestOptions.h:342
Aws::EC2::Model::TransitGatewayRequestOptions::WithVpnEcmpSupport
TransitGatewayRequestOptions & WithVpnEcmpSupport(VpnEcmpSupportValue &&value)
Definition: TransitGatewayRequestOptions.h:223
MulticastSupportValue.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DefaultRouteTablePropagationValue
DefaultRouteTablePropagationValue
Definition: DefaultRouteTablePropagationValue.h:17
Aws::EC2::Model::TransitGatewayRequestOptions::SetAmazonSideAsn
void SetAmazonSideAsn(long long value)
Definition: TransitGatewayRequestOptions.h:68
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::TransitGatewayRequestOptions::WithDefaultRouteTableAssociation
TransitGatewayRequestOptions & WithDefaultRouteTableAssociation(DefaultRouteTableAssociationValue &&value)
Definition: TransitGatewayRequestOptions.h:149
Aws::EC2::Model::AutoAcceptSharedAttachmentsValue
AutoAcceptSharedAttachmentsValue
Definition: AutoAcceptSharedAttachmentsValue.h:17
Aws::EC2::Model::TransitGatewayRequestOptions::WithDefaultRouteTablePropagation
TransitGatewayRequestOptions & WithDefaultRouteTablePropagation(const DefaultRouteTablePropagationValue &value)
Definition: TransitGatewayRequestOptions.h:180
Aws::EC2::Model::TransitGatewayRequestOptions::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::TransitGatewayRequestOptions::AddTransitGatewayCidrBlocks
TransitGatewayRequestOptions & AddTransitGatewayCidrBlocks(const Aws::String &value)
Definition: TransitGatewayRequestOptions.h:335
EC2_EXPORTS.h
Aws::EC2::Model::TransitGatewayRequestOptions::SetDnsSupport
void SetDnsSupport(const DnsSupportValue &value)
Definition: TransitGatewayRequestOptions.h:239
Aws::EC2::Model::TransitGatewayRequestOptions::GetAutoAcceptSharedAttachments
const AutoAcceptSharedAttachmentsValue & GetAutoAcceptSharedAttachments() const
Definition: TransitGatewayRequestOptions.h:82
Aws::EC2::Model::TransitGatewayRequestOptions::DefaultRouteTablePropagationHasBeenSet
bool DefaultRouteTablePropagationHasBeenSet() const
Definition: TransitGatewayRequestOptions.h:162
Aws::EC2::Model::TransitGatewayRequestOptions::GetDefaultRouteTableAssociation
const DefaultRouteTableAssociationValue & GetDefaultRouteTableAssociation() const
Definition: TransitGatewayRequestOptions.h:119