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

The VPC peering connection options.

See Also:

AWS * API Reference

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

If true, enables a local VPC to resolve public DNS hostnames to private IP * addresses when queried from instances in the peer VPC.

*/ inline bool GetAllowDnsResolutionFromRemoteVpc() const{ return m_allowDnsResolutionFromRemoteVpc; } /** *

If true, enables a local VPC to resolve public DNS hostnames to private IP * addresses when queried from instances in the peer VPC.

*/ inline bool AllowDnsResolutionFromRemoteVpcHasBeenSet() const { return m_allowDnsResolutionFromRemoteVpcHasBeenSet; } /** *

If true, enables a local VPC to resolve public DNS hostnames to private IP * addresses when queried from instances in the peer VPC.

*/ inline void SetAllowDnsResolutionFromRemoteVpc(bool value) { m_allowDnsResolutionFromRemoteVpcHasBeenSet = true; m_allowDnsResolutionFromRemoteVpc = value; } /** *

If true, enables a local VPC to resolve public DNS hostnames to private IP * addresses when queried from instances in the peer VPC.

*/ inline PeeringConnectionOptionsRequest& WithAllowDnsResolutionFromRemoteVpc(bool value) { SetAllowDnsResolutionFromRemoteVpc(value); return *this;} /** *

Deprecated.

*/ inline bool GetAllowEgressFromLocalClassicLinkToRemoteVpc() const{ return m_allowEgressFromLocalClassicLinkToRemoteVpc; } /** *

Deprecated.

*/ inline bool AllowEgressFromLocalClassicLinkToRemoteVpcHasBeenSet() const { return m_allowEgressFromLocalClassicLinkToRemoteVpcHasBeenSet; } /** *

Deprecated.

*/ inline void SetAllowEgressFromLocalClassicLinkToRemoteVpc(bool value) { m_allowEgressFromLocalClassicLinkToRemoteVpcHasBeenSet = true; m_allowEgressFromLocalClassicLinkToRemoteVpc = value; } /** *

Deprecated.

*/ inline PeeringConnectionOptionsRequest& WithAllowEgressFromLocalClassicLinkToRemoteVpc(bool value) { SetAllowEgressFromLocalClassicLinkToRemoteVpc(value); return *this;} /** *

Deprecated.

*/ inline bool GetAllowEgressFromLocalVpcToRemoteClassicLink() const{ return m_allowEgressFromLocalVpcToRemoteClassicLink; } /** *

Deprecated.

*/ inline bool AllowEgressFromLocalVpcToRemoteClassicLinkHasBeenSet() const { return m_allowEgressFromLocalVpcToRemoteClassicLinkHasBeenSet; } /** *

Deprecated.

*/ inline void SetAllowEgressFromLocalVpcToRemoteClassicLink(bool value) { m_allowEgressFromLocalVpcToRemoteClassicLinkHasBeenSet = true; m_allowEgressFromLocalVpcToRemoteClassicLink = value; } /** *

Deprecated.

*/ inline PeeringConnectionOptionsRequest& WithAllowEgressFromLocalVpcToRemoteClassicLink(bool value) { SetAllowEgressFromLocalVpcToRemoteClassicLink(value); return *this;} private: bool m_allowDnsResolutionFromRemoteVpc; bool m_allowDnsResolutionFromRemoteVpcHasBeenSet = false; bool m_allowEgressFromLocalClassicLinkToRemoteVpc; bool m_allowEgressFromLocalClassicLinkToRemoteVpcHasBeenSet = false; bool m_allowEgressFromLocalVpcToRemoteClassicLink; bool m_allowEgressFromLocalVpcToRemoteClassicLinkHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws