/** * 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 EC2 { namespace Model { /** */ class CreateTransitGatewayPeeringAttachmentRequest : public EC2Request { public: AWS_EC2_API CreateTransitGatewayPeeringAttachmentRequest(); // 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 "CreateTransitGatewayPeeringAttachment"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The ID of the transit gateway.

*/ inline const Aws::String& GetTransitGatewayId() const{ return m_transitGatewayId; } /** *

The ID of the transit gateway.

*/ inline bool TransitGatewayIdHasBeenSet() const { return m_transitGatewayIdHasBeenSet; } /** *

The ID of the transit gateway.

*/ inline void SetTransitGatewayId(const Aws::String& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = value; } /** *

The ID of the transit gateway.

*/ inline void SetTransitGatewayId(Aws::String&& value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId = std::move(value); } /** *

The ID of the transit gateway.

*/ inline void SetTransitGatewayId(const char* value) { m_transitGatewayIdHasBeenSet = true; m_transitGatewayId.assign(value); } /** *

The ID of the transit gateway.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithTransitGatewayId(const Aws::String& value) { SetTransitGatewayId(value); return *this;} /** *

The ID of the transit gateway.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithTransitGatewayId(Aws::String&& value) { SetTransitGatewayId(std::move(value)); return *this;} /** *

The ID of the transit gateway.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithTransitGatewayId(const char* value) { SetTransitGatewayId(value); return *this;} /** *

The ID of the peer transit gateway with which to create the peering * attachment.

*/ inline const Aws::String& GetPeerTransitGatewayId() const{ return m_peerTransitGatewayId; } /** *

The ID of the peer transit gateway with which to create the peering * attachment.

*/ inline bool PeerTransitGatewayIdHasBeenSet() const { return m_peerTransitGatewayIdHasBeenSet; } /** *

The ID of the peer transit gateway with which to create the peering * attachment.

*/ inline void SetPeerTransitGatewayId(const Aws::String& value) { m_peerTransitGatewayIdHasBeenSet = true; m_peerTransitGatewayId = value; } /** *

The ID of the peer transit gateway with which to create the peering * attachment.

*/ inline void SetPeerTransitGatewayId(Aws::String&& value) { m_peerTransitGatewayIdHasBeenSet = true; m_peerTransitGatewayId = std::move(value); } /** *

The ID of the peer transit gateway with which to create the peering * attachment.

*/ inline void SetPeerTransitGatewayId(const char* value) { m_peerTransitGatewayIdHasBeenSet = true; m_peerTransitGatewayId.assign(value); } /** *

The ID of the peer transit gateway with which to create the peering * attachment.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerTransitGatewayId(const Aws::String& value) { SetPeerTransitGatewayId(value); return *this;} /** *

The ID of the peer transit gateway with which to create the peering * attachment.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerTransitGatewayId(Aws::String&& value) { SetPeerTransitGatewayId(std::move(value)); return *this;} /** *

The ID of the peer transit gateway with which to create the peering * attachment.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerTransitGatewayId(const char* value) { SetPeerTransitGatewayId(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the peer transit * gateway.

*/ inline const Aws::String& GetPeerAccountId() const{ return m_peerAccountId; } /** *

The ID of the Amazon Web Services account that owns the peer transit * gateway.

*/ inline bool PeerAccountIdHasBeenSet() const { return m_peerAccountIdHasBeenSet; } /** *

The ID of the Amazon Web Services account that owns the peer transit * gateway.

*/ inline void SetPeerAccountId(const Aws::String& value) { m_peerAccountIdHasBeenSet = true; m_peerAccountId = value; } /** *

The ID of the Amazon Web Services account that owns the peer transit * gateway.

*/ inline void SetPeerAccountId(Aws::String&& value) { m_peerAccountIdHasBeenSet = true; m_peerAccountId = std::move(value); } /** *

The ID of the Amazon Web Services account that owns the peer transit * gateway.

*/ inline void SetPeerAccountId(const char* value) { m_peerAccountIdHasBeenSet = true; m_peerAccountId.assign(value); } /** *

The ID of the Amazon Web Services account that owns the peer transit * gateway.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerAccountId(const Aws::String& value) { SetPeerAccountId(value); return *this;} /** *

The ID of the Amazon Web Services account that owns the peer transit * gateway.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerAccountId(Aws::String&& value) { SetPeerAccountId(std::move(value)); return *this;} /** *

The ID of the Amazon Web Services account that owns the peer transit * gateway.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerAccountId(const char* value) { SetPeerAccountId(value); return *this;} /** *

The Region where the peer transit gateway is located.

*/ inline const Aws::String& GetPeerRegion() const{ return m_peerRegion; } /** *

The Region where the peer transit gateway is located.

*/ inline bool PeerRegionHasBeenSet() const { return m_peerRegionHasBeenSet; } /** *

The Region where the peer transit gateway is located.

*/ inline void SetPeerRegion(const Aws::String& value) { m_peerRegionHasBeenSet = true; m_peerRegion = value; } /** *

The Region where the peer transit gateway is located.

*/ inline void SetPeerRegion(Aws::String&& value) { m_peerRegionHasBeenSet = true; m_peerRegion = std::move(value); } /** *

The Region where the peer transit gateway is located.

*/ inline void SetPeerRegion(const char* value) { m_peerRegionHasBeenSet = true; m_peerRegion.assign(value); } /** *

The Region where the peer transit gateway is located.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerRegion(const Aws::String& value) { SetPeerRegion(value); return *this;} /** *

The Region where the peer transit gateway is located.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerRegion(Aws::String&& value) { SetPeerRegion(std::move(value)); return *this;} /** *

The Region where the peer transit gateway is located.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithPeerRegion(const char* value) { SetPeerRegion(value); return *this;} /** *

Requests a transit gateway peering attachment.

*/ inline const CreateTransitGatewayPeeringAttachmentRequestOptions& GetOptions() const{ return m_options; } /** *

Requests a transit gateway peering attachment.

*/ inline bool OptionsHasBeenSet() const { return m_optionsHasBeenSet; } /** *

Requests a transit gateway peering attachment.

*/ inline void SetOptions(const CreateTransitGatewayPeeringAttachmentRequestOptions& value) { m_optionsHasBeenSet = true; m_options = value; } /** *

Requests a transit gateway peering attachment.

*/ inline void SetOptions(CreateTransitGatewayPeeringAttachmentRequestOptions&& value) { m_optionsHasBeenSet = true; m_options = std::move(value); } /** *

Requests a transit gateway peering attachment.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithOptions(const CreateTransitGatewayPeeringAttachmentRequestOptions& value) { SetOptions(value); return *this;} /** *

Requests a transit gateway peering attachment.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithOptions(CreateTransitGatewayPeeringAttachmentRequestOptions&& value) { SetOptions(std::move(value)); return *this;} /** *

The tags to apply to the transit gateway peering attachment.

*/ inline const Aws::Vector& GetTagSpecifications() const{ return m_tagSpecifications; } /** *

The tags to apply to the transit gateway peering attachment.

*/ inline bool TagSpecificationsHasBeenSet() const { return m_tagSpecificationsHasBeenSet; } /** *

The tags to apply to the transit gateway peering attachment.

*/ inline void SetTagSpecifications(const Aws::Vector& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = value; } /** *

The tags to apply to the transit gateway peering attachment.

*/ inline void SetTagSpecifications(Aws::Vector&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications = std::move(value); } /** *

The tags to apply to the transit gateway peering attachment.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithTagSpecifications(const Aws::Vector& value) { SetTagSpecifications(value); return *this;} /** *

The tags to apply to the transit gateway peering attachment.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithTagSpecifications(Aws::Vector&& value) { SetTagSpecifications(std::move(value)); return *this;} /** *

The tags to apply to the transit gateway peering attachment.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& AddTagSpecifications(const TagSpecification& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(value); return *this; } /** *

The tags to apply to the transit gateway peering attachment.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& AddTagSpecifications(TagSpecification&& value) { m_tagSpecificationsHasBeenSet = true; m_tagSpecifications.push_back(std::move(value)); return *this; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline CreateTransitGatewayPeeringAttachmentRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::String m_transitGatewayId; bool m_transitGatewayIdHasBeenSet = false; Aws::String m_peerTransitGatewayId; bool m_peerTransitGatewayIdHasBeenSet = false; Aws::String m_peerAccountId; bool m_peerAccountIdHasBeenSet = false; Aws::String m_peerRegion; bool m_peerRegionHasBeenSet = false; CreateTransitGatewayPeeringAttachmentRequestOptions m_options; bool m_optionsHasBeenSet = false; Aws::Vector m_tagSpecifications; bool m_tagSpecificationsHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws