/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace EC2 { namespace Model { /** */ class ModifyTransitGatewayVpcAttachmentRequest : public EC2Request { public: AWS_EC2_API ModifyTransitGatewayVpcAttachmentRequest(); // 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 "ModifyTransitGatewayVpcAttachment"; } 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 attachment.

*/ inline const Aws::String& GetTransitGatewayAttachmentId() const{ return m_transitGatewayAttachmentId; } /** *

The ID of the attachment.

*/ inline bool TransitGatewayAttachmentIdHasBeenSet() const { return m_transitGatewayAttachmentIdHasBeenSet; } /** *

The ID of the attachment.

*/ inline void SetTransitGatewayAttachmentId(const Aws::String& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = value; } /** *

The ID of the attachment.

*/ inline void SetTransitGatewayAttachmentId(Aws::String&& value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId = std::move(value); } /** *

The ID of the attachment.

*/ inline void SetTransitGatewayAttachmentId(const char* value) { m_transitGatewayAttachmentIdHasBeenSet = true; m_transitGatewayAttachmentId.assign(value); } /** *

The ID of the attachment.

*/ inline ModifyTransitGatewayVpcAttachmentRequest& WithTransitGatewayAttachmentId(const Aws::String& value) { SetTransitGatewayAttachmentId(value); return *this;} /** *

The ID of the attachment.

*/ inline ModifyTransitGatewayVpcAttachmentRequest& WithTransitGatewayAttachmentId(Aws::String&& value) { SetTransitGatewayAttachmentId(std::move(value)); return *this;} /** *

The ID of the attachment.

*/ inline ModifyTransitGatewayVpcAttachmentRequest& WithTransitGatewayAttachmentId(const char* value) { SetTransitGatewayAttachmentId(value); return *this;} /** *

The IDs of one or more subnets to add. You can specify at most one subnet per * Availability Zone.

*/ inline const Aws::Vector& GetAddSubnetIds() const{ return m_addSubnetIds; } /** *

The IDs of one or more subnets to add. You can specify at most one subnet per * Availability Zone.

*/ inline bool AddSubnetIdsHasBeenSet() const { return m_addSubnetIdsHasBeenSet; } /** *

The IDs of one or more subnets to add. You can specify at most one subnet per * Availability Zone.

*/ inline void SetAddSubnetIds(const Aws::Vector& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds = value; } /** *

The IDs of one or more subnets to add. You can specify at most one subnet per * Availability Zone.

*/ inline void SetAddSubnetIds(Aws::Vector&& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds = std::move(value); } /** *

The IDs of one or more subnets to add. You can specify at most one subnet per * Availability Zone.

*/ inline ModifyTransitGatewayVpcAttachmentRequest& WithAddSubnetIds(const Aws::Vector& value) { SetAddSubnetIds(value); return *this;} /** *

The IDs of one or more subnets to add. You can specify at most one subnet per * Availability Zone.

*/ inline ModifyTransitGatewayVpcAttachmentRequest& WithAddSubnetIds(Aws::Vector&& value) { SetAddSubnetIds(std::move(value)); return *this;} /** *

The IDs of one or more subnets to add. You can specify at most one subnet per * Availability Zone.

*/ inline ModifyTransitGatewayVpcAttachmentRequest& AddAddSubnetIds(const Aws::String& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds.push_back(value); return *this; } /** *

The IDs of one or more subnets to add. You can specify at most one subnet per * Availability Zone.

*/ inline ModifyTransitGatewayVpcAttachmentRequest& AddAddSubnetIds(Aws::String&& value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds.push_back(std::move(value)); return *this; } /** *

The IDs of one or more subnets to add. You can specify at most one subnet per * Availability Zone.

*/ inline ModifyTransitGatewayVpcAttachmentRequest& AddAddSubnetIds(const char* value) { m_addSubnetIdsHasBeenSet = true; m_addSubnetIds.push_back(value); return *this; } /** *

The IDs of one or more subnets to remove.

*/ inline const Aws::Vector& GetRemoveSubnetIds() const{ return m_removeSubnetIds; } /** *

The IDs of one or more subnets to remove.

*/ inline bool RemoveSubnetIdsHasBeenSet() const { return m_removeSubnetIdsHasBeenSet; } /** *

The IDs of one or more subnets to remove.

*/ inline void SetRemoveSubnetIds(const Aws::Vector& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds = value; } /** *

The IDs of one or more subnets to remove.

*/ inline void SetRemoveSubnetIds(Aws::Vector&& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds = std::move(value); } /** *

The IDs of one or more subnets to remove.

*/ inline ModifyTransitGatewayVpcAttachmentRequest& WithRemoveSubnetIds(const Aws::Vector& value) { SetRemoveSubnetIds(value); return *this;} /** *

The IDs of one or more subnets to remove.

*/ inline ModifyTransitGatewayVpcAttachmentRequest& WithRemoveSubnetIds(Aws::Vector&& value) { SetRemoveSubnetIds(std::move(value)); return *this;} /** *

The IDs of one or more subnets to remove.

*/ inline ModifyTransitGatewayVpcAttachmentRequest& AddRemoveSubnetIds(const Aws::String& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds.push_back(value); return *this; } /** *

The IDs of one or more subnets to remove.

*/ inline ModifyTransitGatewayVpcAttachmentRequest& AddRemoveSubnetIds(Aws::String&& value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds.push_back(std::move(value)); return *this; } /** *

The IDs of one or more subnets to remove.

*/ inline ModifyTransitGatewayVpcAttachmentRequest& AddRemoveSubnetIds(const char* value) { m_removeSubnetIdsHasBeenSet = true; m_removeSubnetIds.push_back(value); return *this; } /** *

The new VPC attachment options.

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

The new VPC attachment options.

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

The new VPC attachment options.

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

The new VPC attachment options.

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

The new VPC attachment options.

*/ inline ModifyTransitGatewayVpcAttachmentRequest& WithOptions(const ModifyTransitGatewayVpcAttachmentRequestOptions& value) { SetOptions(value); return *this;} /** *

The new VPC attachment options.

*/ inline ModifyTransitGatewayVpcAttachmentRequest& WithOptions(ModifyTransitGatewayVpcAttachmentRequestOptions&& value) { SetOptions(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 ModifyTransitGatewayVpcAttachmentRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::String m_transitGatewayAttachmentId; bool m_transitGatewayAttachmentIdHasBeenSet = false; Aws::Vector m_addSubnetIds; bool m_addSubnetIdsHasBeenSet = false; Aws::Vector m_removeSubnetIds; bool m_removeSubnetIdsHasBeenSet = false; ModifyTransitGatewayVpcAttachmentRequestOptions m_options; bool m_optionsHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws