/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.redshift.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class CreateEndpointAccessRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The cluster identifier of the cluster to access. *
*/ private String clusterIdentifier; /** ** 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. *
*/ private String resourceOwner; /** ** 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. *
*/ private String endpointName; /** ** The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint. *
*/ private String subnetGroupName; /** ** The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing * into your endpoint. *
*/ private com.amazonaws.internal.SdkInternalList* The cluster identifier of the cluster to access. *
* * @param clusterIdentifier * The cluster identifier of the cluster to access. */ public void setClusterIdentifier(String clusterIdentifier) { this.clusterIdentifier = clusterIdentifier; } /** ** The cluster identifier of the cluster to access. *
* * @return The cluster identifier of the cluster to access. */ public String getClusterIdentifier() { return this.clusterIdentifier; } /** ** The cluster identifier of the cluster to access. *
* * @param clusterIdentifier * The cluster identifier of the cluster to access. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEndpointAccessRequest withClusterIdentifier(String clusterIdentifier) { setClusterIdentifier(clusterIdentifier); 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. *
* * @param 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. */ public void setResourceOwner(String resourceOwner) { this.resourceOwner = 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. *
* * @return 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. */ public String getResourceOwner() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEndpointAccessRequest withResourceOwner(String resourceOwner) { setResourceOwner(resourceOwner); 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. *
* * @param 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. */ public void setEndpointName(String endpointName) { this.endpointName = 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. *
* * @return 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. */ public String getEndpointName() { return this.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. *
* * @param 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. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEndpointAccessRequest withEndpointName(String endpointName) { setEndpointName(endpointName); return this; } /** *
* The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint. *
* * @param subnetGroupName * The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint. */ public void setSubnetGroupName(String subnetGroupName) { this.subnetGroupName = subnetGroupName; } /** ** The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint. *
* * @return The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint. */ public String getSubnetGroupName() { return this.subnetGroupName; } /** ** The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint. *
* * @param subnetGroupName * The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEndpointAccessRequest withSubnetGroupName(String subnetGroupName) { setSubnetGroupName(subnetGroupName); return this; } /** ** The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing * into your endpoint. *
* * @return The security group that defines the ports, protocols, and sources for inbound traffic that you are * authorizing into your endpoint. */ public java.util.List* The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing * into your endpoint. *
* * @param vpcSecurityGroupIds * The security group that defines the ports, protocols, and sources for inbound traffic that you are * authorizing into your endpoint. */ public void setVpcSecurityGroupIds(java.util.Collection* The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing * into your endpoint. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVpcSecurityGroupIds(java.util.Collection)} or {@link #withVpcSecurityGroupIds(java.util.Collection)} * if you want to override the existing values. *
* * @param vpcSecurityGroupIds * The security group that defines the ports, protocols, and sources for inbound traffic that you are * authorizing into your endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEndpointAccessRequest withVpcSecurityGroupIds(String... vpcSecurityGroupIds) { if (this.vpcSecurityGroupIds == null) { setVpcSecurityGroupIds(new com.amazonaws.internal.SdkInternalList* The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing * into your endpoint. *
* * @param vpcSecurityGroupIds * The security group that defines the ports, protocols, and sources for inbound traffic that you are * authorizing into your endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public CreateEndpointAccessRequest withVpcSecurityGroupIds(java.util.Collection