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

com.amazonaws.services.ec2.model.GetVpnTunnelReplacementStatusResult 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

The newest version!
/*
 * 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.ec2.model;

import java.io.Serializable;
import javax.annotation.Generated;

import com.amazonaws.AmazonWebServiceResult;

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

    /**
     * 

* The ID of the Site-to-Site VPN connection. *

*/ private String vpnConnectionId; /** *

* The ID of the transit gateway associated with the VPN connection. *

*/ private String transitGatewayId; /** *

* The ID of the customer gateway. *

*/ private String customerGatewayId; /** *

* The ID of the virtual private gateway. *

*/ private String vpnGatewayId; /** *

* The external IP address of the VPN tunnel. *

*/ private String vpnTunnelOutsideIpAddress; /** *

* Get details of pending tunnel endpoint maintenance. *

*/ private MaintenanceDetails maintenanceDetails; /** *

* The ID of the Site-to-Site VPN connection. *

* * @param vpnConnectionId * The ID of the Site-to-Site VPN connection. */ public void setVpnConnectionId(String vpnConnectionId) { this.vpnConnectionId = vpnConnectionId; } /** *

* The ID of the Site-to-Site VPN connection. *

* * @return The ID of the Site-to-Site VPN connection. */ public String getVpnConnectionId() { return this.vpnConnectionId; } /** *

* The ID of the Site-to-Site VPN connection. *

* * @param vpnConnectionId * The ID of the Site-to-Site VPN connection. * @return Returns a reference to this object so that method calls can be chained together. */ public GetVpnTunnelReplacementStatusResult withVpnConnectionId(String vpnConnectionId) { setVpnConnectionId(vpnConnectionId); return this; } /** *

* The ID of the transit gateway associated with the VPN connection. *

* * @param transitGatewayId * The ID of the transit gateway associated with the VPN connection. */ public void setTransitGatewayId(String transitGatewayId) { this.transitGatewayId = transitGatewayId; } /** *

* The ID of the transit gateway associated with the VPN connection. *

* * @return The ID of the transit gateway associated with the VPN connection. */ public String getTransitGatewayId() { return this.transitGatewayId; } /** *

* The ID of the transit gateway associated with the VPN connection. *

* * @param transitGatewayId * The ID of the transit gateway associated with the VPN connection. * @return Returns a reference to this object so that method calls can be chained together. */ public GetVpnTunnelReplacementStatusResult withTransitGatewayId(String transitGatewayId) { setTransitGatewayId(transitGatewayId); return this; } /** *

* The ID of the customer gateway. *

* * @param customerGatewayId * The ID of the customer gateway. */ public void setCustomerGatewayId(String customerGatewayId) { this.customerGatewayId = customerGatewayId; } /** *

* The ID of the customer gateway. *

* * @return The ID of the customer gateway. */ public String getCustomerGatewayId() { return this.customerGatewayId; } /** *

* The ID of the customer gateway. *

* * @param customerGatewayId * The ID of the customer gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public GetVpnTunnelReplacementStatusResult withCustomerGatewayId(String customerGatewayId) { setCustomerGatewayId(customerGatewayId); return this; } /** *

* The ID of the virtual private gateway. *

* * @param vpnGatewayId * The ID of the virtual private gateway. */ public void setVpnGatewayId(String vpnGatewayId) { this.vpnGatewayId = vpnGatewayId; } /** *

* The ID of the virtual private gateway. *

* * @return The ID of the virtual private gateway. */ public String getVpnGatewayId() { return this.vpnGatewayId; } /** *

* The ID of the virtual private gateway. *

* * @param vpnGatewayId * The ID of the virtual private gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public GetVpnTunnelReplacementStatusResult withVpnGatewayId(String vpnGatewayId) { setVpnGatewayId(vpnGatewayId); return this; } /** *

* The external IP address of the VPN tunnel. *

* * @param vpnTunnelOutsideIpAddress * The external IP address of the VPN tunnel. */ public void setVpnTunnelOutsideIpAddress(String vpnTunnelOutsideIpAddress) { this.vpnTunnelOutsideIpAddress = vpnTunnelOutsideIpAddress; } /** *

* The external IP address of the VPN tunnel. *

* * @return The external IP address of the VPN tunnel. */ public String getVpnTunnelOutsideIpAddress() { return this.vpnTunnelOutsideIpAddress; } /** *

* The external IP address of the VPN tunnel. *

* * @param vpnTunnelOutsideIpAddress * The external IP address of the VPN tunnel. * @return Returns a reference to this object so that method calls can be chained together. */ public GetVpnTunnelReplacementStatusResult withVpnTunnelOutsideIpAddress(String vpnTunnelOutsideIpAddress) { setVpnTunnelOutsideIpAddress(vpnTunnelOutsideIpAddress); return this; } /** *

* Get details of pending tunnel endpoint maintenance. *

* * @param maintenanceDetails * Get details of pending tunnel endpoint maintenance. */ public void setMaintenanceDetails(MaintenanceDetails maintenanceDetails) { this.maintenanceDetails = maintenanceDetails; } /** *

* Get details of pending tunnel endpoint maintenance. *

* * @return Get details of pending tunnel endpoint maintenance. */ public MaintenanceDetails getMaintenanceDetails() { return this.maintenanceDetails; } /** *

* Get details of pending tunnel endpoint maintenance. *

* * @param maintenanceDetails * Get details of pending tunnel endpoint maintenance. * @return Returns a reference to this object so that method calls can be chained together. */ public GetVpnTunnelReplacementStatusResult withMaintenanceDetails(MaintenanceDetails maintenanceDetails) { setMaintenanceDetails(maintenanceDetails); 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 (getVpnConnectionId() != null) sb.append("VpnConnectionId: ").append(getVpnConnectionId()).append(","); if (getTransitGatewayId() != null) sb.append("TransitGatewayId: ").append(getTransitGatewayId()).append(","); if (getCustomerGatewayId() != null) sb.append("CustomerGatewayId: ").append(getCustomerGatewayId()).append(","); if (getVpnGatewayId() != null) sb.append("VpnGatewayId: ").append(getVpnGatewayId()).append(","); if (getVpnTunnelOutsideIpAddress() != null) sb.append("VpnTunnelOutsideIpAddress: ").append(getVpnTunnelOutsideIpAddress()).append(","); if (getMaintenanceDetails() != null) sb.append("MaintenanceDetails: ").append(getMaintenanceDetails()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetVpnTunnelReplacementStatusResult == false) return false; GetVpnTunnelReplacementStatusResult other = (GetVpnTunnelReplacementStatusResult) obj; if (other.getVpnConnectionId() == null ^ this.getVpnConnectionId() == null) return false; if (other.getVpnConnectionId() != null && other.getVpnConnectionId().equals(this.getVpnConnectionId()) == false) return false; if (other.getTransitGatewayId() == null ^ this.getTransitGatewayId() == null) return false; if (other.getTransitGatewayId() != null && other.getTransitGatewayId().equals(this.getTransitGatewayId()) == false) return false; if (other.getCustomerGatewayId() == null ^ this.getCustomerGatewayId() == null) return false; if (other.getCustomerGatewayId() != null && other.getCustomerGatewayId().equals(this.getCustomerGatewayId()) == false) return false; if (other.getVpnGatewayId() == null ^ this.getVpnGatewayId() == null) return false; if (other.getVpnGatewayId() != null && other.getVpnGatewayId().equals(this.getVpnGatewayId()) == false) return false; if (other.getVpnTunnelOutsideIpAddress() == null ^ this.getVpnTunnelOutsideIpAddress() == null) return false; if (other.getVpnTunnelOutsideIpAddress() != null && other.getVpnTunnelOutsideIpAddress().equals(this.getVpnTunnelOutsideIpAddress()) == false) return false; if (other.getMaintenanceDetails() == null ^ this.getMaintenanceDetails() == null) return false; if (other.getMaintenanceDetails() != null && other.getMaintenanceDetails().equals(this.getMaintenanceDetails()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getVpnConnectionId() == null) ? 0 : getVpnConnectionId().hashCode()); hashCode = prime * hashCode + ((getTransitGatewayId() == null) ? 0 : getTransitGatewayId().hashCode()); hashCode = prime * hashCode + ((getCustomerGatewayId() == null) ? 0 : getCustomerGatewayId().hashCode()); hashCode = prime * hashCode + ((getVpnGatewayId() == null) ? 0 : getVpnGatewayId().hashCode()); hashCode = prime * hashCode + ((getVpnTunnelOutsideIpAddress() == null) ? 0 : getVpnTunnelOutsideIpAddress().hashCode()); hashCode = prime * hashCode + ((getMaintenanceDetails() == null) ? 0 : getMaintenanceDetails().hashCode()); return hashCode; } @Override public GetVpnTunnelReplacementStatusResult clone() { try { return (GetVpnTunnelReplacementStatusResult) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy