/* * 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; /** *
* Describes a Redshift-managed VPC endpoint. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ModifyEndpointAccessResult extends com.amazonaws.AmazonWebServiceResult* The cluster identifier of the cluster associated with the endpoint. *
*/ private String clusterIdentifier; /** ** The Amazon Web Services account ID of the owner of the cluster. *
*/ private String resourceOwner; /** ** The subnet group name where Amazon Redshift chooses to deploy the endpoint. *
*/ private String subnetGroupName; /** ** The status of the endpoint. *
*/ private String endpointStatus; /** ** The name of the endpoint. *
*/ private String endpointName; /** ** The time (UTC) that the endpoint was created. *
*/ private java.util.Date endpointCreateTime; /** ** The port number on which the cluster accepts incoming connections. *
*/ private Integer port; /** ** The DNS address of the endpoint. *
*/ private String address; /** ** The security groups associated with the endpoint. *
*/ private com.amazonaws.internal.SdkInternalList* The cluster identifier of the cluster associated with the endpoint. *
* * @param clusterIdentifier * The cluster identifier of the cluster associated with the endpoint. */ public void setClusterIdentifier(String clusterIdentifier) { this.clusterIdentifier = clusterIdentifier; } /** ** The cluster identifier of the cluster associated with the endpoint. *
* * @return The cluster identifier of the cluster associated with the endpoint. */ public String getClusterIdentifier() { return this.clusterIdentifier; } /** ** The cluster identifier of the cluster associated with the endpoint. *
* * @param clusterIdentifier * The cluster identifier of the cluster associated with the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyEndpointAccessResult withClusterIdentifier(String clusterIdentifier) { setClusterIdentifier(clusterIdentifier); return this; } /** ** The Amazon Web Services account ID of the owner of the cluster. *
* * @param resourceOwner * The Amazon Web Services account ID of the owner of the cluster. */ public void setResourceOwner(String resourceOwner) { this.resourceOwner = resourceOwner; } /** ** The Amazon Web Services account ID of the owner of the cluster. *
* * @return The Amazon Web Services account ID of the owner of the cluster. */ public String getResourceOwner() { return this.resourceOwner; } /** ** The Amazon Web Services account ID of the owner of the cluster. *
* * @param resourceOwner * The Amazon Web Services account ID of the owner of the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyEndpointAccessResult withResourceOwner(String resourceOwner) { setResourceOwner(resourceOwner); return this; } /** ** The subnet group name where Amazon Redshift chooses to deploy the endpoint. *
* * @param subnetGroupName * The subnet group name where Amazon Redshift chooses to deploy the endpoint. */ public void setSubnetGroupName(String subnetGroupName) { this.subnetGroupName = subnetGroupName; } /** ** The subnet group name where Amazon Redshift chooses to deploy the endpoint. *
* * @return The subnet group name where Amazon Redshift chooses to deploy the endpoint. */ public String getSubnetGroupName() { return this.subnetGroupName; } /** ** The subnet group name where Amazon Redshift chooses to deploy the endpoint. *
* * @param subnetGroupName * The subnet group name where Amazon Redshift chooses to deploy the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyEndpointAccessResult withSubnetGroupName(String subnetGroupName) { setSubnetGroupName(subnetGroupName); return this; } /** ** The status of the endpoint. *
* * @param endpointStatus * The status of the endpoint. */ public void setEndpointStatus(String endpointStatus) { this.endpointStatus = endpointStatus; } /** ** The status of the endpoint. *
* * @return The status of the endpoint. */ public String getEndpointStatus() { return this.endpointStatus; } /** ** The status of the endpoint. *
* * @param endpointStatus * The status of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyEndpointAccessResult withEndpointStatus(String endpointStatus) { setEndpointStatus(endpointStatus); return this; } /** ** The name of the endpoint. *
* * @param endpointName * The name of the endpoint. */ public void setEndpointName(String endpointName) { this.endpointName = endpointName; } /** ** The name of the endpoint. *
* * @return The name of the endpoint. */ public String getEndpointName() { return this.endpointName; } /** ** The name of the endpoint. *
* * @param endpointName * The name of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyEndpointAccessResult withEndpointName(String endpointName) { setEndpointName(endpointName); return this; } /** ** The time (UTC) that the endpoint was created. *
* * @param endpointCreateTime * The time (UTC) that the endpoint was created. */ public void setEndpointCreateTime(java.util.Date endpointCreateTime) { this.endpointCreateTime = endpointCreateTime; } /** ** The time (UTC) that the endpoint was created. *
* * @return The time (UTC) that the endpoint was created. */ public java.util.Date getEndpointCreateTime() { return this.endpointCreateTime; } /** ** The time (UTC) that the endpoint was created. *
* * @param endpointCreateTime * The time (UTC) that the endpoint was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyEndpointAccessResult withEndpointCreateTime(java.util.Date endpointCreateTime) { setEndpointCreateTime(endpointCreateTime); return this; } /** ** The port number on which the cluster accepts incoming connections. *
* * @param port * The port number on which the cluster accepts incoming connections. */ public void setPort(Integer port) { this.port = port; } /** ** The port number on which the cluster accepts incoming connections. *
* * @return The port number on which the cluster accepts incoming connections. */ public Integer getPort() { return this.port; } /** ** The port number on which the cluster accepts incoming connections. *
* * @param port * The port number on which the cluster accepts incoming connections. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyEndpointAccessResult withPort(Integer port) { setPort(port); return this; } /** ** The DNS address of the endpoint. *
* * @param address * The DNS address of the endpoint. */ public void setAddress(String address) { this.address = address; } /** ** The DNS address of the endpoint. *
* * @return The DNS address of the endpoint. */ public String getAddress() { return this.address; } /** ** The DNS address of the endpoint. *
* * @param address * The DNS address of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyEndpointAccessResult withAddress(String address) { setAddress(address); return this; } /** ** The security groups associated with the endpoint. *
* * @return The security groups associated with the endpoint. */ public java.util.List* The security groups associated with the endpoint. *
* * @param vpcSecurityGroups * The security groups associated with the endpoint. */ public void setVpcSecurityGroups(java.util.Collection* The security groups associated with the endpoint. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setVpcSecurityGroups(java.util.Collection)} or {@link #withVpcSecurityGroups(java.util.Collection)} if * you want to override the existing values. *
* * @param vpcSecurityGroups * The security groups associated with the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyEndpointAccessResult withVpcSecurityGroups(VpcSecurityGroupMembership... vpcSecurityGroups) { if (this.vpcSecurityGroups == null) { setVpcSecurityGroups(new com.amazonaws.internal.SdkInternalList* The security groups associated with the endpoint. *
* * @param vpcSecurityGroups * The security groups associated with the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyEndpointAccessResult withVpcSecurityGroups(java.util.Collection