All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.ec2.model.ModifyClientVpnEndpointRequest Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon EC2 module holds the client classes that are used for communicating with Amazon EC2 Service

There is a newer version: 1.12.772
Show newest version
/*
 * Copyright 2014-2019 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;

import com.amazonaws.AmazonWebServiceRequest;
import com.amazonaws.Request;
import com.amazonaws.services.ec2.model.transform.ModifyClientVpnEndpointRequestMarshaller;

/**
 * 
 */
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ModifyClientVpnEndpointRequest extends AmazonWebServiceRequest implements Serializable, Cloneable,
        DryRunSupportedRequest {

    /**
     * 

* The ID of the Client VPN endpoint to modify. *

*/ private String clientVpnEndpointId; /** *

* The ARN of the server certificate to be used. The server certificate must be provisioned in AWS Certificate * Manager (ACM). *

*/ private String serverCertificateArn; /** *

* Information about the client connection logging options. *

*

* If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log stream. * The following information is logged: *

*
    *
  • *

    * Client connection requests *

    *
  • *
  • *

    * Client connection results (successful and unsuccessful) *

    *
  • *
  • *

    * Reasons for unsuccessful client connection requests *

    *
  • *
  • *

    * Client connection termination time *

    *
  • *
*/ private ConnectionLogOptions connectionLogOptions; /** *

* Information about the DNS servers to be used by Client VPN connections. A Client VPN endpoint can have up to two * DNS servers. *

*/ private DnsServersOptionsModifyStructure dnsServers; /** *

* A brief description of the Client VPN endpoint. *

*/ private String description; /** *

* Indicates whether the VPN is split-tunnel. *

*

* For information about split-tunnel VPN endpoints, see Split-Tunnel AWS Client VPN * Endpoint in the AWS Client VPN Administrator Guide. *

*/ private Boolean splitTunnel; /** *

* The ID of the Client VPN endpoint to modify. *

* * @param clientVpnEndpointId * The ID of the Client VPN endpoint to modify. */ public void setClientVpnEndpointId(String clientVpnEndpointId) { this.clientVpnEndpointId = clientVpnEndpointId; } /** *

* The ID of the Client VPN endpoint to modify. *

* * @return The ID of the Client VPN endpoint to modify. */ public String getClientVpnEndpointId() { return this.clientVpnEndpointId; } /** *

* The ID of the Client VPN endpoint to modify. *

* * @param clientVpnEndpointId * The ID of the Client VPN endpoint to modify. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyClientVpnEndpointRequest withClientVpnEndpointId(String clientVpnEndpointId) { setClientVpnEndpointId(clientVpnEndpointId); return this; } /** *

* The ARN of the server certificate to be used. The server certificate must be provisioned in AWS Certificate * Manager (ACM). *

* * @param serverCertificateArn * The ARN of the server certificate to be used. The server certificate must be provisioned in AWS * Certificate Manager (ACM). */ public void setServerCertificateArn(String serverCertificateArn) { this.serverCertificateArn = serverCertificateArn; } /** *

* The ARN of the server certificate to be used. The server certificate must be provisioned in AWS Certificate * Manager (ACM). *

* * @return The ARN of the server certificate to be used. The server certificate must be provisioned in AWS * Certificate Manager (ACM). */ public String getServerCertificateArn() { return this.serverCertificateArn; } /** *

* The ARN of the server certificate to be used. The server certificate must be provisioned in AWS Certificate * Manager (ACM). *

* * @param serverCertificateArn * The ARN of the server certificate to be used. The server certificate must be provisioned in AWS * Certificate Manager (ACM). * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyClientVpnEndpointRequest withServerCertificateArn(String serverCertificateArn) { setServerCertificateArn(serverCertificateArn); return this; } /** *

* Information about the client connection logging options. *

*

* If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log stream. * The following information is logged: *

*
    *
  • *

    * Client connection requests *

    *
  • *
  • *

    * Client connection results (successful and unsuccessful) *

    *
  • *
  • *

    * Reasons for unsuccessful client connection requests *

    *
  • *
  • *

    * Client connection termination time *

    *
  • *
* * @param connectionLogOptions * Information about the client connection logging options.

*

* If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log * stream. The following information is logged: *

*
    *
  • *

    * Client connection requests *

    *
  • *
  • *

    * Client connection results (successful and unsuccessful) *

    *
  • *
  • *

    * Reasons for unsuccessful client connection requests *

    *
  • *
  • *

    * Client connection termination time *

    *
  • */ public void setConnectionLogOptions(ConnectionLogOptions connectionLogOptions) { this.connectionLogOptions = connectionLogOptions; } /** *

    * Information about the client connection logging options. *

    *

    * If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log stream. * The following information is logged: *

    *
      *
    • *

      * Client connection requests *

      *
    • *
    • *

      * Client connection results (successful and unsuccessful) *

      *
    • *
    • *

      * Reasons for unsuccessful client connection requests *

      *
    • *
    • *

      * Client connection termination time *

      *
    • *
    * * @return Information about the client connection logging options.

    *

    * If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log * stream. The following information is logged: *

    *
      *
    • *

      * Client connection requests *

      *
    • *
    • *

      * Client connection results (successful and unsuccessful) *

      *
    • *
    • *

      * Reasons for unsuccessful client connection requests *

      *
    • *
    • *

      * Client connection termination time *

      *
    • */ public ConnectionLogOptions getConnectionLogOptions() { return this.connectionLogOptions; } /** *

      * Information about the client connection logging options. *

      *

      * If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log stream. * The following information is logged: *

      *
        *
      • *

        * Client connection requests *

        *
      • *
      • *

        * Client connection results (successful and unsuccessful) *

        *
      • *
      • *

        * Reasons for unsuccessful client connection requests *

        *
      • *
      • *

        * Client connection termination time *

        *
      • *
      * * @param connectionLogOptions * Information about the client connection logging options.

      *

      * If you enable client connection logging, data about client connections is sent to a Cloudwatch Logs log * stream. The following information is logged: *

      *
        *
      • *

        * Client connection requests *

        *
      • *
      • *

        * Client connection results (successful and unsuccessful) *

        *
      • *
      • *

        * Reasons for unsuccessful client connection requests *

        *
      • *
      • *

        * Client connection termination time *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyClientVpnEndpointRequest withConnectionLogOptions(ConnectionLogOptions connectionLogOptions) { setConnectionLogOptions(connectionLogOptions); return this; } /** *

        * Information about the DNS servers to be used by Client VPN connections. A Client VPN endpoint can have up to two * DNS servers. *

        * * @param dnsServers * Information about the DNS servers to be used by Client VPN connections. A Client VPN endpoint can have up * to two DNS servers. */ public void setDnsServers(DnsServersOptionsModifyStructure dnsServers) { this.dnsServers = dnsServers; } /** *

        * Information about the DNS servers to be used by Client VPN connections. A Client VPN endpoint can have up to two * DNS servers. *

        * * @return Information about the DNS servers to be used by Client VPN connections. A Client VPN endpoint can have up * to two DNS servers. */ public DnsServersOptionsModifyStructure getDnsServers() { return this.dnsServers; } /** *

        * Information about the DNS servers to be used by Client VPN connections. A Client VPN endpoint can have up to two * DNS servers. *

        * * @param dnsServers * Information about the DNS servers to be used by Client VPN connections. A Client VPN endpoint can have up * to two DNS servers. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyClientVpnEndpointRequest withDnsServers(DnsServersOptionsModifyStructure dnsServers) { setDnsServers(dnsServers); return this; } /** *

        * A brief description of the Client VPN endpoint. *

        * * @param description * A brief description of the Client VPN endpoint. */ public void setDescription(String description) { this.description = description; } /** *

        * A brief description of the Client VPN endpoint. *

        * * @return A brief description of the Client VPN endpoint. */ public String getDescription() { return this.description; } /** *

        * A brief description of the Client VPN endpoint. *

        * * @param description * A brief description of the Client VPN endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyClientVpnEndpointRequest withDescription(String description) { setDescription(description); return this; } /** *

        * Indicates whether the VPN is split-tunnel. *

        *

        * For information about split-tunnel VPN endpoints, see Split-Tunnel AWS Client VPN * Endpoint in the AWS Client VPN Administrator Guide. *

        * * @param splitTunnel * Indicates whether the VPN is split-tunnel.

        *

        * For information about split-tunnel VPN endpoints, see Split-Tunnel AWS * Client VPN Endpoint in the AWS Client VPN Administrator Guide. */ public void setSplitTunnel(Boolean splitTunnel) { this.splitTunnel = splitTunnel; } /** *

        * Indicates whether the VPN is split-tunnel. *

        *

        * For information about split-tunnel VPN endpoints, see Split-Tunnel AWS Client VPN * Endpoint in the AWS Client VPN Administrator Guide. *

        * * @return Indicates whether the VPN is split-tunnel.

        *

        * For information about split-tunnel VPN endpoints, see Split-Tunnel AWS * Client VPN Endpoint in the AWS Client VPN Administrator Guide. */ public Boolean getSplitTunnel() { return this.splitTunnel; } /** *

        * Indicates whether the VPN is split-tunnel. *

        *

        * For information about split-tunnel VPN endpoints, see Split-Tunnel AWS Client VPN * Endpoint in the AWS Client VPN Administrator Guide. *

        * * @param splitTunnel * Indicates whether the VPN is split-tunnel.

        *

        * For information about split-tunnel VPN endpoints, see Split-Tunnel AWS * Client VPN Endpoint in the AWS Client VPN Administrator Guide. * @return Returns a reference to this object so that method calls can be chained together. */ public ModifyClientVpnEndpointRequest withSplitTunnel(Boolean splitTunnel) { setSplitTunnel(splitTunnel); return this; } /** *

        * Indicates whether the VPN is split-tunnel. *

        *

        * For information about split-tunnel VPN endpoints, see Split-Tunnel AWS Client VPN * Endpoint in the AWS Client VPN Administrator Guide. *

        * * @return Indicates whether the VPN is split-tunnel.

        *

        * For information about split-tunnel VPN endpoints, see Split-Tunnel AWS * Client VPN Endpoint in the AWS Client VPN Administrator Guide. */ public Boolean isSplitTunnel() { return this.splitTunnel; } /** * This method is intended for internal use only. Returns the marshaled request configured with additional * parameters to enable operation dry-run. */ @Override public Request getDryRunRequest() { Request request = new ModifyClientVpnEndpointRequestMarshaller().marshall(this); request.addParameter("DryRun", Boolean.toString(true)); return request; } /** * 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 (getServerCertificateArn() != null) sb.append("ServerCertificateArn: ").append(getServerCertificateArn()).append(","); if (getConnectionLogOptions() != null) sb.append("ConnectionLogOptions: ").append(getConnectionLogOptions()).append(","); if (getDnsServers() != null) sb.append("DnsServers: ").append(getDnsServers()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getSplitTunnel() != null) sb.append("SplitTunnel: ").append(getSplitTunnel()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ModifyClientVpnEndpointRequest == false) return false; ModifyClientVpnEndpointRequest other = (ModifyClientVpnEndpointRequest) obj; if (other.getClientVpnEndpointId() == null ^ this.getClientVpnEndpointId() == null) return false; if (other.getClientVpnEndpointId() != null && other.getClientVpnEndpointId().equals(this.getClientVpnEndpointId()) == 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.getConnectionLogOptions() == null ^ this.getConnectionLogOptions() == null) return false; if (other.getConnectionLogOptions() != null && other.getConnectionLogOptions().equals(this.getConnectionLogOptions()) == false) return false; if (other.getDnsServers() == null ^ this.getDnsServers() == null) return false; if (other.getDnsServers() != null && other.getDnsServers().equals(this.getDnsServers()) == 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.getSplitTunnel() == null ^ this.getSplitTunnel() == null) return false; if (other.getSplitTunnel() != null && other.getSplitTunnel().equals(this.getSplitTunnel()) == 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 + ((getServerCertificateArn() == null) ? 0 : getServerCertificateArn().hashCode()); hashCode = prime * hashCode + ((getConnectionLogOptions() == null) ? 0 : getConnectionLogOptions().hashCode()); hashCode = prime * hashCode + ((getDnsServers() == null) ? 0 : getDnsServers().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getSplitTunnel() == null) ? 0 : getSplitTunnel().hashCode()); return hashCode; } @Override public ModifyClientVpnEndpointRequest clone() { return (ModifyClientVpnEndpointRequest) super.clone(); } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy