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

*/ inline const Aws::String& GetBranchInterfaceId() const{ return m_branchInterfaceId; } /** *

The ID of the branch network interface.

*/ inline bool BranchInterfaceIdHasBeenSet() const { return m_branchInterfaceIdHasBeenSet; } /** *

The ID of the branch network interface.

*/ inline void SetBranchInterfaceId(const Aws::String& value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId = value; } /** *

The ID of the branch network interface.

*/ inline void SetBranchInterfaceId(Aws::String&& value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId = std::move(value); } /** *

The ID of the branch network interface.

*/ inline void SetBranchInterfaceId(const char* value) { m_branchInterfaceIdHasBeenSet = true; m_branchInterfaceId.assign(value); } /** *

The ID of the branch network interface.

*/ inline AssociateTrunkInterfaceRequest& WithBranchInterfaceId(const Aws::String& value) { SetBranchInterfaceId(value); return *this;} /** *

The ID of the branch network interface.

*/ inline AssociateTrunkInterfaceRequest& WithBranchInterfaceId(Aws::String&& value) { SetBranchInterfaceId(std::move(value)); return *this;} /** *

The ID of the branch network interface.

*/ inline AssociateTrunkInterfaceRequest& WithBranchInterfaceId(const char* value) { SetBranchInterfaceId(value); return *this;} /** *

The ID of the trunk network interface.

*/ inline const Aws::String& GetTrunkInterfaceId() const{ return m_trunkInterfaceId; } /** *

The ID of the trunk network interface.

*/ inline bool TrunkInterfaceIdHasBeenSet() const { return m_trunkInterfaceIdHasBeenSet; } /** *

The ID of the trunk network interface.

*/ inline void SetTrunkInterfaceId(const Aws::String& value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId = value; } /** *

The ID of the trunk network interface.

*/ inline void SetTrunkInterfaceId(Aws::String&& value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId = std::move(value); } /** *

The ID of the trunk network interface.

*/ inline void SetTrunkInterfaceId(const char* value) { m_trunkInterfaceIdHasBeenSet = true; m_trunkInterfaceId.assign(value); } /** *

The ID of the trunk network interface.

*/ inline AssociateTrunkInterfaceRequest& WithTrunkInterfaceId(const Aws::String& value) { SetTrunkInterfaceId(value); return *this;} /** *

The ID of the trunk network interface.

*/ inline AssociateTrunkInterfaceRequest& WithTrunkInterfaceId(Aws::String&& value) { SetTrunkInterfaceId(std::move(value)); return *this;} /** *

The ID of the trunk network interface.

*/ inline AssociateTrunkInterfaceRequest& WithTrunkInterfaceId(const char* value) { SetTrunkInterfaceId(value); return *this;} /** *

The ID of the VLAN. This applies to the VLAN protocol.

*/ inline int GetVlanId() const{ return m_vlanId; } /** *

The ID of the VLAN. This applies to the VLAN protocol.

*/ inline bool VlanIdHasBeenSet() const { return m_vlanIdHasBeenSet; } /** *

The ID of the VLAN. This applies to the VLAN protocol.

*/ inline void SetVlanId(int value) { m_vlanIdHasBeenSet = true; m_vlanId = value; } /** *

The ID of the VLAN. This applies to the VLAN protocol.

*/ inline AssociateTrunkInterfaceRequest& WithVlanId(int value) { SetVlanId(value); return *this;} /** *

The application key. This applies to the GRE protocol.

*/ inline int GetGreKey() const{ return m_greKey; } /** *

The application key. This applies to the GRE protocol.

*/ inline bool GreKeyHasBeenSet() const { return m_greKeyHasBeenSet; } /** *

The application key. This applies to the GRE protocol.

*/ inline void SetGreKey(int value) { m_greKeyHasBeenSet = true; m_greKey = value; } /** *

The application key. This applies to the GRE protocol.

*/ inline AssociateTrunkInterfaceRequest& WithGreKey(int value) { SetGreKey(value); return *this;} /** *

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to Ensure Idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to Ensure Idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to Ensure Idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to Ensure Idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to Ensure Idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to Ensure Idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to Ensure Idempotency.

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

Unique, case-sensitive identifier that you provide to ensure the idempotency * of the request. For more information, see How * to Ensure Idempotency.

*/ inline AssociateTrunkInterfaceRequest& WithClientToken(const char* value) { SetClientToken(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 AssociateTrunkInterfaceRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} private: Aws::String m_branchInterfaceId; bool m_branchInterfaceIdHasBeenSet = false; Aws::String m_trunkInterfaceId; bool m_trunkInterfaceIdHasBeenSet = false; int m_vlanId; bool m_vlanIdHasBeenSet = false; int m_greKey; bool m_greKeyHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws