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

Describes dynamic routing for the transit gateway peering * attachment.

See Also:

AWS * API Reference

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

Describes whether dynamic routing is enabled or disabled for the transit * gateway peering attachment.

*/ inline const DynamicRoutingValue& GetDynamicRouting() const{ return m_dynamicRouting; } /** *

Describes whether dynamic routing is enabled or disabled for the transit * gateway peering attachment.

*/ inline bool DynamicRoutingHasBeenSet() const { return m_dynamicRoutingHasBeenSet; } /** *

Describes whether dynamic routing is enabled or disabled for the transit * gateway peering attachment.

*/ inline void SetDynamicRouting(const DynamicRoutingValue& value) { m_dynamicRoutingHasBeenSet = true; m_dynamicRouting = value; } /** *

Describes whether dynamic routing is enabled or disabled for the transit * gateway peering attachment.

*/ inline void SetDynamicRouting(DynamicRoutingValue&& value) { m_dynamicRoutingHasBeenSet = true; m_dynamicRouting = std::move(value); } /** *

Describes whether dynamic routing is enabled or disabled for the transit * gateway peering attachment.

*/ inline TransitGatewayPeeringAttachmentOptions& WithDynamicRouting(const DynamicRoutingValue& value) { SetDynamicRouting(value); return *this;} /** *

Describes whether dynamic routing is enabled or disabled for the transit * gateway peering attachment.

*/ inline TransitGatewayPeeringAttachmentOptions& WithDynamicRouting(DynamicRoutingValue&& value) { SetDynamicRouting(std::move(value)); return *this;} private: DynamicRoutingValue m_dynamicRouting; bool m_dynamicRoutingHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws