/** * 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 { /** *

Describes the VPC peering connection options.

See Also:

AWS * API Reference

*/ class PeeringConnectionOptions { public: AWS_EC2_API PeeringConnectionOptions(); AWS_EC2_API PeeringConnectionOptions(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API PeeringConnectionOptions& 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, the public DNS hostnames of instances in the specified VPC resolve * to private IP addresses when queried from instances in the peer VPC.

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

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

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

If true, the public DNS hostnames of instances in the specified VPC resolve * 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, the public DNS hostnames of instances in the specified VPC resolve * to private IP addresses when queried from instances in the peer VPC.

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