/* * 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 connection endpoint. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class Endpoint implements Serializable, Cloneable { /** ** The DNS address of the Cluster. *
*/ private String address; /** ** The port that the database engine is listening on. *
*/ private Integer port; /** ** Describes a connection endpoint. *
*/ private com.amazonaws.internal.SdkInternalList* The DNS address of the Cluster. *
* * @param address * The DNS address of the Cluster. */ public void setAddress(String address) { this.address = address; } /** ** The DNS address of the Cluster. *
* * @return The DNS address of the Cluster. */ public String getAddress() { return this.address; } /** ** The DNS address of the Cluster. *
* * @param address * The DNS address of the Cluster. * @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 the database engine is listening on. *
* * @param port * The port that the database engine is listening on. */ public void setPort(Integer port) { this.port = port; } /** ** The port that the database engine is listening on. *
* * @return The port that the database engine is listening on. */ public Integer getPort() { return this.port; } /** ** The port that the database engine is listening on. *
* * @param port * The port that the database engine is listening 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; } /** ** Describes a connection endpoint. *
* * @return Describes a connection endpoint. */ public java.util.List* Describes a connection endpoint. *
* * @param vpcEndpoints * Describes a connection endpoint. */ public void setVpcEndpoints(java.util.Collection* Describes a connection endpoint. *
** 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 * Describes a connection endpoint. * @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 com.amazonaws.internal.SdkInternalList* Describes a connection endpoint. *
* * @param vpcEndpoints * Describes a connection endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public Endpoint withVpcEndpoints(java.util.Collection