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

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 ModifyVpcEndpointServicePermissionsRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The ID of the service.

*/ inline const Aws::String& GetServiceId() const{ return m_serviceId; } /** *

The ID of the service.

*/ inline bool ServiceIdHasBeenSet() const { return m_serviceIdHasBeenSet; } /** *

The ID of the service.

*/ inline void SetServiceId(const Aws::String& value) { m_serviceIdHasBeenSet = true; m_serviceId = value; } /** *

The ID of the service.

*/ inline void SetServiceId(Aws::String&& value) { m_serviceIdHasBeenSet = true; m_serviceId = std::move(value); } /** *

The ID of the service.

*/ inline void SetServiceId(const char* value) { m_serviceIdHasBeenSet = true; m_serviceId.assign(value); } /** *

The ID of the service.

*/ inline ModifyVpcEndpointServicePermissionsRequest& WithServiceId(const Aws::String& value) { SetServiceId(value); return *this;} /** *

The ID of the service.

*/ inline ModifyVpcEndpointServicePermissionsRequest& WithServiceId(Aws::String&& value) { SetServiceId(std::move(value)); return *this;} /** *

The ID of the service.

*/ inline ModifyVpcEndpointServicePermissionsRequest& WithServiceId(const char* value) { SetServiceId(value); return *this;} /** *

The Amazon Resource Names (ARN) of the principals. Permissions are granted to * the principals in this list. To grant permissions to all principals, specify an * asterisk (*).

*/ inline const Aws::Vector& GetAddAllowedPrincipals() const{ return m_addAllowedPrincipals; } /** *

The Amazon Resource Names (ARN) of the principals. Permissions are granted to * the principals in this list. To grant permissions to all principals, specify an * asterisk (*).

*/ inline bool AddAllowedPrincipalsHasBeenSet() const { return m_addAllowedPrincipalsHasBeenSet; } /** *

The Amazon Resource Names (ARN) of the principals. Permissions are granted to * the principals in this list. To grant permissions to all principals, specify an * asterisk (*).

*/ inline void SetAddAllowedPrincipals(const Aws::Vector& value) { m_addAllowedPrincipalsHasBeenSet = true; m_addAllowedPrincipals = value; } /** *

The Amazon Resource Names (ARN) of the principals. Permissions are granted to * the principals in this list. To grant permissions to all principals, specify an * asterisk (*).

*/ inline void SetAddAllowedPrincipals(Aws::Vector&& value) { m_addAllowedPrincipalsHasBeenSet = true; m_addAllowedPrincipals = std::move(value); } /** *

The Amazon Resource Names (ARN) of the principals. Permissions are granted to * the principals in this list. To grant permissions to all principals, specify an * asterisk (*).

*/ inline ModifyVpcEndpointServicePermissionsRequest& WithAddAllowedPrincipals(const Aws::Vector& value) { SetAddAllowedPrincipals(value); return *this;} /** *

The Amazon Resource Names (ARN) of the principals. Permissions are granted to * the principals in this list. To grant permissions to all principals, specify an * asterisk (*).

*/ inline ModifyVpcEndpointServicePermissionsRequest& WithAddAllowedPrincipals(Aws::Vector&& value) { SetAddAllowedPrincipals(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARN) of the principals. Permissions are granted to * the principals in this list. To grant permissions to all principals, specify an * asterisk (*).

*/ inline ModifyVpcEndpointServicePermissionsRequest& AddAddAllowedPrincipals(const Aws::String& value) { m_addAllowedPrincipalsHasBeenSet = true; m_addAllowedPrincipals.push_back(value); return *this; } /** *

The Amazon Resource Names (ARN) of the principals. Permissions are granted to * the principals in this list. To grant permissions to all principals, specify an * asterisk (*).

*/ inline ModifyVpcEndpointServicePermissionsRequest& AddAddAllowedPrincipals(Aws::String&& value) { m_addAllowedPrincipalsHasBeenSet = true; m_addAllowedPrincipals.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARN) of the principals. Permissions are granted to * the principals in this list. To grant permissions to all principals, specify an * asterisk (*).

*/ inline ModifyVpcEndpointServicePermissionsRequest& AddAddAllowedPrincipals(const char* value) { m_addAllowedPrincipalsHasBeenSet = true; m_addAllowedPrincipals.push_back(value); return *this; } /** *

The Amazon Resource Names (ARN) of the principals. Permissions are revoked * for principals in this list.

*/ inline const Aws::Vector& GetRemoveAllowedPrincipals() const{ return m_removeAllowedPrincipals; } /** *

The Amazon Resource Names (ARN) of the principals. Permissions are revoked * for principals in this list.

*/ inline bool RemoveAllowedPrincipalsHasBeenSet() const { return m_removeAllowedPrincipalsHasBeenSet; } /** *

The Amazon Resource Names (ARN) of the principals. Permissions are revoked * for principals in this list.

*/ inline void SetRemoveAllowedPrincipals(const Aws::Vector& value) { m_removeAllowedPrincipalsHasBeenSet = true; m_removeAllowedPrincipals = value; } /** *

The Amazon Resource Names (ARN) of the principals. Permissions are revoked * for principals in this list.

*/ inline void SetRemoveAllowedPrincipals(Aws::Vector&& value) { m_removeAllowedPrincipalsHasBeenSet = true; m_removeAllowedPrincipals = std::move(value); } /** *

The Amazon Resource Names (ARN) of the principals. Permissions are revoked * for principals in this list.

*/ inline ModifyVpcEndpointServicePermissionsRequest& WithRemoveAllowedPrincipals(const Aws::Vector& value) { SetRemoveAllowedPrincipals(value); return *this;} /** *

The Amazon Resource Names (ARN) of the principals. Permissions are revoked * for principals in this list.

*/ inline ModifyVpcEndpointServicePermissionsRequest& WithRemoveAllowedPrincipals(Aws::Vector&& value) { SetRemoveAllowedPrincipals(std::move(value)); return *this;} /** *

The Amazon Resource Names (ARN) of the principals. Permissions are revoked * for principals in this list.

*/ inline ModifyVpcEndpointServicePermissionsRequest& AddRemoveAllowedPrincipals(const Aws::String& value) { m_removeAllowedPrincipalsHasBeenSet = true; m_removeAllowedPrincipals.push_back(value); return *this; } /** *

The Amazon Resource Names (ARN) of the principals. Permissions are revoked * for principals in this list.

*/ inline ModifyVpcEndpointServicePermissionsRequest& AddRemoveAllowedPrincipals(Aws::String&& value) { m_removeAllowedPrincipalsHasBeenSet = true; m_removeAllowedPrincipals.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Names (ARN) of the principals. Permissions are revoked * for principals in this list.

*/ inline ModifyVpcEndpointServicePermissionsRequest& AddRemoveAllowedPrincipals(const char* value) { m_removeAllowedPrincipalsHasBeenSet = true; m_removeAllowedPrincipals.push_back(value); return *this; } private: bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::String m_serviceId; bool m_serviceIdHasBeenSet = false; Aws::Vector m_addAllowedPrincipals; bool m_addAllowedPrincipalsHasBeenSet = false; Aws::Vector m_removeAllowedPrincipals; bool m_removeAllowedPrincipalsHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws