AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
AwsEc2TransitGatewayDetails.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/securityhub/SecurityHub_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace SecurityHub {
21namespace Model {
22
31 public:
32 AWS_SECURITYHUB_API AwsEc2TransitGatewayDetails() = default;
35 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetId() const { return m_id; }
42 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
43 template <typename IdT = Aws::String>
44 void SetId(IdT&& value) {
45 m_idHasBeenSet = true;
46 m_id = std::forward<IdT>(value);
47 }
48 template <typename IdT = Aws::String>
50 SetId(std::forward<IdT>(value));
51 return *this;
52 }
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) {
63 m_descriptionHasBeenSet = true;
64 m_description = std::forward<DescriptionT>(value);
65 }
66 template <typename DescriptionT = Aws::String>
68 SetDescription(std::forward<DescriptionT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetDefaultRouteTablePropagation() const { return m_defaultRouteTablePropagation; }
79 inline bool DefaultRouteTablePropagationHasBeenSet() const { return m_defaultRouteTablePropagationHasBeenSet; }
80 template <typename DefaultRouteTablePropagationT = Aws::String>
81 void SetDefaultRouteTablePropagation(DefaultRouteTablePropagationT&& value) {
82 m_defaultRouteTablePropagationHasBeenSet = true;
83 m_defaultRouteTablePropagation = std::forward<DefaultRouteTablePropagationT>(value);
84 }
85 template <typename DefaultRouteTablePropagationT = Aws::String>
86 AwsEc2TransitGatewayDetails& WithDefaultRouteTablePropagation(DefaultRouteTablePropagationT&& value) {
87 SetDefaultRouteTablePropagation(std::forward<DefaultRouteTablePropagationT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::String& GetAutoAcceptSharedAttachments() const { return m_autoAcceptSharedAttachments; }
97 inline bool AutoAcceptSharedAttachmentsHasBeenSet() const { return m_autoAcceptSharedAttachmentsHasBeenSet; }
98 template <typename AutoAcceptSharedAttachmentsT = Aws::String>
99 void SetAutoAcceptSharedAttachments(AutoAcceptSharedAttachmentsT&& value) {
100 m_autoAcceptSharedAttachmentsHasBeenSet = true;
101 m_autoAcceptSharedAttachments = std::forward<AutoAcceptSharedAttachmentsT>(value);
102 }
103 template <typename AutoAcceptSharedAttachmentsT = Aws::String>
104 AwsEc2TransitGatewayDetails& WithAutoAcceptSharedAttachments(AutoAcceptSharedAttachmentsT&& value) {
105 SetAutoAcceptSharedAttachments(std::forward<AutoAcceptSharedAttachmentsT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetDefaultRouteTableAssociation() const { return m_defaultRouteTableAssociation; }
116 inline bool DefaultRouteTableAssociationHasBeenSet() const { return m_defaultRouteTableAssociationHasBeenSet; }
117 template <typename DefaultRouteTableAssociationT = Aws::String>
118 void SetDefaultRouteTableAssociation(DefaultRouteTableAssociationT&& value) {
119 m_defaultRouteTableAssociationHasBeenSet = true;
120 m_defaultRouteTableAssociation = std::forward<DefaultRouteTableAssociationT>(value);
121 }
122 template <typename DefaultRouteTableAssociationT = Aws::String>
123 AwsEc2TransitGatewayDetails& WithDefaultRouteTableAssociation(DefaultRouteTableAssociationT&& value) {
124 SetDefaultRouteTableAssociation(std::forward<DefaultRouteTableAssociationT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::Vector<Aws::String>& GetTransitGatewayCidrBlocks() const { return m_transitGatewayCidrBlocks; }
134 inline bool TransitGatewayCidrBlocksHasBeenSet() const { return m_transitGatewayCidrBlocksHasBeenSet; }
135 template <typename TransitGatewayCidrBlocksT = Aws::Vector<Aws::String>>
136 void SetTransitGatewayCidrBlocks(TransitGatewayCidrBlocksT&& value) {
137 m_transitGatewayCidrBlocksHasBeenSet = true;
138 m_transitGatewayCidrBlocks = std::forward<TransitGatewayCidrBlocksT>(value);
139 }
140 template <typename TransitGatewayCidrBlocksT = Aws::Vector<Aws::String>>
141 AwsEc2TransitGatewayDetails& WithTransitGatewayCidrBlocks(TransitGatewayCidrBlocksT&& value) {
142 SetTransitGatewayCidrBlocks(std::forward<TransitGatewayCidrBlocksT>(value));
143 return *this;
144 }
145 template <typename TransitGatewayCidrBlocksT = Aws::String>
146 AwsEc2TransitGatewayDetails& AddTransitGatewayCidrBlocks(TransitGatewayCidrBlocksT&& value) {
147 m_transitGatewayCidrBlocksHasBeenSet = true;
148 m_transitGatewayCidrBlocks.emplace_back(std::forward<TransitGatewayCidrBlocksT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetAssociationDefaultRouteTableId() const { return m_associationDefaultRouteTableId; }
158 inline bool AssociationDefaultRouteTableIdHasBeenSet() const { return m_associationDefaultRouteTableIdHasBeenSet; }
159 template <typename AssociationDefaultRouteTableIdT = Aws::String>
160 void SetAssociationDefaultRouteTableId(AssociationDefaultRouteTableIdT&& value) {
161 m_associationDefaultRouteTableIdHasBeenSet = true;
162 m_associationDefaultRouteTableId = std::forward<AssociationDefaultRouteTableIdT>(value);
163 }
164 template <typename AssociationDefaultRouteTableIdT = Aws::String>
165 AwsEc2TransitGatewayDetails& WithAssociationDefaultRouteTableId(AssociationDefaultRouteTableIdT&& value) {
166 SetAssociationDefaultRouteTableId(std::forward<AssociationDefaultRouteTableIdT>(value));
167 return *this;
168 }
170
172
175 inline const Aws::String& GetPropagationDefaultRouteTableId() const { return m_propagationDefaultRouteTableId; }
176 inline bool PropagationDefaultRouteTableIdHasBeenSet() const { return m_propagationDefaultRouteTableIdHasBeenSet; }
177 template <typename PropagationDefaultRouteTableIdT = Aws::String>
178 void SetPropagationDefaultRouteTableId(PropagationDefaultRouteTableIdT&& value) {
179 m_propagationDefaultRouteTableIdHasBeenSet = true;
180 m_propagationDefaultRouteTableId = std::forward<PropagationDefaultRouteTableIdT>(value);
181 }
182 template <typename PropagationDefaultRouteTableIdT = Aws::String>
183 AwsEc2TransitGatewayDetails& WithPropagationDefaultRouteTableId(PropagationDefaultRouteTableIdT&& value) {
184 SetPropagationDefaultRouteTableId(std::forward<PropagationDefaultRouteTableIdT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::String& GetVpnEcmpSupport() const { return m_vpnEcmpSupport; }
194 inline bool VpnEcmpSupportHasBeenSet() const { return m_vpnEcmpSupportHasBeenSet; }
195 template <typename VpnEcmpSupportT = Aws::String>
196 void SetVpnEcmpSupport(VpnEcmpSupportT&& value) {
197 m_vpnEcmpSupportHasBeenSet = true;
198 m_vpnEcmpSupport = std::forward<VpnEcmpSupportT>(value);
199 }
200 template <typename VpnEcmpSupportT = Aws::String>
202 SetVpnEcmpSupport(std::forward<VpnEcmpSupportT>(value));
203 return *this;
204 }
206
208
211 inline const Aws::String& GetDnsSupport() const { return m_dnsSupport; }
212 inline bool DnsSupportHasBeenSet() const { return m_dnsSupportHasBeenSet; }
213 template <typename DnsSupportT = Aws::String>
214 void SetDnsSupport(DnsSupportT&& value) {
215 m_dnsSupportHasBeenSet = true;
216 m_dnsSupport = std::forward<DnsSupportT>(value);
217 }
218 template <typename DnsSupportT = Aws::String>
220 SetDnsSupport(std::forward<DnsSupportT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetMulticastSupport() const { return m_multicastSupport; }
230 inline bool MulticastSupportHasBeenSet() const { return m_multicastSupportHasBeenSet; }
231 template <typename MulticastSupportT = Aws::String>
232 void SetMulticastSupport(MulticastSupportT&& value) {
233 m_multicastSupportHasBeenSet = true;
234 m_multicastSupport = std::forward<MulticastSupportT>(value);
235 }
236 template <typename MulticastSupportT = Aws::String>
238 SetMulticastSupport(std::forward<MulticastSupportT>(value));
239 return *this;
240 }
242
244
248 inline int GetAmazonSideAsn() const { return m_amazonSideAsn; }
249 inline bool AmazonSideAsnHasBeenSet() const { return m_amazonSideAsnHasBeenSet; }
250 inline void SetAmazonSideAsn(int value) {
251 m_amazonSideAsnHasBeenSet = true;
252 m_amazonSideAsn = value;
253 }
255 SetAmazonSideAsn(value);
256 return *this;
257 }
259 private:
260 Aws::String m_id;
261
262 Aws::String m_description;
263
264 Aws::String m_defaultRouteTablePropagation;
265
266 Aws::String m_autoAcceptSharedAttachments;
267
268 Aws::String m_defaultRouteTableAssociation;
269
270 Aws::Vector<Aws::String> m_transitGatewayCidrBlocks;
271
272 Aws::String m_associationDefaultRouteTableId;
273
274 Aws::String m_propagationDefaultRouteTableId;
275
276 Aws::String m_vpnEcmpSupport;
277
278 Aws::String m_dnsSupport;
279
280 Aws::String m_multicastSupport;
281
282 int m_amazonSideAsn{0};
283 bool m_idHasBeenSet = false;
284 bool m_descriptionHasBeenSet = false;
285 bool m_defaultRouteTablePropagationHasBeenSet = false;
286 bool m_autoAcceptSharedAttachmentsHasBeenSet = false;
287 bool m_defaultRouteTableAssociationHasBeenSet = false;
288 bool m_transitGatewayCidrBlocksHasBeenSet = false;
289 bool m_associationDefaultRouteTableIdHasBeenSet = false;
290 bool m_propagationDefaultRouteTableIdHasBeenSet = false;
291 bool m_vpnEcmpSupportHasBeenSet = false;
292 bool m_dnsSupportHasBeenSet = false;
293 bool m_multicastSupportHasBeenSet = false;
294 bool m_amazonSideAsnHasBeenSet = false;
295};
296
297} // namespace Model
298} // namespace SecurityHub
299} // 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