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

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;} /** *

If true, enables outbound communication from an EC2-Classic instance that's * linked to a local VPC using ClassicLink to instances in a peer VPC.

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

If true, enables outbound communication from an EC2-Classic instance that's * linked to a local VPC using ClassicLink to instances in a peer VPC.

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

If true, enables outbound communication from an EC2-Classic instance that's * linked to a local VPC using ClassicLink to instances in a peer VPC.

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

If true, enables outbound communication from an EC2-Classic instance that's * linked to a local VPC using ClassicLink to instances in a peer VPC.

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

If true, enables outbound communication from instances in a local VPC to an * EC2-Classic instance that's linked to a peer VPC using ClassicLink.

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

If true, enables outbound communication from instances in a local VPC to an * EC2-Classic instance that's linked to a peer VPC using ClassicLink.

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

If true, enables outbound communication from instances in a local VPC to an * EC2-Classic instance that's linked to a peer VPC using ClassicLink.

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

If true, enables outbound communication from instances in a local VPC to an * EC2-Classic instance that's linked to a peer VPC using ClassicLink.

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