AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AwsEc2TransitGatewayDetails.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace SecurityHub
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_SECURITYHUB_API AwsEc2TransitGatewayDetails() = default;
40 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 AwsEc2TransitGatewayDetails& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template<typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 AwsEc2TransitGatewayDetails& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
72 inline const Aws::String& GetDefaultRouteTablePropagation() const { return m_defaultRouteTablePropagation; }
73 inline bool DefaultRouteTablePropagationHasBeenSet() const { return m_defaultRouteTablePropagationHasBeenSet; }
74 template<typename DefaultRouteTablePropagationT = Aws::String>
75 void SetDefaultRouteTablePropagation(DefaultRouteTablePropagationT&& value) { m_defaultRouteTablePropagationHasBeenSet = true; m_defaultRouteTablePropagation = std::forward<DefaultRouteTablePropagationT>(value); }
76 template<typename DefaultRouteTablePropagationT = Aws::String>
77 AwsEc2TransitGatewayDetails& WithDefaultRouteTablePropagation(DefaultRouteTablePropagationT&& value) { SetDefaultRouteTablePropagation(std::forward<DefaultRouteTablePropagationT>(value)); return *this;}
79
81
84 inline const Aws::String& GetAutoAcceptSharedAttachments() const { return m_autoAcceptSharedAttachments; }
85 inline bool AutoAcceptSharedAttachmentsHasBeenSet() const { return m_autoAcceptSharedAttachmentsHasBeenSet; }
86 template<typename AutoAcceptSharedAttachmentsT = Aws::String>
87 void SetAutoAcceptSharedAttachments(AutoAcceptSharedAttachmentsT&& value) { m_autoAcceptSharedAttachmentsHasBeenSet = true; m_autoAcceptSharedAttachments = std::forward<AutoAcceptSharedAttachmentsT>(value); }
88 template<typename AutoAcceptSharedAttachmentsT = Aws::String>
89 AwsEc2TransitGatewayDetails& WithAutoAcceptSharedAttachments(AutoAcceptSharedAttachmentsT&& value) { SetAutoAcceptSharedAttachments(std::forward<AutoAcceptSharedAttachmentsT>(value)); return *this;}
91
93
97 inline const Aws::String& GetDefaultRouteTableAssociation() const { return m_defaultRouteTableAssociation; }
98 inline bool DefaultRouteTableAssociationHasBeenSet() const { return m_defaultRouteTableAssociationHasBeenSet; }
99 template<typename DefaultRouteTableAssociationT = Aws::String>
100 void SetDefaultRouteTableAssociation(DefaultRouteTableAssociationT&& value) { m_defaultRouteTableAssociationHasBeenSet = true; m_defaultRouteTableAssociation = std::forward<DefaultRouteTableAssociationT>(value); }
101 template<typename DefaultRouteTableAssociationT = Aws::String>
102 AwsEc2TransitGatewayDetails& WithDefaultRouteTableAssociation(DefaultRouteTableAssociationT&& value) { SetDefaultRouteTableAssociation(std::forward<DefaultRouteTableAssociationT>(value)); return *this;}
104
106
109 inline const Aws::Vector<Aws::String>& GetTransitGatewayCidrBlocks() const { return m_transitGatewayCidrBlocks; }
110 inline bool TransitGatewayCidrBlocksHasBeenSet() const { return m_transitGatewayCidrBlocksHasBeenSet; }
111 template<typename TransitGatewayCidrBlocksT = Aws::Vector<Aws::String>>
112 void SetTransitGatewayCidrBlocks(TransitGatewayCidrBlocksT&& value) { m_transitGatewayCidrBlocksHasBeenSet = true; m_transitGatewayCidrBlocks = std::forward<TransitGatewayCidrBlocksT>(value); }
113 template<typename TransitGatewayCidrBlocksT = Aws::Vector<Aws::String>>
114 AwsEc2TransitGatewayDetails& WithTransitGatewayCidrBlocks(TransitGatewayCidrBlocksT&& value) { SetTransitGatewayCidrBlocks(std::forward<TransitGatewayCidrBlocksT>(value)); return *this;}
115 template<typename TransitGatewayCidrBlocksT = Aws::String>
116 AwsEc2TransitGatewayDetails& AddTransitGatewayCidrBlocks(TransitGatewayCidrBlocksT&& value) { m_transitGatewayCidrBlocksHasBeenSet = true; m_transitGatewayCidrBlocks.emplace_back(std::forward<TransitGatewayCidrBlocksT>(value)); return *this; }
118
120
123 inline const Aws::String& GetAssociationDefaultRouteTableId() const { return m_associationDefaultRouteTableId; }
124 inline bool AssociationDefaultRouteTableIdHasBeenSet() const { return m_associationDefaultRouteTableIdHasBeenSet; }
125 template<typename AssociationDefaultRouteTableIdT = Aws::String>
126 void SetAssociationDefaultRouteTableId(AssociationDefaultRouteTableIdT&& value) { m_associationDefaultRouteTableIdHasBeenSet = true; m_associationDefaultRouteTableId = std::forward<AssociationDefaultRouteTableIdT>(value); }
127 template<typename AssociationDefaultRouteTableIdT = Aws::String>
128 AwsEc2TransitGatewayDetails& WithAssociationDefaultRouteTableId(AssociationDefaultRouteTableIdT&& value) { SetAssociationDefaultRouteTableId(std::forward<AssociationDefaultRouteTableIdT>(value)); return *this;}
130
132
135 inline const Aws::String& GetPropagationDefaultRouteTableId() const { return m_propagationDefaultRouteTableId; }
136 inline bool PropagationDefaultRouteTableIdHasBeenSet() const { return m_propagationDefaultRouteTableIdHasBeenSet; }
137 template<typename PropagationDefaultRouteTableIdT = Aws::String>
138 void SetPropagationDefaultRouteTableId(PropagationDefaultRouteTableIdT&& value) { m_propagationDefaultRouteTableIdHasBeenSet = true; m_propagationDefaultRouteTableId = std::forward<PropagationDefaultRouteTableIdT>(value); }
139 template<typename PropagationDefaultRouteTableIdT = Aws::String>
140 AwsEc2TransitGatewayDetails& WithPropagationDefaultRouteTableId(PropagationDefaultRouteTableIdT&& value) { SetPropagationDefaultRouteTableId(std::forward<PropagationDefaultRouteTableIdT>(value)); return *this;}
142
144
147 inline const Aws::String& GetVpnEcmpSupport() const { return m_vpnEcmpSupport; }
148 inline bool VpnEcmpSupportHasBeenSet() const { return m_vpnEcmpSupportHasBeenSet; }
149 template<typename VpnEcmpSupportT = Aws::String>
150 void SetVpnEcmpSupport(VpnEcmpSupportT&& value) { m_vpnEcmpSupportHasBeenSet = true; m_vpnEcmpSupport = std::forward<VpnEcmpSupportT>(value); }
151 template<typename VpnEcmpSupportT = Aws::String>
152 AwsEc2TransitGatewayDetails& WithVpnEcmpSupport(VpnEcmpSupportT&& value) { SetVpnEcmpSupport(std::forward<VpnEcmpSupportT>(value)); return *this;}
154
156
159 inline const Aws::String& GetDnsSupport() const { return m_dnsSupport; }
160 inline bool DnsSupportHasBeenSet() const { return m_dnsSupportHasBeenSet; }
161 template<typename DnsSupportT = Aws::String>
162 void SetDnsSupport(DnsSupportT&& value) { m_dnsSupportHasBeenSet = true; m_dnsSupport = std::forward<DnsSupportT>(value); }
163 template<typename DnsSupportT = Aws::String>
164 AwsEc2TransitGatewayDetails& WithDnsSupport(DnsSupportT&& value) { SetDnsSupport(std::forward<DnsSupportT>(value)); return *this;}
166
168
171 inline const Aws::String& GetMulticastSupport() const { return m_multicastSupport; }
172 inline bool MulticastSupportHasBeenSet() const { return m_multicastSupportHasBeenSet; }
173 template<typename MulticastSupportT = Aws::String>
174 void SetMulticastSupport(MulticastSupportT&& value) { m_multicastSupportHasBeenSet = true; m_multicastSupport = std::forward<MulticastSupportT>(value); }
175 template<typename MulticastSupportT = Aws::String>
176 AwsEc2TransitGatewayDetails& WithMulticastSupport(MulticastSupportT&& value) { SetMulticastSupport(std::forward<MulticastSupportT>(value)); return *this;}
178
180
184 inline int GetAmazonSideAsn() const { return m_amazonSideAsn; }
185 inline bool AmazonSideAsnHasBeenSet() const { return m_amazonSideAsnHasBeenSet; }
186 inline void SetAmazonSideAsn(int value) { m_amazonSideAsnHasBeenSet = true; m_amazonSideAsn = value; }
187 inline AwsEc2TransitGatewayDetails& WithAmazonSideAsn(int value) { SetAmazonSideAsn(value); return *this;}
189 private:
190
191 Aws::String m_id;
192 bool m_idHasBeenSet = false;
193
194 Aws::String m_description;
195 bool m_descriptionHasBeenSet = false;
196
197 Aws::String m_defaultRouteTablePropagation;
198 bool m_defaultRouteTablePropagationHasBeenSet = false;
199
200 Aws::String m_autoAcceptSharedAttachments;
201 bool m_autoAcceptSharedAttachmentsHasBeenSet = false;
202
203 Aws::String m_defaultRouteTableAssociation;
204 bool m_defaultRouteTableAssociationHasBeenSet = false;
205
206 Aws::Vector<Aws::String> m_transitGatewayCidrBlocks;
207 bool m_transitGatewayCidrBlocksHasBeenSet = false;
208
209 Aws::String m_associationDefaultRouteTableId;
210 bool m_associationDefaultRouteTableIdHasBeenSet = false;
211
212 Aws::String m_propagationDefaultRouteTableId;
213 bool m_propagationDefaultRouteTableIdHasBeenSet = false;
214
215 Aws::String m_vpnEcmpSupport;
216 bool m_vpnEcmpSupportHasBeenSet = false;
217
218 Aws::String m_dnsSupport;
219 bool m_dnsSupportHasBeenSet = false;
220
221 Aws::String m_multicastSupport;
222 bool m_multicastSupportHasBeenSet = false;
223
224 int m_amazonSideAsn{0};
225 bool m_amazonSideAsnHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace SecurityHub
230} // namespace Aws
AwsEc2TransitGatewayDetails & WithDnsSupport(DnsSupportT &&value)
AwsEc2TransitGatewayDetails & WithVpnEcmpSupport(VpnEcmpSupportT &&value)
void SetDefaultRouteTablePropagation(DefaultRouteTablePropagationT &&value)
AwsEc2TransitGatewayDetails & WithDefaultRouteTablePropagation(DefaultRouteTablePropagationT &&value)
AWS_SECURITYHUB_API AwsEc2TransitGatewayDetails()=default
AwsEc2TransitGatewayDetails & WithAssociationDefaultRouteTableId(AssociationDefaultRouteTableIdT &&value)
void SetDefaultRouteTableAssociation(DefaultRouteTableAssociationT &&value)
void SetAutoAcceptSharedAttachments(AutoAcceptSharedAttachmentsT &&value)
AwsEc2TransitGatewayDetails & WithDefaultRouteTableAssociation(DefaultRouteTableAssociationT &&value)
AWS_SECURITYHUB_API AwsEc2TransitGatewayDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPropagationDefaultRouteTableId(PropagationDefaultRouteTableIdT &&value)
AwsEc2TransitGatewayDetails & AddTransitGatewayCidrBlocks(TransitGatewayCidrBlocksT &&value)
AwsEc2TransitGatewayDetails & WithAutoAcceptSharedAttachments(AutoAcceptSharedAttachmentsT &&value)
AwsEc2TransitGatewayDetails & WithMulticastSupport(MulticastSupportT &&value)
AwsEc2TransitGatewayDetails & WithTransitGatewayCidrBlocks(TransitGatewayCidrBlocksT &&value)
AwsEc2TransitGatewayDetails & WithPropagationDefaultRouteTableId(PropagationDefaultRouteTableIdT &&value)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsEc2TransitGatewayDetails & WithDescription(DescriptionT &&value)
AWS_SECURITYHUB_API AwsEc2TransitGatewayDetails(Aws::Utils::Json::JsonView jsonValue)
void SetTransitGatewayCidrBlocks(TransitGatewayCidrBlocksT &&value)
void SetAssociationDefaultRouteTableId(AssociationDefaultRouteTableIdT &&value)
const Aws::Vector< Aws::String > & GetTransitGatewayCidrBlocks() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue