/* * 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.outposts.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* Information about a connection. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ConnectionDetails implements Serializable, Cloneable, StructuredPojo { /** ** The public key of the client. *
*/ private String clientPublicKey; /** ** The public key of the server. *
*/ private String serverPublicKey; /** ** The endpoint for the server. *
*/ private String serverEndpoint; /** ** The client tunnel address. *
*/ private String clientTunnelAddress; /** ** The server tunnel address. *
*/ private String serverTunnelAddress; /** ** The allowed IP addresses. *
*/ private java.util.List* The public key of the client. *
* * @param clientPublicKey * The public key of the client. */ public void setClientPublicKey(String clientPublicKey) { this.clientPublicKey = clientPublicKey; } /** ** The public key of the client. *
* * @return The public key of the client. */ public String getClientPublicKey() { return this.clientPublicKey; } /** ** The public key of the client. *
* * @param clientPublicKey * The public key of the client. * @return Returns a reference to this object so that method calls can be chained together. */ public ConnectionDetails withClientPublicKey(String clientPublicKey) { setClientPublicKey(clientPublicKey); return this; } /** ** The public key of the server. *
* * @param serverPublicKey * The public key of the server. */ public void setServerPublicKey(String serverPublicKey) { this.serverPublicKey = serverPublicKey; } /** ** The public key of the server. *
* * @return The public key of the server. */ public String getServerPublicKey() { return this.serverPublicKey; } /** ** The public key of the server. *
* * @param serverPublicKey * The public key of the server. * @return Returns a reference to this object so that method calls can be chained together. */ public ConnectionDetails withServerPublicKey(String serverPublicKey) { setServerPublicKey(serverPublicKey); return this; } /** ** The endpoint for the server. *
* * @param serverEndpoint * The endpoint for the server. */ public void setServerEndpoint(String serverEndpoint) { this.serverEndpoint = serverEndpoint; } /** ** The endpoint for the server. *
* * @return The endpoint for the server. */ public String getServerEndpoint() { return this.serverEndpoint; } /** ** The endpoint for the server. *
* * @param serverEndpoint * The endpoint for the server. * @return Returns a reference to this object so that method calls can be chained together. */ public ConnectionDetails withServerEndpoint(String serverEndpoint) { setServerEndpoint(serverEndpoint); return this; } /** ** The client tunnel address. *
* * @param clientTunnelAddress * The client tunnel address. */ public void setClientTunnelAddress(String clientTunnelAddress) { this.clientTunnelAddress = clientTunnelAddress; } /** ** The client tunnel address. *
* * @return The client tunnel address. */ public String getClientTunnelAddress() { return this.clientTunnelAddress; } /** ** The client tunnel address. *
* * @param clientTunnelAddress * The client tunnel address. * @return Returns a reference to this object so that method calls can be chained together. */ public ConnectionDetails withClientTunnelAddress(String clientTunnelAddress) { setClientTunnelAddress(clientTunnelAddress); return this; } /** ** The server tunnel address. *
* * @param serverTunnelAddress * The server tunnel address. */ public void setServerTunnelAddress(String serverTunnelAddress) { this.serverTunnelAddress = serverTunnelAddress; } /** ** The server tunnel address. *
* * @return The server tunnel address. */ public String getServerTunnelAddress() { return this.serverTunnelAddress; } /** ** The server tunnel address. *
* * @param serverTunnelAddress * The server tunnel address. * @return Returns a reference to this object so that method calls can be chained together. */ public ConnectionDetails withServerTunnelAddress(String serverTunnelAddress) { setServerTunnelAddress(serverTunnelAddress); return this; } /** ** The allowed IP addresses. *
* * @return The allowed IP addresses. */ public java.util.List* The allowed IP addresses. *
* * @param allowedIps * The allowed IP addresses. */ public void setAllowedIps(java.util.Collection* The allowed IP addresses. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setAllowedIps(java.util.Collection)} or {@link #withAllowedIps(java.util.Collection)} if you want to * override the existing values. *
* * @param allowedIps * The allowed IP addresses. * @return Returns a reference to this object so that method calls can be chained together. */ public ConnectionDetails withAllowedIps(String... allowedIps) { if (this.allowedIps == null) { setAllowedIps(new java.util.ArrayList* The allowed IP addresses. *
* * @param allowedIps * The allowed IP addresses. * @return Returns a reference to this object so that method calls can be chained together. */ public ConnectionDetails withAllowedIps(java.util.Collection