/* * 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.redshiftserverless.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* The VPC endpoint object. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Endpoint implements Serializable, Cloneable, StructuredPojo { /** ** The DNS address of the VPC endpoint. *
*/ private String address; /** ** The port that Amazon Redshift Serverless listens on. *
*/ private Integer port; /** *
* An array of VpcEndpoint
objects.
*
* The DNS address of the VPC endpoint. *
* * @param address * The DNS address of the VPC endpoint. */ public void setAddress(String address) { this.address = address; } /** ** The DNS address of the VPC endpoint. *
* * @return The DNS address of the VPC endpoint. */ public String getAddress() { return this.address; } /** ** The DNS address of the VPC endpoint. *
* * @param address * The DNS address of the VPC endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withAddress(String address) { setAddress(address); return this; } /** ** The port that Amazon Redshift Serverless listens on. *
* * @param port * The port that Amazon Redshift Serverless listens on. */ public void setPort(Integer port) { this.port = port; } /** ** The port that Amazon Redshift Serverless listens on. *
* * @return The port that Amazon Redshift Serverless listens on. */ public Integer getPort() { return this.port; } /** ** The port that Amazon Redshift Serverless listens on. *
* * @param port * The port that Amazon Redshift Serverless listens on. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withPort(Integer port) { setPort(port); return this; } /** *
* An array of VpcEndpoint
objects.
*
VpcEndpoint
objects.
*/
public java.util.List
* An array of VpcEndpoint
objects.
*
VpcEndpoint
objects.
*/
public void setVpcEndpoints(java.util.Collection
* An array of VpcEndpoint
objects.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setVpcEndpoints(java.util.Collection)} or {@link #withVpcEndpoints(java.util.Collection)} if you want to * override the existing values. *
* * @param vpcEndpoints * An array ofVpcEndpoint
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Endpoint withVpcEndpoints(VpcEndpoint... vpcEndpoints) {
if (this.vpcEndpoints == null) {
setVpcEndpoints(new java.util.ArrayList
* An array of VpcEndpoint
objects.
*
VpcEndpoint
objects.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Endpoint withVpcEndpoints(java.util.Collection