/** * 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 CreateEndpointAccessRequest : public RedshiftRequest { public: AWS_REDSHIFT_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_REDSHIFT_API Aws::String SerializePayload() const override; protected: AWS_REDSHIFT_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The cluster identifier of the cluster to access.

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

The cluster identifier of the cluster to access.

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

The cluster identifier of the cluster to access.

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

The cluster identifier of the cluster to access.

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

The cluster identifier of the cluster to access.

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

The cluster identifier of the cluster to access.

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

The cluster identifier of the cluster to access.

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

The cluster identifier of the cluster to access.

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

The Amazon Web Services account ID of the owner of the cluster. This is only * required if the cluster is in another Amazon Web Services account.

*/ inline const Aws::String& GetResourceOwner() const{ return m_resourceOwner; } /** *

The Amazon Web Services account ID of the owner of the cluster. This is only * required if the cluster is in another Amazon Web Services account.

*/ inline bool ResourceOwnerHasBeenSet() const { return m_resourceOwnerHasBeenSet; } /** *

The Amazon Web Services account ID of the owner of the cluster. This is only * required if the cluster is in another Amazon Web Services account.

*/ inline void SetResourceOwner(const Aws::String& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = value; } /** *

The Amazon Web Services account ID of the owner of the cluster. This is only * required if the cluster is in another Amazon Web Services account.

*/ inline void SetResourceOwner(Aws::String&& value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner = std::move(value); } /** *

The Amazon Web Services account ID of the owner of the cluster. This is only * required if the cluster is in another Amazon Web Services account.

*/ inline void SetResourceOwner(const char* value) { m_resourceOwnerHasBeenSet = true; m_resourceOwner.assign(value); } /** *

The Amazon Web Services account ID of the owner of the cluster. This is only * required if the cluster is in another Amazon Web Services account.

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

The Amazon Web Services account ID of the owner of the cluster. This is only * required if the cluster is in another Amazon Web Services account.

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

The Amazon Web Services account ID of the owner of the cluster. This is only * required if the cluster is in another Amazon Web Services account.

*/ inline CreateEndpointAccessRequest& WithResourceOwner(const char* value) { SetResourceOwner(value); return *this;} /** *

The Redshift-managed VPC endpoint name.

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 Redshift-managed VPC endpoint name.

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 Redshift-managed VPC endpoint name.

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 Redshift-managed VPC endpoint name.

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 Redshift-managed VPC endpoint name.

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 Redshift-managed VPC endpoint name.

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 Redshift-managed VPC endpoint name.

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 Redshift-managed VPC endpoint name.

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 subnet group from which Amazon Redshift chooses the subnet to deploy the * endpoint.

*/ inline const Aws::String& GetSubnetGroupName() const{ return m_subnetGroupName; } /** *

The subnet group from which Amazon Redshift chooses the subnet to deploy the * endpoint.

*/ inline bool SubnetGroupNameHasBeenSet() const { return m_subnetGroupNameHasBeenSet; } /** *

The subnet group from which Amazon Redshift chooses the subnet to deploy the * endpoint.

*/ inline void SetSubnetGroupName(const Aws::String& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = value; } /** *

The subnet group from which Amazon Redshift chooses the subnet to deploy the * endpoint.

*/ inline void SetSubnetGroupName(Aws::String&& value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName = std::move(value); } /** *

The subnet group from which Amazon Redshift chooses the subnet to deploy the * endpoint.

*/ inline void SetSubnetGroupName(const char* value) { m_subnetGroupNameHasBeenSet = true; m_subnetGroupName.assign(value); } /** *

The subnet group from which Amazon Redshift chooses the subnet to deploy the * endpoint.

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

The subnet group from which Amazon Redshift chooses the subnet to deploy the * endpoint.

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

The subnet group from which Amazon Redshift chooses the subnet to deploy the * endpoint.

*/ inline CreateEndpointAccessRequest& WithSubnetGroupName(const char* value) { SetSubnetGroupName(value); return *this;} /** *

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 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 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 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 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 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 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 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 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; } private: Aws::String m_clusterIdentifier; bool m_clusterIdentifierHasBeenSet = false; Aws::String m_resourceOwner; bool m_resourceOwnerHasBeenSet = false; Aws::String m_endpointName; bool m_endpointNameHasBeenSet = false; Aws::String m_subnetGroupName; bool m_subnetGroupNameHasBeenSet = false; Aws::Vector m_vpcSecurityGroupIds; bool m_vpcSecurityGroupIdsHasBeenSet = false; }; } // namespace Model } // namespace Redshift } // namespace Aws