/** * 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 options for a VPC attachment.

See Also:

AWS * API Reference

*/ class ModifyTransitGatewayVpcAttachmentRequestOptions { public: AWS_EC2_API ModifyTransitGatewayVpcAttachmentRequestOptions(); AWS_EC2_API ModifyTransitGatewayVpcAttachmentRequestOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API ModifyTransitGatewayVpcAttachmentRequestOptions& 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; /** *

Enable or disable DNS support. The default is enable.

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

Enable or disable DNS support. The default is enable.

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

Enable or disable DNS support. The default is enable.

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

Enable or disable DNS support. The default is enable.

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

Enable or disable DNS support. The default is enable.

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

Enable or disable DNS support. The default is enable.

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

Enable or disable IPv6 support. The default is enable.

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

Enable or disable IPv6 support. The default is enable.

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

Enable or disable IPv6 support. The default is enable.

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

Enable or disable IPv6 support. The default is enable.

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

Enable or disable IPv6 support. The default is enable.

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

Enable or disable IPv6 support. The default is enable.

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

Enable or disable support for appliance mode. If enabled, a traffic flow * between a source and destination uses the same Availability Zone for the VPC * attachment for the lifetime of that flow. The default is * disable.

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

Enable or disable support for appliance mode. If enabled, a traffic flow * between a source and destination uses the same Availability Zone for the VPC * attachment for the lifetime of that flow. The default is * disable.

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

Enable or disable support for appliance mode. If enabled, a traffic flow * between a source and destination uses the same Availability Zone for the VPC * attachment for the lifetime of that flow. The default is * disable.

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

Enable or disable support for appliance mode. If enabled, a traffic flow * between a source and destination uses the same Availability Zone for the VPC * attachment for the lifetime of that flow. The default is * disable.

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

Enable or disable support for appliance mode. If enabled, a traffic flow * between a source and destination uses the same Availability Zone for the VPC * attachment for the lifetime of that flow. The default is * disable.

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

Enable or disable support for appliance mode. If enabled, a traffic flow * between a source and destination uses the same Availability Zone for the VPC * attachment for the lifetime of that flow. The default is * disable.

*/ inline ModifyTransitGatewayVpcAttachmentRequestOptions& 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