/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace EC2 { namespace Model { /** *

Describes the VPC attachment options.

See Also:

AWS * API Reference

*/ class TransitGatewayVpcAttachmentOptions { public: AWS_EC2_API TransitGatewayVpcAttachmentOptions(); AWS_EC2_API TransitGatewayVpcAttachmentOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API TransitGatewayVpcAttachmentOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

Indicates whether DNS support is enabled.

*/ inline const DnsSupportValue& GetDnsSupport() const{ return m_dnsSupport; } /** *

Indicates whether DNS support is enabled.

*/ inline bool DnsSupportHasBeenSet() const { return m_dnsSupportHasBeenSet; } /** *

Indicates whether DNS support is enabled.

*/ inline void SetDnsSupport(const DnsSupportValue& value) { m_dnsSupportHasBeenSet = true; m_dnsSupport = value; } /** *

Indicates whether DNS support is enabled.

*/ inline void SetDnsSupport(DnsSupportValue&& value) { m_dnsSupportHasBeenSet = true; m_dnsSupport = std::move(value); } /** *

Indicates whether DNS support is enabled.

*/ inline TransitGatewayVpcAttachmentOptions& WithDnsSupport(const DnsSupportValue& value) { SetDnsSupport(value); return *this;} /** *

Indicates whether DNS support is enabled.

*/ inline TransitGatewayVpcAttachmentOptions& WithDnsSupport(DnsSupportValue&& value) { SetDnsSupport(std::move(value)); return *this;} /** *

Indicates whether IPv6 support is disabled.

*/ inline const Ipv6SupportValue& GetIpv6Support() const{ return m_ipv6Support; } /** *

Indicates whether IPv6 support is disabled.

*/ inline bool Ipv6SupportHasBeenSet() const { return m_ipv6SupportHasBeenSet; } /** *

Indicates whether IPv6 support is disabled.

*/ inline void SetIpv6Support(const Ipv6SupportValue& value) { m_ipv6SupportHasBeenSet = true; m_ipv6Support = value; } /** *

Indicates whether IPv6 support is disabled.

*/ inline void SetIpv6Support(Ipv6SupportValue&& value) { m_ipv6SupportHasBeenSet = true; m_ipv6Support = std::move(value); } /** *

Indicates whether IPv6 support is disabled.

*/ inline TransitGatewayVpcAttachmentOptions& WithIpv6Support(const Ipv6SupportValue& value) { SetIpv6Support(value); return *this;} /** *

Indicates whether IPv6 support is disabled.

*/ inline TransitGatewayVpcAttachmentOptions& WithIpv6Support(Ipv6SupportValue&& value) { SetIpv6Support(std::move(value)); return *this;} /** *

Indicates whether appliance mode support is enabled.

*/ inline const ApplianceModeSupportValue& GetApplianceModeSupport() const{ return m_applianceModeSupport; } /** *

Indicates whether appliance mode support is enabled.

*/ inline bool ApplianceModeSupportHasBeenSet() const { return m_applianceModeSupportHasBeenSet; } /** *

Indicates whether appliance mode support is enabled.

*/ inline void SetApplianceModeSupport(const ApplianceModeSupportValue& value) { m_applianceModeSupportHasBeenSet = true; m_applianceModeSupport = value; } /** *

Indicates whether appliance mode support is enabled.

*/ inline void SetApplianceModeSupport(ApplianceModeSupportValue&& value) { m_applianceModeSupportHasBeenSet = true; m_applianceModeSupport = std::move(value); } /** *

Indicates whether appliance mode support is enabled.

*/ inline TransitGatewayVpcAttachmentOptions& WithApplianceModeSupport(const ApplianceModeSupportValue& value) { SetApplianceModeSupport(value); return *this;} /** *

Indicates whether appliance mode support is enabled.

*/ inline TransitGatewayVpcAttachmentOptions& WithApplianceModeSupport(ApplianceModeSupportValue&& value) { SetApplianceModeSupport(std::move(value)); return *this;} private: DnsSupportValue m_dnsSupport; bool m_dnsSupportHasBeenSet = false; Ipv6SupportValue m_ipv6Support; bool m_ipv6SupportHasBeenSet = false; ApplianceModeSupportValue m_applianceModeSupport; bool m_applianceModeSupportHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws