/** * 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 a route in a transit gateway route table.

See Also:

* AWS * API Reference

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

The CIDR block used for destination matches.

*/ inline const Aws::String& GetDestinationCidr() const{ return m_destinationCidr; } /** *

The CIDR block used for destination matches.

*/ inline bool DestinationCidrHasBeenSet() const { return m_destinationCidrHasBeenSet; } /** *

The CIDR block used for destination matches.

*/ inline void SetDestinationCidr(const Aws::String& value) { m_destinationCidrHasBeenSet = true; m_destinationCidr = value; } /** *

The CIDR block used for destination matches.

*/ inline void SetDestinationCidr(Aws::String&& value) { m_destinationCidrHasBeenSet = true; m_destinationCidr = std::move(value); } /** *

The CIDR block used for destination matches.

*/ inline void SetDestinationCidr(const char* value) { m_destinationCidrHasBeenSet = true; m_destinationCidr.assign(value); } /** *

The CIDR block used for destination matches.

*/ inline TransitGatewayRouteTableRoute& WithDestinationCidr(const Aws::String& value) { SetDestinationCidr(value); return *this;} /** *

The CIDR block used for destination matches.

*/ inline TransitGatewayRouteTableRoute& WithDestinationCidr(Aws::String&& value) { SetDestinationCidr(std::move(value)); return *this;} /** *

The CIDR block used for destination matches.

*/ inline TransitGatewayRouteTableRoute& WithDestinationCidr(const char* value) { SetDestinationCidr(value); return *this;} /** *

The state of the route.

*/ inline const Aws::String& GetState() const{ return m_state; } /** *

The state of the route.

*/ inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } /** *

The state of the route.

*/ inline void SetState(const Aws::String& value) { m_stateHasBeenSet = true; m_state = value; } /** *

The state of the route.

*/ inline void SetState(Aws::String&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } /** *

The state of the route.

*/ inline void SetState(const char* value) { m_stateHasBeenSet = true; m_state.assign(value); } /** *

The state of the route.

*/ inline TransitGatewayRouteTableRoute& WithState(const Aws::String& value) { SetState(value); return *this;} /** *

The state of the route.

*/ inline TransitGatewayRouteTableRoute& WithState(Aws::String&& value) { SetState(std::move(value)); return *this;} /** *

The state of the route.

*/ inline TransitGatewayRouteTableRoute& WithState(const char* value) { SetState(value); return *this;} /** *

The route origin. The following are the possible values:

  • *

    static

  • propagated

*/ inline const Aws::String& GetRouteOrigin() const{ return m_routeOrigin; } /** *

The route origin. The following are the possible values:

  • *

    static

  • propagated

*/ inline bool RouteOriginHasBeenSet() const { return m_routeOriginHasBeenSet; } /** *

The route origin. The following are the possible values:

  • *

    static

  • propagated

*/ inline void SetRouteOrigin(const Aws::String& value) { m_routeOriginHasBeenSet = true; m_routeOrigin = value; } /** *

The route origin. The following are the possible values:

  • *

    static

  • propagated

*/ inline void SetRouteOrigin(Aws::String&& value) { m_routeOriginHasBeenSet = true; m_routeOrigin = std::move(value); } /** *

The route origin. The following are the possible values:

  • *

    static

  • propagated

*/ inline void SetRouteOrigin(const char* value) { m_routeOriginHasBeenSet = true; m_routeOrigin.assign(value); } /** *

The route origin. The following are the possible values:

  • *

    static

  • propagated

*/ inline TransitGatewayRouteTableRoute& WithRouteOrigin(const Aws::String& value) { SetRouteOrigin(value); return *this;} /** *

The route origin. The following are the possible values:

  • *

    static

  • propagated

*/ inline TransitGatewayRouteTableRoute& WithRouteOrigin(Aws::String&& value) { SetRouteOrigin(std::move(value)); return *this;} /** *

The route origin. The following are the possible values:

  • *

    static

  • propagated

*/ inline TransitGatewayRouteTableRoute& WithRouteOrigin(const char* value) { SetRouteOrigin(value); return *this;} /** *

The ID of the prefix list.

*/ inline const Aws::String& GetPrefixListId() const{ return m_prefixListId; } /** *

The ID of the prefix list.

*/ inline bool PrefixListIdHasBeenSet() const { return m_prefixListIdHasBeenSet; } /** *

The ID of the prefix list.

*/ inline void SetPrefixListId(const Aws::String& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = value; } /** *

The ID of the prefix list.

*/ inline void SetPrefixListId(Aws::String&& value) { m_prefixListIdHasBeenSet = true; m_prefixListId = std::move(value); } /** *

The ID of the prefix list.

*/ inline void SetPrefixListId(const char* value) { m_prefixListIdHasBeenSet = true; m_prefixListId.assign(value); } /** *

The ID of the prefix list.

*/ inline TransitGatewayRouteTableRoute& WithPrefixListId(const Aws::String& value) { SetPrefixListId(value); return *this;} /** *

The ID of the prefix list.

*/ inline TransitGatewayRouteTableRoute& WithPrefixListId(Aws::String&& value) { SetPrefixListId(std::move(value)); return *this;} /** *

The ID of the prefix list.

*/ inline TransitGatewayRouteTableRoute& WithPrefixListId(const char* value) { SetPrefixListId(value); return *this;} /** *

The ID of the route attachment.

*/ inline const Aws::String& GetAttachmentId() const{ return m_attachmentId; } /** *

The ID of the route attachment.

*/ inline bool AttachmentIdHasBeenSet() const { return m_attachmentIdHasBeenSet; } /** *

The ID of the route attachment.

*/ inline void SetAttachmentId(const Aws::String& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = value; } /** *

The ID of the route attachment.

*/ inline void SetAttachmentId(Aws::String&& value) { m_attachmentIdHasBeenSet = true; m_attachmentId = std::move(value); } /** *

The ID of the route attachment.

*/ inline void SetAttachmentId(const char* value) { m_attachmentIdHasBeenSet = true; m_attachmentId.assign(value); } /** *

The ID of the route attachment.

*/ inline TransitGatewayRouteTableRoute& WithAttachmentId(const Aws::String& value) { SetAttachmentId(value); return *this;} /** *

The ID of the route attachment.

*/ inline TransitGatewayRouteTableRoute& WithAttachmentId(Aws::String&& value) { SetAttachmentId(std::move(value)); return *this;} /** *

The ID of the route attachment.

*/ inline TransitGatewayRouteTableRoute& WithAttachmentId(const char* value) { SetAttachmentId(value); return *this;} /** *

The ID of the resource for the route attachment.

*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *

The ID of the resource for the route attachment.

*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *

The ID of the resource for the route attachment.

*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *

The ID of the resource for the route attachment.

*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *

The ID of the resource for the route attachment.

*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *

The ID of the resource for the route attachment.

*/ inline TransitGatewayRouteTableRoute& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *

The ID of the resource for the route attachment.

*/ inline TransitGatewayRouteTableRoute& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *

The ID of the resource for the route attachment.

*/ inline TransitGatewayRouteTableRoute& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *

The resource type for the route attachment.

*/ inline const Aws::String& GetResourceType() const{ return m_resourceType; } /** *

The resource type for the route attachment.

*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *

The resource type for the route attachment.

*/ inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *

The resource type for the route attachment.

*/ inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *

The resource type for the route attachment.

*/ inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } /** *

The resource type for the route attachment.

*/ inline TransitGatewayRouteTableRoute& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} /** *

The resource type for the route attachment.

*/ inline TransitGatewayRouteTableRoute& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} /** *

The resource type for the route attachment.

*/ inline TransitGatewayRouteTableRoute& WithResourceType(const char* value) { SetResourceType(value); return *this;} private: Aws::String m_destinationCidr; bool m_destinationCidrHasBeenSet = false; Aws::String m_state; bool m_stateHasBeenSet = false; Aws::String m_routeOrigin; bool m_routeOriginHasBeenSet = false; Aws::String m_prefixListId; bool m_prefixListIdHasBeenSet = false; Aws::String m_attachmentId; bool m_attachmentIdHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; Aws::String m_resourceType; bool m_resourceTypeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws