AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
TransitGatewayOptions.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/ec2/model/AutoAcceptSharedAttachmentsValue.h>
11#include <aws/ec2/model/DefaultRouteTableAssociationValue.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/ec2/model/DefaultRouteTablePropagationValue.h>
14#include <aws/ec2/model/VpnEcmpSupportValue.h>
15#include <aws/ec2/model/DnsSupportValue.h>
16#include <aws/ec2/model/SecurityGroupReferencingSupportValue.h>
17#include <aws/ec2/model/MulticastSupportValue.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Xml
25{
26 class XmlNode;
27} // namespace Xml
28} // namespace Utils
29namespace EC2
30{
31namespace Model
32{
33
40 {
41 public:
42 AWS_EC2_API TransitGatewayOptions();
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
56 inline long long GetAmazonSideAsn() const{ return m_amazonSideAsn; }
57 inline bool AmazonSideAsnHasBeenSet() const { return m_amazonSideAsnHasBeenSet; }
58 inline void SetAmazonSideAsn(long long value) { m_amazonSideAsnHasBeenSet = true; m_amazonSideAsn = value; }
59 inline TransitGatewayOptions& WithAmazonSideAsn(long long value) { SetAmazonSideAsn(value); return *this;}
61
63
66 inline const Aws::Vector<Aws::String>& GetTransitGatewayCidrBlocks() const{ return m_transitGatewayCidrBlocks; }
67 inline bool TransitGatewayCidrBlocksHasBeenSet() const { return m_transitGatewayCidrBlocksHasBeenSet; }
68 inline void SetTransitGatewayCidrBlocks(const Aws::Vector<Aws::String>& value) { m_transitGatewayCidrBlocksHasBeenSet = true; m_transitGatewayCidrBlocks = value; }
69 inline void SetTransitGatewayCidrBlocks(Aws::Vector<Aws::String>&& value) { m_transitGatewayCidrBlocksHasBeenSet = true; m_transitGatewayCidrBlocks = std::move(value); }
72 inline TransitGatewayOptions& AddTransitGatewayCidrBlocks(const Aws::String& value) { m_transitGatewayCidrBlocksHasBeenSet = true; m_transitGatewayCidrBlocks.push_back(value); return *this; }
73 inline TransitGatewayOptions& AddTransitGatewayCidrBlocks(Aws::String&& value) { m_transitGatewayCidrBlocksHasBeenSet = true; m_transitGatewayCidrBlocks.push_back(std::move(value)); return *this; }
74 inline TransitGatewayOptions& AddTransitGatewayCidrBlocks(const char* value) { m_transitGatewayCidrBlocksHasBeenSet = true; m_transitGatewayCidrBlocks.push_back(value); return *this; }
76
78
81 inline const AutoAcceptSharedAttachmentsValue& GetAutoAcceptSharedAttachments() const{ return m_autoAcceptSharedAttachments; }
82 inline bool AutoAcceptSharedAttachmentsHasBeenSet() const { return m_autoAcceptSharedAttachmentsHasBeenSet; }
83 inline void SetAutoAcceptSharedAttachments(const AutoAcceptSharedAttachmentsValue& value) { m_autoAcceptSharedAttachmentsHasBeenSet = true; m_autoAcceptSharedAttachments = value; }
84 inline void SetAutoAcceptSharedAttachments(AutoAcceptSharedAttachmentsValue&& value) { m_autoAcceptSharedAttachmentsHasBeenSet = true; m_autoAcceptSharedAttachments = std::move(value); }
88
90
94 inline const DefaultRouteTableAssociationValue& GetDefaultRouteTableAssociation() const{ return m_defaultRouteTableAssociation; }
95 inline bool DefaultRouteTableAssociationHasBeenSet() const { return m_defaultRouteTableAssociationHasBeenSet; }
96 inline void SetDefaultRouteTableAssociation(const DefaultRouteTableAssociationValue& value) { m_defaultRouteTableAssociationHasBeenSet = true; m_defaultRouteTableAssociation = value; }
97 inline void SetDefaultRouteTableAssociation(DefaultRouteTableAssociationValue&& value) { m_defaultRouteTableAssociationHasBeenSet = true; m_defaultRouteTableAssociation = std::move(value); }
101
103
106 inline const Aws::String& GetAssociationDefaultRouteTableId() const{ return m_associationDefaultRouteTableId; }
107 inline bool AssociationDefaultRouteTableIdHasBeenSet() const { return m_associationDefaultRouteTableIdHasBeenSet; }
108 inline void SetAssociationDefaultRouteTableId(const Aws::String& value) { m_associationDefaultRouteTableIdHasBeenSet = true; m_associationDefaultRouteTableId = value; }
109 inline void SetAssociationDefaultRouteTableId(Aws::String&& value) { m_associationDefaultRouteTableIdHasBeenSet = true; m_associationDefaultRouteTableId = std::move(value); }
110 inline void SetAssociationDefaultRouteTableId(const char* value) { m_associationDefaultRouteTableIdHasBeenSet = true; m_associationDefaultRouteTableId.assign(value); }
115
117
121 inline const DefaultRouteTablePropagationValue& GetDefaultRouteTablePropagation() const{ return m_defaultRouteTablePropagation; }
122 inline bool DefaultRouteTablePropagationHasBeenSet() const { return m_defaultRouteTablePropagationHasBeenSet; }
123 inline void SetDefaultRouteTablePropagation(const DefaultRouteTablePropagationValue& value) { m_defaultRouteTablePropagationHasBeenSet = true; m_defaultRouteTablePropagation = value; }
124 inline void SetDefaultRouteTablePropagation(DefaultRouteTablePropagationValue&& value) { m_defaultRouteTablePropagationHasBeenSet = true; m_defaultRouteTablePropagation = std::move(value); }
128
130
133 inline const Aws::String& GetPropagationDefaultRouteTableId() const{ return m_propagationDefaultRouteTableId; }
134 inline bool PropagationDefaultRouteTableIdHasBeenSet() const { return m_propagationDefaultRouteTableIdHasBeenSet; }
135 inline void SetPropagationDefaultRouteTableId(const Aws::String& value) { m_propagationDefaultRouteTableIdHasBeenSet = true; m_propagationDefaultRouteTableId = value; }
136 inline void SetPropagationDefaultRouteTableId(Aws::String&& value) { m_propagationDefaultRouteTableIdHasBeenSet = true; m_propagationDefaultRouteTableId = std::move(value); }
137 inline void SetPropagationDefaultRouteTableId(const char* value) { m_propagationDefaultRouteTableIdHasBeenSet = true; m_propagationDefaultRouteTableId.assign(value); }
142
144
147 inline const VpnEcmpSupportValue& GetVpnEcmpSupport() const{ return m_vpnEcmpSupport; }
148 inline bool VpnEcmpSupportHasBeenSet() const { return m_vpnEcmpSupportHasBeenSet; }
149 inline void SetVpnEcmpSupport(const VpnEcmpSupportValue& value) { m_vpnEcmpSupportHasBeenSet = true; m_vpnEcmpSupport = value; }
150 inline void SetVpnEcmpSupport(VpnEcmpSupportValue&& value) { m_vpnEcmpSupportHasBeenSet = true; m_vpnEcmpSupport = std::move(value); }
152 inline TransitGatewayOptions& WithVpnEcmpSupport(VpnEcmpSupportValue&& value) { SetVpnEcmpSupport(std::move(value)); return *this;}
154
156
159 inline const DnsSupportValue& GetDnsSupport() const{ return m_dnsSupport; }
160 inline bool DnsSupportHasBeenSet() const { return m_dnsSupportHasBeenSet; }
161 inline void SetDnsSupport(const DnsSupportValue& value) { m_dnsSupportHasBeenSet = true; m_dnsSupport = value; }
162 inline void SetDnsSupport(DnsSupportValue&& value) { m_dnsSupportHasBeenSet = true; m_dnsSupport = std::move(value); }
163 inline TransitGatewayOptions& WithDnsSupport(const DnsSupportValue& value) { SetDnsSupport(value); return *this;}
164 inline TransitGatewayOptions& WithDnsSupport(DnsSupportValue&& value) { SetDnsSupport(std::move(value)); return *this;}
166
168
173 inline const SecurityGroupReferencingSupportValue& GetSecurityGroupReferencingSupport() const{ return m_securityGroupReferencingSupport; }
174 inline bool SecurityGroupReferencingSupportHasBeenSet() const { return m_securityGroupReferencingSupportHasBeenSet; }
175 inline void SetSecurityGroupReferencingSupport(const SecurityGroupReferencingSupportValue& value) { m_securityGroupReferencingSupportHasBeenSet = true; m_securityGroupReferencingSupport = value; }
176 inline void SetSecurityGroupReferencingSupport(SecurityGroupReferencingSupportValue&& value) { m_securityGroupReferencingSupportHasBeenSet = true; m_securityGroupReferencingSupport = std::move(value); }
180
182
185 inline const MulticastSupportValue& GetMulticastSupport() const{ return m_multicastSupport; }
186 inline bool MulticastSupportHasBeenSet() const { return m_multicastSupportHasBeenSet; }
187 inline void SetMulticastSupport(const MulticastSupportValue& value) { m_multicastSupportHasBeenSet = true; m_multicastSupport = value; }
188 inline void SetMulticastSupport(MulticastSupportValue&& value) { m_multicastSupportHasBeenSet = true; m_multicastSupport = std::move(value); }
190 inline TransitGatewayOptions& WithMulticastSupport(MulticastSupportValue&& value) { SetMulticastSupport(std::move(value)); return *this;}
192 private:
193
194 long long m_amazonSideAsn;
195 bool m_amazonSideAsnHasBeenSet = false;
196
197 Aws::Vector<Aws::String> m_transitGatewayCidrBlocks;
198 bool m_transitGatewayCidrBlocksHasBeenSet = false;
199
200 AutoAcceptSharedAttachmentsValue m_autoAcceptSharedAttachments;
201 bool m_autoAcceptSharedAttachmentsHasBeenSet = false;
202
203 DefaultRouteTableAssociationValue m_defaultRouteTableAssociation;
204 bool m_defaultRouteTableAssociationHasBeenSet = false;
205
206 Aws::String m_associationDefaultRouteTableId;
207 bool m_associationDefaultRouteTableIdHasBeenSet = false;
208
209 DefaultRouteTablePropagationValue m_defaultRouteTablePropagation;
210 bool m_defaultRouteTablePropagationHasBeenSet = false;
211
212 Aws::String m_propagationDefaultRouteTableId;
213 bool m_propagationDefaultRouteTableIdHasBeenSet = false;
214
215 VpnEcmpSupportValue m_vpnEcmpSupport;
216 bool m_vpnEcmpSupportHasBeenSet = false;
217
218 DnsSupportValue m_dnsSupport;
219 bool m_dnsSupportHasBeenSet = false;
220
221 SecurityGroupReferencingSupportValue m_securityGroupReferencingSupport;
222 bool m_securityGroupReferencingSupportHasBeenSet = false;
223
224 MulticastSupportValue m_multicastSupport;
225 bool m_multicastSupportHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace EC2
230} // namespace Aws
TransitGatewayOptions & WithDefaultRouteTableAssociation(const DefaultRouteTableAssociationValue &value)
void SetDefaultRouteTableAssociation(const DefaultRouteTableAssociationValue &value)
void SetSecurityGroupReferencingSupport(const SecurityGroupReferencingSupportValue &value)
void SetMulticastSupport(MulticastSupportValue &&value)
void SetVpnEcmpSupport(VpnEcmpSupportValue &&value)
const DnsSupportValue & GetDnsSupport() const
void SetTransitGatewayCidrBlocks(const Aws::Vector< Aws::String > &value)
TransitGatewayOptions & WithVpnEcmpSupport(VpnEcmpSupportValue &&value)
TransitGatewayOptions & WithAutoAcceptSharedAttachments(const AutoAcceptSharedAttachmentsValue &value)
TransitGatewayOptions & WithAssociationDefaultRouteTableId(Aws::String &&value)
const VpnEcmpSupportValue & GetVpnEcmpSupport() const
void SetAssociationDefaultRouteTableId(const char *value)
void SetSecurityGroupReferencingSupport(SecurityGroupReferencingSupportValue &&value)
void SetAutoAcceptSharedAttachments(const AutoAcceptSharedAttachmentsValue &value)
TransitGatewayOptions & WithAutoAcceptSharedAttachments(AutoAcceptSharedAttachmentsValue &&value)
TransitGatewayOptions & AddTransitGatewayCidrBlocks(Aws::String &&value)
void SetPropagationDefaultRouteTableId(const char *value)
TransitGatewayOptions & WithDefaultRouteTablePropagation(const DefaultRouteTablePropagationValue &value)
const SecurityGroupReferencingSupportValue & GetSecurityGroupReferencingSupport() const
TransitGatewayOptions & WithAssociationDefaultRouteTableId(const char *value)
TransitGatewayOptions & WithAmazonSideAsn(long long value)
void SetAutoAcceptSharedAttachments(AutoAcceptSharedAttachmentsValue &&value)
TransitGatewayOptions & WithDnsSupport(const DnsSupportValue &value)
TransitGatewayOptions & WithSecurityGroupReferencingSupport(const SecurityGroupReferencingSupportValue &value)
TransitGatewayOptions & WithMulticastSupport(MulticastSupportValue &&value)
TransitGatewayOptions & WithAssociationDefaultRouteTableId(const Aws::String &value)
TransitGatewayOptions & WithPropagationDefaultRouteTableId(const Aws::String &value)
void SetDefaultRouteTablePropagation(DefaultRouteTablePropagationValue &&value)
AWS_EC2_API TransitGatewayOptions & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetAssociationDefaultRouteTableId() const
const MulticastSupportValue & GetMulticastSupport() const
TransitGatewayOptions & WithDnsSupport(DnsSupportValue &&value)
TransitGatewayOptions & WithTransitGatewayCidrBlocks(const Aws::Vector< Aws::String > &value)
TransitGatewayOptions & AddTransitGatewayCidrBlocks(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
TransitGatewayOptions & WithSecurityGroupReferencingSupport(SecurityGroupReferencingSupportValue &&value)
void SetDnsSupport(const DnsSupportValue &value)
void SetDnsSupport(DnsSupportValue &&value)
TransitGatewayOptions & WithPropagationDefaultRouteTableId(Aws::String &&value)
TransitGatewayOptions & WithPropagationDefaultRouteTableId(const char *value)
AWS_EC2_API TransitGatewayOptions(const Aws::Utils::Xml::XmlNode &xmlNode)
const DefaultRouteTableAssociationValue & GetDefaultRouteTableAssociation() const
const Aws::Vector< Aws::String > & GetTransitGatewayCidrBlocks() const
void SetPropagationDefaultRouteTableId(const Aws::String &value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::String & GetPropagationDefaultRouteTableId() const
void SetVpnEcmpSupport(const VpnEcmpSupportValue &value)
void SetMulticastSupport(const MulticastSupportValue &value)
void SetDefaultRouteTableAssociation(DefaultRouteTableAssociationValue &&value)
const AutoAcceptSharedAttachmentsValue & GetAutoAcceptSharedAttachments() const
TransitGatewayOptions & WithVpnEcmpSupport(const VpnEcmpSupportValue &value)
void SetAssociationDefaultRouteTableId(const Aws::String &value)
TransitGatewayOptions & AddTransitGatewayCidrBlocks(const char *value)
TransitGatewayOptions & WithMulticastSupport(const MulticastSupportValue &value)
const DefaultRouteTablePropagationValue & GetDefaultRouteTablePropagation() const
void SetDefaultRouteTablePropagation(const DefaultRouteTablePropagationValue &value)
void SetTransitGatewayCidrBlocks(Aws::Vector< Aws::String > &&value)
TransitGatewayOptions & WithDefaultRouteTableAssociation(DefaultRouteTableAssociationValue &&value)
TransitGatewayOptions & WithDefaultRouteTablePropagation(DefaultRouteTablePropagationValue &&value)
void SetAssociationDefaultRouteTableId(Aws::String &&value)
void SetPropagationDefaultRouteTableId(Aws::String &&value)
TransitGatewayOptions & WithTransitGatewayCidrBlocks(Aws::Vector< 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