/* * 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 ModifyEndpointAccessRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* The endpoint to be modified. *
*/ private String endpointName; /** ** The complete list of VPC security groups associated with the endpoint after the endpoint is modified. *
*/ private com.amazonaws.internal.SdkInternalList* The endpoint to be modified. *
* * @param endpointName * The endpoint to be modified. */ public void setEndpointName(String endpointName) { this.endpointName = endpointName; } /** ** The endpoint to be modified. *
* * @return The endpoint to be modified. */ public String getEndpointName() { return this.endpointName; } /** ** The endpoint to be modified. *
* * @param endpointName * The endpoint to be modified. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyEndpointAccessRequest withEndpointName(String endpointName) { setEndpointName(endpointName); return this; } /** ** The complete list of VPC security groups associated with the endpoint after the endpoint is modified. *
* * @return The complete list of VPC security groups associated with the endpoint after the endpoint is modified. */ public java.util.List* The complete list of VPC security groups associated with the endpoint after the endpoint is modified. *
* * @param vpcSecurityGroupIds * The complete list of VPC security groups associated with the endpoint after the endpoint is modified. */ public void setVpcSecurityGroupIds(java.util.Collection* The complete list of VPC security groups associated with the endpoint after the endpoint is modified. *
** 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 complete list of VPC security groups associated with the endpoint after the endpoint is modified. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyEndpointAccessRequest withVpcSecurityGroupIds(String... vpcSecurityGroupIds) { if (this.vpcSecurityGroupIds == null) { setVpcSecurityGroupIds(new com.amazonaws.internal.SdkInternalList* The complete list of VPC security groups associated with the endpoint after the endpoint is modified. *
* * @param vpcSecurityGroupIds * The complete list of VPC security groups associated with the endpoint after the endpoint is modified. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyEndpointAccessRequest withVpcSecurityGroupIds(java.util.Collection