/** * 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 RedshiftServerless { namespace Model { /** */ class CreateEndpointAccessRequest : public RedshiftServerlessRequest { public: AWS_REDSHIFTSERVERLESS_API CreateEndpointAccessRequest(); // 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 "CreateEndpointAccess"; } AWS_REDSHIFTSERVERLESS_API Aws::String SerializePayload() const override; AWS_REDSHIFTSERVERLESS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the VPC endpoint. An endpoint name must contain 1-30 characters. * Valid characters are A-Z, a-z, 0-9, and hyphen(-). The first character must be a * letter. The name can't contain two consecutive hyphens or end with a hyphen.

*/ inline const Aws::String& GetEndpointName() const{ return m_endpointName; } /** *

The name of the VPC endpoint. An endpoint name must contain 1-30 characters. * Valid characters are A-Z, a-z, 0-9, and hyphen(-). The first character must be a * letter. The name can't contain two consecutive hyphens or end with a hyphen.

*/ inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; } /** *

The name of the VPC endpoint. An endpoint name must contain 1-30 characters. * Valid characters are A-Z, a-z, 0-9, and hyphen(-). The first character must be a * letter. The name can't contain two consecutive hyphens or end with a hyphen.

*/ inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; } /** *

The name of the VPC endpoint. An endpoint name must contain 1-30 characters. * Valid characters are A-Z, a-z, 0-9, and hyphen(-). The first character must be a * letter. The name can't contain two consecutive hyphens or end with a hyphen.

*/ inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); } /** *

The name of the VPC endpoint. An endpoint name must contain 1-30 characters. * Valid characters are A-Z, a-z, 0-9, and hyphen(-). The first character must be a * letter. The name can't contain two consecutive hyphens or end with a hyphen.

*/ inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); } /** *

The name of the VPC endpoint. An endpoint name must contain 1-30 characters. * Valid characters are A-Z, a-z, 0-9, and hyphen(-). The first character must be a * letter. The name can't contain two consecutive hyphens or end with a hyphen.

*/ inline CreateEndpointAccessRequest& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;} /** *

The name of the VPC endpoint. An endpoint name must contain 1-30 characters. * Valid characters are A-Z, a-z, 0-9, and hyphen(-). The first character must be a * letter. The name can't contain two consecutive hyphens or end with a hyphen.

*/ inline CreateEndpointAccessRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;} /** *

The name of the VPC endpoint. An endpoint name must contain 1-30 characters. * Valid characters are A-Z, a-z, 0-9, and hyphen(-). The first character must be a * letter. The name can't contain two consecutive hyphens or end with a hyphen.

*/ inline CreateEndpointAccessRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;} /** *

The unique identifers of subnets from which Amazon Redshift Serverless * chooses one to deploy a VPC endpoint.

*/ inline const Aws::Vector& GetSubnetIds() const{ return m_subnetIds; } /** *

The unique identifers of subnets from which Amazon Redshift Serverless * chooses one to deploy a VPC endpoint.

*/ inline bool SubnetIdsHasBeenSet() const { return m_subnetIdsHasBeenSet; } /** *

The unique identifers of subnets from which Amazon Redshift Serverless * chooses one to deploy a VPC endpoint.

*/ inline void SetSubnetIds(const Aws::Vector& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = value; } /** *

The unique identifers of subnets from which Amazon Redshift Serverless * chooses one to deploy a VPC endpoint.

*/ inline void SetSubnetIds(Aws::Vector&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds = std::move(value); } /** *

The unique identifers of subnets from which Amazon Redshift Serverless * chooses one to deploy a VPC endpoint.

*/ inline CreateEndpointAccessRequest& WithSubnetIds(const Aws::Vector& value) { SetSubnetIds(value); return *this;} /** *

The unique identifers of subnets from which Amazon Redshift Serverless * chooses one to deploy a VPC endpoint.

*/ inline CreateEndpointAccessRequest& WithSubnetIds(Aws::Vector&& value) { SetSubnetIds(std::move(value)); return *this;} /** *

The unique identifers of subnets from which Amazon Redshift Serverless * chooses one to deploy a VPC endpoint.

*/ inline CreateEndpointAccessRequest& AddSubnetIds(const Aws::String& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The unique identifers of subnets from which Amazon Redshift Serverless * chooses one to deploy a VPC endpoint.

*/ inline CreateEndpointAccessRequest& AddSubnetIds(Aws::String&& value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(std::move(value)); return *this; } /** *

The unique identifers of subnets from which Amazon Redshift Serverless * chooses one to deploy a VPC endpoint.

*/ inline CreateEndpointAccessRequest& AddSubnetIds(const char* value) { m_subnetIdsHasBeenSet = true; m_subnetIds.push_back(value); return *this; } /** *

The unique identifiers of the security group that defines the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline const Aws::Vector& GetVpcSecurityGroupIds() const{ return m_vpcSecurityGroupIds; } /** *

The unique identifiers of the security group that defines the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline bool VpcSecurityGroupIdsHasBeenSet() const { return m_vpcSecurityGroupIdsHasBeenSet; } /** *

The unique identifiers of the security group that defines the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline void SetVpcSecurityGroupIds(const Aws::Vector& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = value; } /** *

The unique identifiers of the security group that defines the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline void SetVpcSecurityGroupIds(Aws::Vector&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds = std::move(value); } /** *

The unique identifiers of the security group that defines the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline CreateEndpointAccessRequest& WithVpcSecurityGroupIds(const Aws::Vector& value) { SetVpcSecurityGroupIds(value); return *this;} /** *

The unique identifiers of the security group that defines the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline CreateEndpointAccessRequest& WithVpcSecurityGroupIds(Aws::Vector&& value) { SetVpcSecurityGroupIds(std::move(value)); return *this;} /** *

The unique identifiers of the security group that defines the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline CreateEndpointAccessRequest& AddVpcSecurityGroupIds(const Aws::String& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; } /** *

The unique identifiers of the security group that defines the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline CreateEndpointAccessRequest& AddVpcSecurityGroupIds(Aws::String&& value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(std::move(value)); return *this; } /** *

The unique identifiers of the security group that defines the ports, * protocols, and sources for inbound traffic that you are authorizing into your * endpoint.

*/ inline CreateEndpointAccessRequest& AddVpcSecurityGroupIds(const char* value) { m_vpcSecurityGroupIdsHasBeenSet = true; m_vpcSecurityGroupIds.push_back(value); return *this; } /** *

The name of the workgroup to associate with the VPC endpoint.

*/ inline const Aws::String& GetWorkgroupName() const{ return m_workgroupName; } /** *

The name of the workgroup to associate with the VPC endpoint.

*/ inline bool WorkgroupNameHasBeenSet() const { return m_workgroupNameHasBeenSet; } /** *

The name of the workgroup to associate with the VPC endpoint.

*/ inline void SetWorkgroupName(const Aws::String& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = value; } /** *

The name of the workgroup to associate with the VPC endpoint.

*/ inline void SetWorkgroupName(Aws::String&& value) { m_workgroupNameHasBeenSet = true; m_workgroupName = std::move(value); } /** *

The name of the workgroup to associate with the VPC endpoint.

*/ inline void SetWorkgroupName(const char* value) { m_workgroupNameHasBeenSet = true; m_workgroupName.assign(value); } /** *

The name of the workgroup to associate with the VPC endpoint.

*/ inline CreateEndpointAccessRequest& WithWorkgroupName(const Aws::String& value) { SetWorkgroupName(value); return *this;} /** *

The name of the workgroup to associate with the VPC endpoint.

*/ inline CreateEndpointAccessRequest& WithWorkgroupName(Aws::String&& value) { SetWorkgroupName(std::move(value)); return *this;} /** *

The name of the workgroup to associate with the VPC endpoint.

*/ inline CreateEndpointAccessRequest& WithWorkgroupName(const char* value) { SetWorkgroupName(value); return *this;} private: Aws::String m_endpointName; bool m_endpointNameHasBeenSet = false; Aws::Vector m_subnetIds; bool m_subnetIdsHasBeenSet = false; Aws::Vector m_vpcSecurityGroupIds; bool m_vpcSecurityGroupIdsHasBeenSet = false; Aws::String m_workgroupName; bool m_workgroupNameHasBeenSet = false; }; } // namespace Model } // namespace RedshiftServerless } // namespace Aws