/** * 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 Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace NetworkManager { namespace Model { /** *

Describes a transit gateway route table attachment.

See Also:

* AWS * API Reference

*/ class TransitGatewayRouteTableAttachment { public: AWS_NETWORKMANAGER_API TransitGatewayRouteTableAttachment(); AWS_NETWORKMANAGER_API TransitGatewayRouteTableAttachment(Aws::Utils::Json::JsonView jsonValue); AWS_NETWORKMANAGER_API TransitGatewayRouteTableAttachment& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_NETWORKMANAGER_API Aws::Utils::Json::JsonValue Jsonize() const; inline const Attachment& GetAttachment() const{ return m_attachment; } inline bool AttachmentHasBeenSet() const { return m_attachmentHasBeenSet; } inline void SetAttachment(const Attachment& value) { m_attachmentHasBeenSet = true; m_attachment = value; } inline void SetAttachment(Attachment&& value) { m_attachmentHasBeenSet = true; m_attachment = std::move(value); } inline TransitGatewayRouteTableAttachment& WithAttachment(const Attachment& value) { SetAttachment(value); return *this;} inline TransitGatewayRouteTableAttachment& WithAttachment(Attachment&& value) { SetAttachment(std::move(value)); return *this;} /** *

The ID of the peering attachment.

*/ inline const Aws::String& GetPeeringId() const{ return m_peeringId; } /** *

The ID of the peering attachment.

*/ inline bool PeeringIdHasBeenSet() const { return m_peeringIdHasBeenSet; } /** *

The ID of the peering attachment.

*/ inline void SetPeeringId(const Aws::String& value) { m_peeringIdHasBeenSet = true; m_peeringId = value; } /** *

The ID of the peering attachment.

*/ inline void SetPeeringId(Aws::String&& value) { m_peeringIdHasBeenSet = true; m_peeringId = std::move(value); } /** *

The ID of the peering attachment.

*/ inline void SetPeeringId(const char* value) { m_peeringIdHasBeenSet = true; m_peeringId.assign(value); } /** *

The ID of the peering attachment.

*/ inline TransitGatewayRouteTableAttachment& WithPeeringId(const Aws::String& value) { SetPeeringId(value); return *this;} /** *

The ID of the peering attachment.

*/ inline TransitGatewayRouteTableAttachment& WithPeeringId(Aws::String&& value) { SetPeeringId(std::move(value)); return *this;} /** *

The ID of the peering attachment.

*/ inline TransitGatewayRouteTableAttachment& WithPeeringId(const char* value) { SetPeeringId(value); return *this;} /** *

The ARN of the transit gateway attachment route table. For example, * "TransitGatewayRouteTableArn": * "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456".

*/ inline const Aws::String& GetTransitGatewayRouteTableArn() const{ return m_transitGatewayRouteTableArn; } /** *

The ARN of the transit gateway attachment route table. For example, * "TransitGatewayRouteTableArn": * "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456".

*/ inline bool TransitGatewayRouteTableArnHasBeenSet() const { return m_transitGatewayRouteTableArnHasBeenSet; } /** *

The ARN of the transit gateway attachment route table. For example, * "TransitGatewayRouteTableArn": * "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456".

*/ inline void SetTransitGatewayRouteTableArn(const Aws::String& value) { m_transitGatewayRouteTableArnHasBeenSet = true; m_transitGatewayRouteTableArn = value; } /** *

The ARN of the transit gateway attachment route table. For example, * "TransitGatewayRouteTableArn": * "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456".

*/ inline void SetTransitGatewayRouteTableArn(Aws::String&& value) { m_transitGatewayRouteTableArnHasBeenSet = true; m_transitGatewayRouteTableArn = std::move(value); } /** *

The ARN of the transit gateway attachment route table. For example, * "TransitGatewayRouteTableArn": * "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456".

*/ inline void SetTransitGatewayRouteTableArn(const char* value) { m_transitGatewayRouteTableArnHasBeenSet = true; m_transitGatewayRouteTableArn.assign(value); } /** *

The ARN of the transit gateway attachment route table. For example, * "TransitGatewayRouteTableArn": * "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456".

*/ inline TransitGatewayRouteTableAttachment& WithTransitGatewayRouteTableArn(const Aws::String& value) { SetTransitGatewayRouteTableArn(value); return *this;} /** *

The ARN of the transit gateway attachment route table. For example, * "TransitGatewayRouteTableArn": * "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456".

*/ inline TransitGatewayRouteTableAttachment& WithTransitGatewayRouteTableArn(Aws::String&& value) { SetTransitGatewayRouteTableArn(std::move(value)); return *this;} /** *

The ARN of the transit gateway attachment route table. For example, * "TransitGatewayRouteTableArn": * "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456".

*/ inline TransitGatewayRouteTableAttachment& WithTransitGatewayRouteTableArn(const char* value) { SetTransitGatewayRouteTableArn(value); return *this;} private: Attachment m_attachment; bool m_attachmentHasBeenSet = false; Aws::String m_peeringId; bool m_peeringIdHasBeenSet = false; Aws::String m_transitGatewayRouteTableArn; bool m_transitGatewayRouteTableArnHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws