/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace NetworkManager { namespace Model { /** */ class CreateTransitGatewayRouteTableAttachmentRequest : public NetworkManagerRequest { public: AWS_NETWORKMANAGER_API CreateTransitGatewayRouteTableAttachmentRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateTransitGatewayRouteTableAttachment"; } AWS_NETWORKMANAGER_API Aws::String SerializePayload() const override; /** *

The ID of the peer for the

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

The ID of the peer for the

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

The ID of the peer for the

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

The ID of the peer for the

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

The ID of the peer for the

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

The ID of the peer for the

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

The ID of the peer for the

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

The ID of the peer for the

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

The ARN of the transit gateway route table for the attachment request. 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 route table for the attachment request. 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 route table for the attachment request. 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 route table for the attachment request. 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 route table for the attachment request. 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 route table for the attachment request. For * example, "TransitGatewayRouteTableArn": * "arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456".

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

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

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

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

*/ inline CreateTransitGatewayRouteTableAttachmentRequest& WithTransitGatewayRouteTableArn(const char* value) { SetTransitGatewayRouteTableArn(value); return *this;} /** *

The list of key-value tags associated with the request.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

The list of key-value tags associated with the request.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The list of key-value tags associated with the request.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The list of key-value tags associated with the request.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The list of key-value tags associated with the request.

*/ inline CreateTransitGatewayRouteTableAttachmentRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

The list of key-value tags associated with the request.

*/ inline CreateTransitGatewayRouteTableAttachmentRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

The list of key-value tags associated with the request.

*/ inline CreateTransitGatewayRouteTableAttachmentRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

The list of key-value tags associated with the request.

*/ inline CreateTransitGatewayRouteTableAttachmentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } /** *

The client token associated with the request.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The client token associated with the request.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The client token associated with the request.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The client token associated with the request.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The client token associated with the request.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The client token associated with the request.

*/ inline CreateTransitGatewayRouteTableAttachmentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The client token associated with the request.

*/ inline CreateTransitGatewayRouteTableAttachmentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The client token associated with the request.

*/ inline CreateTransitGatewayRouteTableAttachmentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_peeringId; bool m_peeringIdHasBeenSet = false; Aws::String m_transitGatewayRouteTableArn; bool m_transitGatewayRouteTableArnHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace NetworkManager } // namespace Aws