/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#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 AWS_EC2_API ModifyTransitGatewayVpcAttachmentRequestOptions
{
public:
ModifyTransitGatewayVpcAttachmentRequestOptions();
ModifyTransitGatewayVpcAttachmentRequestOptions(const Aws::Utils::Xml::XmlNode& xmlNode);
ModifyTransitGatewayVpcAttachmentRequestOptions& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
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;}
private:
DnsSupportValue m_dnsSupport;
bool m_dnsSupportHasBeenSet;
Ipv6SupportValue m_ipv6Support;
bool m_ipv6SupportHasBeenSet;
};
} // namespace Model
} // namespace EC2
} // namespace Aws