com.amazonaws.services.securityhub.model.AwsEc2ClientVpnEndpointDetails Maven / Gradle / Ivy
Show all versions of aws-java-sdk-securityhub Show documentation
/*
* Copyright 2019-2024 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.securityhub.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Describes an Client VPN endpoint. A Client VPN endpoint is the resource that you create and configure to enable and
* manage client VPN sessions. It's the termination point for all client VPN sessions.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class AwsEc2ClientVpnEndpointDetails implements Serializable, Cloneable, StructuredPojo {
/**
*
* The ID of the Client VPN endpoint.
*
*/
private String clientVpnEndpointId;
/**
*
* A brief description of the endpoint.
*
*/
private String description;
/**
*
* The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.
*
*/
private String clientCidrBlock;
/**
*
* Information about the DNS servers to be used for DNS resolution.
*
*/
private java.util.List dnsServer;
/**
*
* Indicates whether split-tunnel is enabled in the Client VPN endpoint.
*
*/
private Boolean splitTunnel;
/**
*
* The transport protocol used by the Client VPN endpoint.
*
*/
private String transportProtocol;
/**
*
* The port number for the Client VPN endpoint.
*
*/
private Integer vpnPort;
/**
*
* The Amazon Resource Name (ARN) of the server certificate.
*
*/
private String serverCertificateArn;
/**
*
* Information about the authentication method used by the Client VPN endpoint.
*
*/
private java.util.List authenticationOptions;
/**
*
* Information about the client connection logging options for the Client VPN endpoint.
*
*/
private AwsEc2ClientVpnEndpointConnectionLogOptionsDetails connectionLogOptions;
/**
*
* The IDs of the security groups for the target network.
*
*/
private java.util.List securityGroupIdSet;
/**
*
* The ID of the VPC.
*
*/
private String vpcId;
/**
*
* The URL of the self-service portal.
*
*/
private String selfServicePortalUrl;
/**
*
* The options for managing connection authorization for new client connections.
*
*/
private AwsEc2ClientVpnEndpointClientConnectOptionsDetails clientConnectOptions;
/**
*
* The maximum VPN session duration time in hours.
*
*/
private Integer sessionTimeoutHours;
/**
*
* Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients
* when a VPN session is established.
*
*/
private AwsEc2ClientVpnEndpointClientLoginBannerOptionsDetails clientLoginBannerOptions;
/**
*
* The ID of the Client VPN endpoint.
*
*
* @param clientVpnEndpointId
* The ID of the Client VPN endpoint.
*/
public void setClientVpnEndpointId(String clientVpnEndpointId) {
this.clientVpnEndpointId = clientVpnEndpointId;
}
/**
*
* The ID of the Client VPN endpoint.
*
*
* @return The ID of the Client VPN endpoint.
*/
public String getClientVpnEndpointId() {
return this.clientVpnEndpointId;
}
/**
*
* The ID of the Client VPN endpoint.
*
*
* @param clientVpnEndpointId
* The ID of the Client VPN endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withClientVpnEndpointId(String clientVpnEndpointId) {
setClientVpnEndpointId(clientVpnEndpointId);
return this;
}
/**
*
* A brief description of the endpoint.
*
*
* @param description
* A brief description of the endpoint.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* A brief description of the endpoint.
*
*
* @return A brief description of the endpoint.
*/
public String getDescription() {
return this.description;
}
/**
*
* A brief description of the endpoint.
*
*
* @param description
* A brief description of the endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withDescription(String description) {
setDescription(description);
return this;
}
/**
*
* The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.
*
*
* @param clientCidrBlock
* The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.
*/
public void setClientCidrBlock(String clientCidrBlock) {
this.clientCidrBlock = clientCidrBlock;
}
/**
*
* The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.
*
*
* @return The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.
*/
public String getClientCidrBlock() {
return this.clientCidrBlock;
}
/**
*
* The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.
*
*
* @param clientCidrBlock
* The IPv4 address range, in CIDR notation, from which client IP addresses are assigned.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withClientCidrBlock(String clientCidrBlock) {
setClientCidrBlock(clientCidrBlock);
return this;
}
/**
*
* Information about the DNS servers to be used for DNS resolution.
*
*
* @return Information about the DNS servers to be used for DNS resolution.
*/
public java.util.List getDnsServer() {
return dnsServer;
}
/**
*
* Information about the DNS servers to be used for DNS resolution.
*
*
* @param dnsServer
* Information about the DNS servers to be used for DNS resolution.
*/
public void setDnsServer(java.util.Collection dnsServer) {
if (dnsServer == null) {
this.dnsServer = null;
return;
}
this.dnsServer = new java.util.ArrayList(dnsServer);
}
/**
*
* Information about the DNS servers to be used for DNS resolution.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDnsServer(java.util.Collection)} or {@link #withDnsServer(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param dnsServer
* Information about the DNS servers to be used for DNS resolution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withDnsServer(String... dnsServer) {
if (this.dnsServer == null) {
setDnsServer(new java.util.ArrayList(dnsServer.length));
}
for (String ele : dnsServer) {
this.dnsServer.add(ele);
}
return this;
}
/**
*
* Information about the DNS servers to be used for DNS resolution.
*
*
* @param dnsServer
* Information about the DNS servers to be used for DNS resolution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withDnsServer(java.util.Collection dnsServer) {
setDnsServer(dnsServer);
return this;
}
/**
*
* Indicates whether split-tunnel is enabled in the Client VPN endpoint.
*
*
* @param splitTunnel
* Indicates whether split-tunnel is enabled in the Client VPN endpoint.
*/
public void setSplitTunnel(Boolean splitTunnel) {
this.splitTunnel = splitTunnel;
}
/**
*
* Indicates whether split-tunnel is enabled in the Client VPN endpoint.
*
*
* @return Indicates whether split-tunnel is enabled in the Client VPN endpoint.
*/
public Boolean getSplitTunnel() {
return this.splitTunnel;
}
/**
*
* Indicates whether split-tunnel is enabled in the Client VPN endpoint.
*
*
* @param splitTunnel
* Indicates whether split-tunnel is enabled in the Client VPN endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withSplitTunnel(Boolean splitTunnel) {
setSplitTunnel(splitTunnel);
return this;
}
/**
*
* Indicates whether split-tunnel is enabled in the Client VPN endpoint.
*
*
* @return Indicates whether split-tunnel is enabled in the Client VPN endpoint.
*/
public Boolean isSplitTunnel() {
return this.splitTunnel;
}
/**
*
* The transport protocol used by the Client VPN endpoint.
*
*
* @param transportProtocol
* The transport protocol used by the Client VPN endpoint.
*/
public void setTransportProtocol(String transportProtocol) {
this.transportProtocol = transportProtocol;
}
/**
*
* The transport protocol used by the Client VPN endpoint.
*
*
* @return The transport protocol used by the Client VPN endpoint.
*/
public String getTransportProtocol() {
return this.transportProtocol;
}
/**
*
* The transport protocol used by the Client VPN endpoint.
*
*
* @param transportProtocol
* The transport protocol used by the Client VPN endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withTransportProtocol(String transportProtocol) {
setTransportProtocol(transportProtocol);
return this;
}
/**
*
* The port number for the Client VPN endpoint.
*
*
* @param vpnPort
* The port number for the Client VPN endpoint.
*/
public void setVpnPort(Integer vpnPort) {
this.vpnPort = vpnPort;
}
/**
*
* The port number for the Client VPN endpoint.
*
*
* @return The port number for the Client VPN endpoint.
*/
public Integer getVpnPort() {
return this.vpnPort;
}
/**
*
* The port number for the Client VPN endpoint.
*
*
* @param vpnPort
* The port number for the Client VPN endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withVpnPort(Integer vpnPort) {
setVpnPort(vpnPort);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the server certificate.
*
*
* @param serverCertificateArn
* The Amazon Resource Name (ARN) of the server certificate.
*/
public void setServerCertificateArn(String serverCertificateArn) {
this.serverCertificateArn = serverCertificateArn;
}
/**
*
* The Amazon Resource Name (ARN) of the server certificate.
*
*
* @return The Amazon Resource Name (ARN) of the server certificate.
*/
public String getServerCertificateArn() {
return this.serverCertificateArn;
}
/**
*
* The Amazon Resource Name (ARN) of the server certificate.
*
*
* @param serverCertificateArn
* The Amazon Resource Name (ARN) of the server certificate.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withServerCertificateArn(String serverCertificateArn) {
setServerCertificateArn(serverCertificateArn);
return this;
}
/**
*
* Information about the authentication method used by the Client VPN endpoint.
*
*
* @return Information about the authentication method used by the Client VPN endpoint.
*/
public java.util.List getAuthenticationOptions() {
return authenticationOptions;
}
/**
*
* Information about the authentication method used by the Client VPN endpoint.
*
*
* @param authenticationOptions
* Information about the authentication method used by the Client VPN endpoint.
*/
public void setAuthenticationOptions(java.util.Collection authenticationOptions) {
if (authenticationOptions == null) {
this.authenticationOptions = null;
return;
}
this.authenticationOptions = new java.util.ArrayList(authenticationOptions);
}
/**
*
* Information about the authentication method used by the Client VPN endpoint.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setAuthenticationOptions(java.util.Collection)} or
* {@link #withAuthenticationOptions(java.util.Collection)} if you want to override the existing values.
*
*
* @param authenticationOptions
* Information about the authentication method used by the Client VPN endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withAuthenticationOptions(AwsEc2ClientVpnEndpointAuthenticationOptionsDetails... authenticationOptions) {
if (this.authenticationOptions == null) {
setAuthenticationOptions(new java.util.ArrayList(authenticationOptions.length));
}
for (AwsEc2ClientVpnEndpointAuthenticationOptionsDetails ele : authenticationOptions) {
this.authenticationOptions.add(ele);
}
return this;
}
/**
*
* Information about the authentication method used by the Client VPN endpoint.
*
*
* @param authenticationOptions
* Information about the authentication method used by the Client VPN endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withAuthenticationOptions(
java.util.Collection authenticationOptions) {
setAuthenticationOptions(authenticationOptions);
return this;
}
/**
*
* Information about the client connection logging options for the Client VPN endpoint.
*
*
* @param connectionLogOptions
* Information about the client connection logging options for the Client VPN endpoint.
*/
public void setConnectionLogOptions(AwsEc2ClientVpnEndpointConnectionLogOptionsDetails connectionLogOptions) {
this.connectionLogOptions = connectionLogOptions;
}
/**
*
* Information about the client connection logging options for the Client VPN endpoint.
*
*
* @return Information about the client connection logging options for the Client VPN endpoint.
*/
public AwsEc2ClientVpnEndpointConnectionLogOptionsDetails getConnectionLogOptions() {
return this.connectionLogOptions;
}
/**
*
* Information about the client connection logging options for the Client VPN endpoint.
*
*
* @param connectionLogOptions
* Information about the client connection logging options for the Client VPN endpoint.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withConnectionLogOptions(AwsEc2ClientVpnEndpointConnectionLogOptionsDetails connectionLogOptions) {
setConnectionLogOptions(connectionLogOptions);
return this;
}
/**
*
* The IDs of the security groups for the target network.
*
*
* @return The IDs of the security groups for the target network.
*/
public java.util.List getSecurityGroupIdSet() {
return securityGroupIdSet;
}
/**
*
* The IDs of the security groups for the target network.
*
*
* @param securityGroupIdSet
* The IDs of the security groups for the target network.
*/
public void setSecurityGroupIdSet(java.util.Collection securityGroupIdSet) {
if (securityGroupIdSet == null) {
this.securityGroupIdSet = null;
return;
}
this.securityGroupIdSet = new java.util.ArrayList(securityGroupIdSet);
}
/**
*
* The IDs of the security groups for the target network.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSecurityGroupIdSet(java.util.Collection)} or {@link #withSecurityGroupIdSet(java.util.Collection)} if
* you want to override the existing values.
*
*
* @param securityGroupIdSet
* The IDs of the security groups for the target network.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withSecurityGroupIdSet(String... securityGroupIdSet) {
if (this.securityGroupIdSet == null) {
setSecurityGroupIdSet(new java.util.ArrayList(securityGroupIdSet.length));
}
for (String ele : securityGroupIdSet) {
this.securityGroupIdSet.add(ele);
}
return this;
}
/**
*
* The IDs of the security groups for the target network.
*
*
* @param securityGroupIdSet
* The IDs of the security groups for the target network.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withSecurityGroupIdSet(java.util.Collection securityGroupIdSet) {
setSecurityGroupIdSet(securityGroupIdSet);
return this;
}
/**
*
* The ID of the VPC.
*
*
* @param vpcId
* The ID of the VPC.
*/
public void setVpcId(String vpcId) {
this.vpcId = vpcId;
}
/**
*
* The ID of the VPC.
*
*
* @return The ID of the VPC.
*/
public String getVpcId() {
return this.vpcId;
}
/**
*
* The ID of the VPC.
*
*
* @param vpcId
* The ID of the VPC.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withVpcId(String vpcId) {
setVpcId(vpcId);
return this;
}
/**
*
* The URL of the self-service portal.
*
*
* @param selfServicePortalUrl
* The URL of the self-service portal.
*/
public void setSelfServicePortalUrl(String selfServicePortalUrl) {
this.selfServicePortalUrl = selfServicePortalUrl;
}
/**
*
* The URL of the self-service portal.
*
*
* @return The URL of the self-service portal.
*/
public String getSelfServicePortalUrl() {
return this.selfServicePortalUrl;
}
/**
*
* The URL of the self-service portal.
*
*
* @param selfServicePortalUrl
* The URL of the self-service portal.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withSelfServicePortalUrl(String selfServicePortalUrl) {
setSelfServicePortalUrl(selfServicePortalUrl);
return this;
}
/**
*
* The options for managing connection authorization for new client connections.
*
*
* @param clientConnectOptions
* The options for managing connection authorization for new client connections.
*/
public void setClientConnectOptions(AwsEc2ClientVpnEndpointClientConnectOptionsDetails clientConnectOptions) {
this.clientConnectOptions = clientConnectOptions;
}
/**
*
* The options for managing connection authorization for new client connections.
*
*
* @return The options for managing connection authorization for new client connections.
*/
public AwsEc2ClientVpnEndpointClientConnectOptionsDetails getClientConnectOptions() {
return this.clientConnectOptions;
}
/**
*
* The options for managing connection authorization for new client connections.
*
*
* @param clientConnectOptions
* The options for managing connection authorization for new client connections.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withClientConnectOptions(AwsEc2ClientVpnEndpointClientConnectOptionsDetails clientConnectOptions) {
setClientConnectOptions(clientConnectOptions);
return this;
}
/**
*
* The maximum VPN session duration time in hours.
*
*
* @param sessionTimeoutHours
* The maximum VPN session duration time in hours.
*/
public void setSessionTimeoutHours(Integer sessionTimeoutHours) {
this.sessionTimeoutHours = sessionTimeoutHours;
}
/**
*
* The maximum VPN session duration time in hours.
*
*
* @return The maximum VPN session duration time in hours.
*/
public Integer getSessionTimeoutHours() {
return this.sessionTimeoutHours;
}
/**
*
* The maximum VPN session duration time in hours.
*
*
* @param sessionTimeoutHours
* The maximum VPN session duration time in hours.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withSessionTimeoutHours(Integer sessionTimeoutHours) {
setSessionTimeoutHours(sessionTimeoutHours);
return this;
}
/**
*
* Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients
* when a VPN session is established.
*
*
* @param clientLoginBannerOptions
* Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided
* clients when a VPN session is established.
*/
public void setClientLoginBannerOptions(AwsEc2ClientVpnEndpointClientLoginBannerOptionsDetails clientLoginBannerOptions) {
this.clientLoginBannerOptions = clientLoginBannerOptions;
}
/**
*
* Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients
* when a VPN session is established.
*
*
* @return Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided
* clients when a VPN session is established.
*/
public AwsEc2ClientVpnEndpointClientLoginBannerOptionsDetails getClientLoginBannerOptions() {
return this.clientLoginBannerOptions;
}
/**
*
* Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided clients
* when a VPN session is established.
*
*
* @param clientLoginBannerOptions
* Options for enabling a customizable text banner that will be displayed on Amazon Web Services provided
* clients when a VPN session is established.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AwsEc2ClientVpnEndpointDetails withClientLoginBannerOptions(AwsEc2ClientVpnEndpointClientLoginBannerOptionsDetails clientLoginBannerOptions) {
setClientLoginBannerOptions(clientLoginBannerOptions);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getClientVpnEndpointId() != null)
sb.append("ClientVpnEndpointId: ").append(getClientVpnEndpointId()).append(",");
if (getDescription() != null)
sb.append("Description: ").append(getDescription()).append(",");
if (getClientCidrBlock() != null)
sb.append("ClientCidrBlock: ").append(getClientCidrBlock()).append(",");
if (getDnsServer() != null)
sb.append("DnsServer: ").append(getDnsServer()).append(",");
if (getSplitTunnel() != null)
sb.append("SplitTunnel: ").append(getSplitTunnel()).append(",");
if (getTransportProtocol() != null)
sb.append("TransportProtocol: ").append(getTransportProtocol()).append(",");
if (getVpnPort() != null)
sb.append("VpnPort: ").append(getVpnPort()).append(",");
if (getServerCertificateArn() != null)
sb.append("ServerCertificateArn: ").append(getServerCertificateArn()).append(",");
if (getAuthenticationOptions() != null)
sb.append("AuthenticationOptions: ").append(getAuthenticationOptions()).append(",");
if (getConnectionLogOptions() != null)
sb.append("ConnectionLogOptions: ").append(getConnectionLogOptions()).append(",");
if (getSecurityGroupIdSet() != null)
sb.append("SecurityGroupIdSet: ").append(getSecurityGroupIdSet()).append(",");
if (getVpcId() != null)
sb.append("VpcId: ").append(getVpcId()).append(",");
if (getSelfServicePortalUrl() != null)
sb.append("SelfServicePortalUrl: ").append(getSelfServicePortalUrl()).append(",");
if (getClientConnectOptions() != null)
sb.append("ClientConnectOptions: ").append(getClientConnectOptions()).append(",");
if (getSessionTimeoutHours() != null)
sb.append("SessionTimeoutHours: ").append(getSessionTimeoutHours()).append(",");
if (getClientLoginBannerOptions() != null)
sb.append("ClientLoginBannerOptions: ").append(getClientLoginBannerOptions());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof AwsEc2ClientVpnEndpointDetails == false)
return false;
AwsEc2ClientVpnEndpointDetails other = (AwsEc2ClientVpnEndpointDetails) obj;
if (other.getClientVpnEndpointId() == null ^ this.getClientVpnEndpointId() == null)
return false;
if (other.getClientVpnEndpointId() != null && other.getClientVpnEndpointId().equals(this.getClientVpnEndpointId()) == false)
return false;
if (other.getDescription() == null ^ this.getDescription() == null)
return false;
if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false)
return false;
if (other.getClientCidrBlock() == null ^ this.getClientCidrBlock() == null)
return false;
if (other.getClientCidrBlock() != null && other.getClientCidrBlock().equals(this.getClientCidrBlock()) == false)
return false;
if (other.getDnsServer() == null ^ this.getDnsServer() == null)
return false;
if (other.getDnsServer() != null && other.getDnsServer().equals(this.getDnsServer()) == false)
return false;
if (other.getSplitTunnel() == null ^ this.getSplitTunnel() == null)
return false;
if (other.getSplitTunnel() != null && other.getSplitTunnel().equals(this.getSplitTunnel()) == false)
return false;
if (other.getTransportProtocol() == null ^ this.getTransportProtocol() == null)
return false;
if (other.getTransportProtocol() != null && other.getTransportProtocol().equals(this.getTransportProtocol()) == false)
return false;
if (other.getVpnPort() == null ^ this.getVpnPort() == null)
return false;
if (other.getVpnPort() != null && other.getVpnPort().equals(this.getVpnPort()) == false)
return false;
if (other.getServerCertificateArn() == null ^ this.getServerCertificateArn() == null)
return false;
if (other.getServerCertificateArn() != null && other.getServerCertificateArn().equals(this.getServerCertificateArn()) == false)
return false;
if (other.getAuthenticationOptions() == null ^ this.getAuthenticationOptions() == null)
return false;
if (other.getAuthenticationOptions() != null && other.getAuthenticationOptions().equals(this.getAuthenticationOptions()) == false)
return false;
if (other.getConnectionLogOptions() == null ^ this.getConnectionLogOptions() == null)
return false;
if (other.getConnectionLogOptions() != null && other.getConnectionLogOptions().equals(this.getConnectionLogOptions()) == false)
return false;
if (other.getSecurityGroupIdSet() == null ^ this.getSecurityGroupIdSet() == null)
return false;
if (other.getSecurityGroupIdSet() != null && other.getSecurityGroupIdSet().equals(this.getSecurityGroupIdSet()) == false)
return false;
if (other.getVpcId() == null ^ this.getVpcId() == null)
return false;
if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == false)
return false;
if (other.getSelfServicePortalUrl() == null ^ this.getSelfServicePortalUrl() == null)
return false;
if (other.getSelfServicePortalUrl() != null && other.getSelfServicePortalUrl().equals(this.getSelfServicePortalUrl()) == false)
return false;
if (other.getClientConnectOptions() == null ^ this.getClientConnectOptions() == null)
return false;
if (other.getClientConnectOptions() != null && other.getClientConnectOptions().equals(this.getClientConnectOptions()) == false)
return false;
if (other.getSessionTimeoutHours() == null ^ this.getSessionTimeoutHours() == null)
return false;
if (other.getSessionTimeoutHours() != null && other.getSessionTimeoutHours().equals(this.getSessionTimeoutHours()) == false)
return false;
if (other.getClientLoginBannerOptions() == null ^ this.getClientLoginBannerOptions() == null)
return false;
if (other.getClientLoginBannerOptions() != null && other.getClientLoginBannerOptions().equals(this.getClientLoginBannerOptions()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getClientVpnEndpointId() == null) ? 0 : getClientVpnEndpointId().hashCode());
hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode());
hashCode = prime * hashCode + ((getClientCidrBlock() == null) ? 0 : getClientCidrBlock().hashCode());
hashCode = prime * hashCode + ((getDnsServer() == null) ? 0 : getDnsServer().hashCode());
hashCode = prime * hashCode + ((getSplitTunnel() == null) ? 0 : getSplitTunnel().hashCode());
hashCode = prime * hashCode + ((getTransportProtocol() == null) ? 0 : getTransportProtocol().hashCode());
hashCode = prime * hashCode + ((getVpnPort() == null) ? 0 : getVpnPort().hashCode());
hashCode = prime * hashCode + ((getServerCertificateArn() == null) ? 0 : getServerCertificateArn().hashCode());
hashCode = prime * hashCode + ((getAuthenticationOptions() == null) ? 0 : getAuthenticationOptions().hashCode());
hashCode = prime * hashCode + ((getConnectionLogOptions() == null) ? 0 : getConnectionLogOptions().hashCode());
hashCode = prime * hashCode + ((getSecurityGroupIdSet() == null) ? 0 : getSecurityGroupIdSet().hashCode());
hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode());
hashCode = prime * hashCode + ((getSelfServicePortalUrl() == null) ? 0 : getSelfServicePortalUrl().hashCode());
hashCode = prime * hashCode + ((getClientConnectOptions() == null) ? 0 : getClientConnectOptions().hashCode());
hashCode = prime * hashCode + ((getSessionTimeoutHours() == null) ? 0 : getSessionTimeoutHours().hashCode());
hashCode = prime * hashCode + ((getClientLoginBannerOptions() == null) ? 0 : getClientLoginBannerOptions().hashCode());
return hashCode;
}
@Override
public AwsEc2ClientVpnEndpointDetails clone() {
try {
return (AwsEc2ClientVpnEndpointDetails) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
@com.amazonaws.annotation.SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
com.amazonaws.services.securityhub.model.transform.AwsEc2ClientVpnEndpointDetailsMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}