/** * 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 Redshift { namespace Model { /** */ class RevokeEndpointAccessRequest : public RedshiftRequest { public: AWS_REDSHIFT_API RevokeEndpointAccessRequest(); // 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 "RevokeEndpointAccess"; } AWS_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The cluster to revoke access from.

*/ inline const Aws::String& GetClusterIdentifier() const{ return m_clusterIdentifier; } /** *

The cluster to revoke access from.

*/ inline bool ClusterIdentifierHasBeenSet() const { return m_clusterIdentifierHasBeenSet; } /** *

The cluster to revoke access from.

*/ inline void SetClusterIdentifier(const Aws::String& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = value; } /** *

The cluster to revoke access from.

*/ inline void SetClusterIdentifier(Aws::String&& value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier = std::move(value); } /** *

The cluster to revoke access from.

*/ inline void SetClusterIdentifier(const char* value) { m_clusterIdentifierHasBeenSet = true; m_clusterIdentifier.assign(value); } /** *

The cluster to revoke access from.

*/ inline RevokeEndpointAccessRequest& WithClusterIdentifier(const Aws::String& value) { SetClusterIdentifier(value); return *this;} /** *

The cluster to revoke access from.

*/ inline RevokeEndpointAccessRequest& WithClusterIdentifier(Aws::String&& value) { SetClusterIdentifier(std::move(value)); return *this;} /** *

The cluster to revoke access from.

*/ inline RevokeEndpointAccessRequest& WithClusterIdentifier(const char* value) { SetClusterIdentifier(value); return *this;} /** *

The Amazon Web Services account ID whose access is to be revoked.

*/ inline const Aws::String& GetAccount() const{ return m_account; } /** *

The Amazon Web Services account ID whose access is to be revoked.

*/ inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; } /** *

The Amazon Web Services account ID whose access is to be revoked.

*/ inline void SetAccount(const Aws::String& value) { m_accountHasBeenSet = true; m_account = value; } /** *

The Amazon Web Services account ID whose access is to be revoked.

*/ inline void SetAccount(Aws::String&& value) { m_accountHasBeenSet = true; m_account = std::move(value); } /** *

The Amazon Web Services account ID whose access is to be revoked.

*/ inline void SetAccount(const char* value) { m_accountHasBeenSet = true; m_account.assign(value); } /** *

The Amazon Web Services account ID whose access is to be revoked.

*/ inline RevokeEndpointAccessRequest& WithAccount(const Aws::String& value) { SetAccount(value); return *this;} /** *

The Amazon Web Services account ID whose access is to be revoked.

*/ inline RevokeEndpointAccessRequest& WithAccount(Aws::String&& value) { SetAccount(std::move(value)); return *this;} /** *

The Amazon Web Services account ID whose access is to be revoked.

*/ inline RevokeEndpointAccessRequest& WithAccount(const char* value) { SetAccount(value); return *this;} /** *

The virtual private cloud (VPC) identifiers for which access is to be * revoked.

*/ inline const Aws::Vector& GetVpcIds() const{ return m_vpcIds; } /** *

The virtual private cloud (VPC) identifiers for which access is to be * revoked.

*/ inline bool VpcIdsHasBeenSet() const { return m_vpcIdsHasBeenSet; } /** *

The virtual private cloud (VPC) identifiers for which access is to be * revoked.

*/ inline void SetVpcIds(const Aws::Vector& value) { m_vpcIdsHasBeenSet = true; m_vpcIds = value; } /** *

The virtual private cloud (VPC) identifiers for which access is to be * revoked.

*/ inline void SetVpcIds(Aws::Vector&& value) { m_vpcIdsHasBeenSet = true; m_vpcIds = std::move(value); } /** *

The virtual private cloud (VPC) identifiers for which access is to be * revoked.

*/ inline RevokeEndpointAccessRequest& WithVpcIds(const Aws::Vector& value) { SetVpcIds(value); return *this;} /** *

The virtual private cloud (VPC) identifiers for which access is to be * revoked.

*/ inline RevokeEndpointAccessRequest& WithVpcIds(Aws::Vector&& value) { SetVpcIds(std::move(value)); return *this;} /** *

The virtual private cloud (VPC) identifiers for which access is to be * revoked.

*/ inline RevokeEndpointAccessRequest& AddVpcIds(const Aws::String& value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(value); return *this; } /** *

The virtual private cloud (VPC) identifiers for which access is to be * revoked.

*/ inline RevokeEndpointAccessRequest& AddVpcIds(Aws::String&& value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(std::move(value)); return *this; } /** *

The virtual private cloud (VPC) identifiers for which access is to be * revoked.

*/ inline RevokeEndpointAccessRequest& AddVpcIds(const char* value) { m_vpcIdsHasBeenSet = true; m_vpcIds.push_back(value); return *this; } /** *

Indicates whether to force the revoke action. If true, the Redshift-managed * VPC endpoints associated with the endpoint authorization are also deleted.

*/ inline bool GetForce() const{ return m_force; } /** *

Indicates whether to force the revoke action. If true, the Redshift-managed * VPC endpoints associated with the endpoint authorization are also deleted.

*/ inline bool ForceHasBeenSet() const { return m_forceHasBeenSet; } /** *

Indicates whether to force the revoke action. If true, the Redshift-managed * VPC endpoints associated with the endpoint authorization are also deleted.

*/ inline void SetForce(bool value) { m_forceHasBeenSet = true; m_force = value; } /** *

Indicates whether to force the revoke action. If true, the Redshift-managed * VPC endpoints associated with the endpoint authorization are also deleted.

*/ inline RevokeEndpointAccessRequest& WithForce(bool value) { SetForce(value); return *this;} private: Aws::String m_clusterIdentifier; bool m_clusterIdentifierHasBeenSet = false; Aws::String m_account; bool m_accountHasBeenSet = false; Aws::Vector m_vpcIds; bool m_vpcIdsHasBeenSet = false; bool m_force; bool m_forceHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws