/* * 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.ec2.model; import java.io.Serializable; import javax.annotation.Generated; /** *
* Describes a client connection. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ClientVpnConnection implements Serializable, Cloneable { /** ** The ID of the Client VPN endpoint to which the client is connected. *
*/ private String clientVpnEndpointId; /** ** The current date and time. *
*/ private String timestamp; /** ** The ID of the client connection. *
*/ private String connectionId; /** ** The username of the client who established the client connection. This information is only provided if Active * Directory client authentication is used. *
*/ private String username; /** ** The date and time the client connection was established. *
*/ private String connectionEstablishedTime; /** ** The number of bytes sent by the client. *
*/ private String ingressBytes; /** ** The number of bytes received by the client. *
*/ private String egressBytes; /** ** The number of packets sent by the client. *
*/ private String ingressPackets; /** ** The number of packets received by the client. *
*/ private String egressPackets; /** ** The IP address of the client. *
*/ private String clientIp; /** ** The common name associated with the client. This is either the name of the client certificate, or the Active * Directory user name. *
*/ private String commonName; /** ** The current state of the client connection. *
*/ private ClientVpnConnectionStatus status; /** ** The date and time the client connection was terminated. *
*/ private String connectionEndTime; /** ** The statuses returned by the client connect handler for posture compliance, if applicable. *
*/ private com.amazonaws.internal.SdkInternalList* The ID of the Client VPN endpoint to which the client is connected. *
* * @param clientVpnEndpointId * The ID of the Client VPN endpoint to which the client is connected. */ public void setClientVpnEndpointId(String clientVpnEndpointId) { this.clientVpnEndpointId = clientVpnEndpointId; } /** ** The ID of the Client VPN endpoint to which the client is connected. *
* * @return The ID of the Client VPN endpoint to which the client is connected. */ public String getClientVpnEndpointId() { return this.clientVpnEndpointId; } /** ** The ID of the Client VPN endpoint to which the client is connected. *
* * @param clientVpnEndpointId * The ID of the Client VPN endpoint to which the client is connected. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientVpnConnection withClientVpnEndpointId(String clientVpnEndpointId) { setClientVpnEndpointId(clientVpnEndpointId); return this; } /** ** The current date and time. *
* * @param timestamp * The current date and time. */ public void setTimestamp(String timestamp) { this.timestamp = timestamp; } /** ** The current date and time. *
* * @return The current date and time. */ public String getTimestamp() { return this.timestamp; } /** ** The current date and time. *
* * @param timestamp * The current date and time. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientVpnConnection withTimestamp(String timestamp) { setTimestamp(timestamp); return this; } /** ** The ID of the client connection. *
* * @param connectionId * The ID of the client connection. */ public void setConnectionId(String connectionId) { this.connectionId = connectionId; } /** ** The ID of the client connection. *
* * @return The ID of the client connection. */ public String getConnectionId() { return this.connectionId; } /** ** The ID of the client connection. *
* * @param connectionId * The ID of the client connection. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientVpnConnection withConnectionId(String connectionId) { setConnectionId(connectionId); return this; } /** ** The username of the client who established the client connection. This information is only provided if Active * Directory client authentication is used. *
* * @param username * The username of the client who established the client connection. This information is only provided if * Active Directory client authentication is used. */ public void setUsername(String username) { this.username = username; } /** ** The username of the client who established the client connection. This information is only provided if Active * Directory client authentication is used. *
* * @return The username of the client who established the client connection. This information is only provided if * Active Directory client authentication is used. */ public String getUsername() { return this.username; } /** ** The username of the client who established the client connection. This information is only provided if Active * Directory client authentication is used. *
* * @param username * The username of the client who established the client connection. This information is only provided if * Active Directory client authentication is used. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientVpnConnection withUsername(String username) { setUsername(username); return this; } /** ** The date and time the client connection was established. *
* * @param connectionEstablishedTime * The date and time the client connection was established. */ public void setConnectionEstablishedTime(String connectionEstablishedTime) { this.connectionEstablishedTime = connectionEstablishedTime; } /** ** The date and time the client connection was established. *
* * @return The date and time the client connection was established. */ public String getConnectionEstablishedTime() { return this.connectionEstablishedTime; } /** ** The date and time the client connection was established. *
* * @param connectionEstablishedTime * The date and time the client connection was established. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientVpnConnection withConnectionEstablishedTime(String connectionEstablishedTime) { setConnectionEstablishedTime(connectionEstablishedTime); return this; } /** ** The number of bytes sent by the client. *
* * @param ingressBytes * The number of bytes sent by the client. */ public void setIngressBytes(String ingressBytes) { this.ingressBytes = ingressBytes; } /** ** The number of bytes sent by the client. *
* * @return The number of bytes sent by the client. */ public String getIngressBytes() { return this.ingressBytes; } /** ** The number of bytes sent by the client. *
* * @param ingressBytes * The number of bytes sent by the client. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientVpnConnection withIngressBytes(String ingressBytes) { setIngressBytes(ingressBytes); return this; } /** ** The number of bytes received by the client. *
* * @param egressBytes * The number of bytes received by the client. */ public void setEgressBytes(String egressBytes) { this.egressBytes = egressBytes; } /** ** The number of bytes received by the client. *
* * @return The number of bytes received by the client. */ public String getEgressBytes() { return this.egressBytes; } /** ** The number of bytes received by the client. *
* * @param egressBytes * The number of bytes received by the client. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientVpnConnection withEgressBytes(String egressBytes) { setEgressBytes(egressBytes); return this; } /** ** The number of packets sent by the client. *
* * @param ingressPackets * The number of packets sent by the client. */ public void setIngressPackets(String ingressPackets) { this.ingressPackets = ingressPackets; } /** ** The number of packets sent by the client. *
* * @return The number of packets sent by the client. */ public String getIngressPackets() { return this.ingressPackets; } /** ** The number of packets sent by the client. *
* * @param ingressPackets * The number of packets sent by the client. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientVpnConnection withIngressPackets(String ingressPackets) { setIngressPackets(ingressPackets); return this; } /** ** The number of packets received by the client. *
* * @param egressPackets * The number of packets received by the client. */ public void setEgressPackets(String egressPackets) { this.egressPackets = egressPackets; } /** ** The number of packets received by the client. *
* * @return The number of packets received by the client. */ public String getEgressPackets() { return this.egressPackets; } /** ** The number of packets received by the client. *
* * @param egressPackets * The number of packets received by the client. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientVpnConnection withEgressPackets(String egressPackets) { setEgressPackets(egressPackets); return this; } /** ** The IP address of the client. *
* * @param clientIp * The IP address of the client. */ public void setClientIp(String clientIp) { this.clientIp = clientIp; } /** ** The IP address of the client. *
* * @return The IP address of the client. */ public String getClientIp() { return this.clientIp; } /** ** The IP address of the client. *
* * @param clientIp * The IP address of the client. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientVpnConnection withClientIp(String clientIp) { setClientIp(clientIp); return this; } /** ** The common name associated with the client. This is either the name of the client certificate, or the Active * Directory user name. *
* * @param commonName * The common name associated with the client. This is either the name of the client certificate, or the * Active Directory user name. */ public void setCommonName(String commonName) { this.commonName = commonName; } /** ** The common name associated with the client. This is either the name of the client certificate, or the Active * Directory user name. *
* * @return The common name associated with the client. This is either the name of the client certificate, or the * Active Directory user name. */ public String getCommonName() { return this.commonName; } /** ** The common name associated with the client. This is either the name of the client certificate, or the Active * Directory user name. *
* * @param commonName * The common name associated with the client. This is either the name of the client certificate, or the * Active Directory user name. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientVpnConnection withCommonName(String commonName) { setCommonName(commonName); return this; } /** ** The current state of the client connection. *
* * @param status * The current state of the client connection. */ public void setStatus(ClientVpnConnectionStatus status) { this.status = status; } /** ** The current state of the client connection. *
* * @return The current state of the client connection. */ public ClientVpnConnectionStatus getStatus() { return this.status; } /** ** The current state of the client connection. *
* * @param status * The current state of the client connection. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientVpnConnection withStatus(ClientVpnConnectionStatus status) { setStatus(status); return this; } /** ** The date and time the client connection was terminated. *
* * @param connectionEndTime * The date and time the client connection was terminated. */ public void setConnectionEndTime(String connectionEndTime) { this.connectionEndTime = connectionEndTime; } /** ** The date and time the client connection was terminated. *
* * @return The date and time the client connection was terminated. */ public String getConnectionEndTime() { return this.connectionEndTime; } /** ** The date and time the client connection was terminated. *
* * @param connectionEndTime * The date and time the client connection was terminated. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientVpnConnection withConnectionEndTime(String connectionEndTime) { setConnectionEndTime(connectionEndTime); return this; } /** ** The statuses returned by the client connect handler for posture compliance, if applicable. *
* * @return The statuses returned by the client connect handler for posture compliance, if applicable. */ public java.util.List* The statuses returned by the client connect handler for posture compliance, if applicable. *
* * @param postureComplianceStatuses * The statuses returned by the client connect handler for posture compliance, if applicable. */ public void setPostureComplianceStatuses(java.util.Collection* The statuses returned by the client connect handler for posture compliance, if applicable. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPostureComplianceStatuses(java.util.Collection)} or * {@link #withPostureComplianceStatuses(java.util.Collection)} if you want to override the existing values. *
* * @param postureComplianceStatuses * The statuses returned by the client connect handler for posture compliance, if applicable. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientVpnConnection withPostureComplianceStatuses(String... postureComplianceStatuses) { if (this.postureComplianceStatuses == null) { setPostureComplianceStatuses(new com.amazonaws.internal.SdkInternalList* The statuses returned by the client connect handler for posture compliance, if applicable. *
* * @param postureComplianceStatuses * The statuses returned by the client connect handler for posture compliance, if applicable. * @return Returns a reference to this object so that method calls can be chained together. */ public ClientVpnConnection withPostureComplianceStatuses(java.util.Collection