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

com.amazonaws.services.directconnect.model.DirectConnectGatewayAssociation Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show 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.directconnect.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Information about an association between a Direct Connect gateway and a virtual private gateway or transit gateway. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DirectConnectGatewayAssociation implements Serializable, Cloneable, StructuredPojo { /** *

* The ID of the Direct Connect gateway. *

*/ private String directConnectGatewayId; /** *

* The ID of the Amazon Web Services account that owns the associated gateway. *

*/ private String directConnectGatewayOwnerAccount; /** *

* The state of the association. The following are the possible values: *

*
    *
  • *

    * associating: The initial state after calling CreateDirectConnectGatewayAssociation. *

    *
  • *
  • *

    * associated: The Direct Connect gateway and virtual private gateway or transit gateway are * successfully associated and ready to pass traffic. *

    *
  • *
  • *

    * disassociating: The initial state after calling DeleteDirectConnectGatewayAssociation. *

    *
  • *
  • *

    * disassociated: The virtual private gateway or transit gateway is disassociated from the Direct * Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or transit gateway * is stopped. *

    *
  • *
  • *

    * updating: The CIDR blocks for the virtual private gateway or transit gateway are currently being * updated. This could be new CIDR blocks added or current CIDR blocks removed. *

    *
  • *
*/ private String associationState; /** *

* The error message if the state of an object failed to advance. *

*/ private String stateChangeError; /** *

* Information about the associated gateway. *

*/ private AssociatedGateway associatedGateway; /** *

* The ID of the Direct Connect gateway association. *

*/ private String associationId; /** *

* The Amazon VPC prefixes to advertise to the Direct Connect gateway. *

*/ private com.amazonaws.internal.SdkInternalList allowedPrefixesToDirectConnectGateway; /** *

* The ID of the virtual private gateway. Applies only to private virtual interfaces. *

*/ private String virtualGatewayId; /** *

* The Amazon Web Services Region where the virtual private gateway is located. *

*/ private String virtualGatewayRegion; /** *

* The ID of the Amazon Web Services account that owns the virtual private gateway. *

*/ private String virtualGatewayOwnerAccount; /** *

* The ID of the Direct Connect gateway. *

* * @param directConnectGatewayId * The ID of the Direct Connect gateway. */ public void setDirectConnectGatewayId(String directConnectGatewayId) { this.directConnectGatewayId = directConnectGatewayId; } /** *

* The ID of the Direct Connect gateway. *

* * @return The ID of the Direct Connect gateway. */ public String getDirectConnectGatewayId() { return this.directConnectGatewayId; } /** *

* The ID of the Direct Connect gateway. *

* * @param directConnectGatewayId * The ID of the Direct Connect gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectConnectGatewayAssociation withDirectConnectGatewayId(String directConnectGatewayId) { setDirectConnectGatewayId(directConnectGatewayId); return this; } /** *

* The ID of the Amazon Web Services account that owns the associated gateway. *

* * @param directConnectGatewayOwnerAccount * The ID of the Amazon Web Services account that owns the associated gateway. */ public void setDirectConnectGatewayOwnerAccount(String directConnectGatewayOwnerAccount) { this.directConnectGatewayOwnerAccount = directConnectGatewayOwnerAccount; } /** *

* The ID of the Amazon Web Services account that owns the associated gateway. *

* * @return The ID of the Amazon Web Services account that owns the associated gateway. */ public String getDirectConnectGatewayOwnerAccount() { return this.directConnectGatewayOwnerAccount; } /** *

* The ID of the Amazon Web Services account that owns the associated gateway. *

* * @param directConnectGatewayOwnerAccount * The ID of the Amazon Web Services account that owns the associated gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectConnectGatewayAssociation withDirectConnectGatewayOwnerAccount(String directConnectGatewayOwnerAccount) { setDirectConnectGatewayOwnerAccount(directConnectGatewayOwnerAccount); return this; } /** *

* The state of the association. The following are the possible values: *

*
    *
  • *

    * associating: The initial state after calling CreateDirectConnectGatewayAssociation. *

    *
  • *
  • *

    * associated: The Direct Connect gateway and virtual private gateway or transit gateway are * successfully associated and ready to pass traffic. *

    *
  • *
  • *

    * disassociating: The initial state after calling DeleteDirectConnectGatewayAssociation. *

    *
  • *
  • *

    * disassociated: The virtual private gateway or transit gateway is disassociated from the Direct * Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or transit gateway * is stopped. *

    *
  • *
  • *

    * updating: The CIDR blocks for the virtual private gateway or transit gateway are currently being * updated. This could be new CIDR blocks added or current CIDR blocks removed. *

    *
  • *
* * @param associationState * The state of the association. The following are the possible values:

*
    *
  • *

    * associating: The initial state after calling CreateDirectConnectGatewayAssociation. *

    *
  • *
  • *

    * associated: The Direct Connect gateway and virtual private gateway or transit gateway are * successfully associated and ready to pass traffic. *

    *
  • *
  • *

    * disassociating: The initial state after calling DeleteDirectConnectGatewayAssociation. *

    *
  • *
  • *

    * disassociated: The virtual private gateway or transit gateway is disassociated from the * Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or * transit gateway is stopped. *

    *
  • *
  • *

    * updating: The CIDR blocks for the virtual private gateway or transit gateway are currently * being updated. This could be new CIDR blocks added or current CIDR blocks removed. *

    *
  • * @see DirectConnectGatewayAssociationState */ public void setAssociationState(String associationState) { this.associationState = associationState; } /** *

    * The state of the association. The following are the possible values: *

    *
      *
    • *

      * associating: The initial state after calling CreateDirectConnectGatewayAssociation. *

      *
    • *
    • *

      * associated: The Direct Connect gateway and virtual private gateway or transit gateway are * successfully associated and ready to pass traffic. *

      *
    • *
    • *

      * disassociating: The initial state after calling DeleteDirectConnectGatewayAssociation. *

      *
    • *
    • *

      * disassociated: The virtual private gateway or transit gateway is disassociated from the Direct * Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or transit gateway * is stopped. *

      *
    • *
    • *

      * updating: The CIDR blocks for the virtual private gateway or transit gateway are currently being * updated. This could be new CIDR blocks added or current CIDR blocks removed. *

      *
    • *
    * * @return The state of the association. The following are the possible values:

    *
      *
    • *

      * associating: The initial state after calling CreateDirectConnectGatewayAssociation. *

      *
    • *
    • *

      * associated: The Direct Connect gateway and virtual private gateway or transit gateway are * successfully associated and ready to pass traffic. *

      *
    • *
    • *

      * disassociating: The initial state after calling * DeleteDirectConnectGatewayAssociation. *

      *
    • *
    • *

      * disassociated: The virtual private gateway or transit gateway is disassociated from the * Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or * transit gateway is stopped. *

      *
    • *
    • *

      * updating: The CIDR blocks for the virtual private gateway or transit gateway are currently * being updated. This could be new CIDR blocks added or current CIDR blocks removed. *

      *
    • * @see DirectConnectGatewayAssociationState */ public String getAssociationState() { return this.associationState; } /** *

      * The state of the association. The following are the possible values: *

      *
        *
      • *

        * associating: The initial state after calling CreateDirectConnectGatewayAssociation. *

        *
      • *
      • *

        * associated: The Direct Connect gateway and virtual private gateway or transit gateway are * successfully associated and ready to pass traffic. *

        *
      • *
      • *

        * disassociating: The initial state after calling DeleteDirectConnectGatewayAssociation. *

        *
      • *
      • *

        * disassociated: The virtual private gateway or transit gateway is disassociated from the Direct * Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or transit gateway * is stopped. *

        *
      • *
      • *

        * updating: The CIDR blocks for the virtual private gateway or transit gateway are currently being * updated. This could be new CIDR blocks added or current CIDR blocks removed. *

        *
      • *
      * * @param associationState * The state of the association. The following are the possible values:

      *
        *
      • *

        * associating: The initial state after calling CreateDirectConnectGatewayAssociation. *

        *
      • *
      • *

        * associated: The Direct Connect gateway and virtual private gateway or transit gateway are * successfully associated and ready to pass traffic. *

        *
      • *
      • *

        * disassociating: The initial state after calling DeleteDirectConnectGatewayAssociation. *

        *
      • *
      • *

        * disassociated: The virtual private gateway or transit gateway is disassociated from the * Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or * transit gateway is stopped. *

        *
      • *
      • *

        * updating: The CIDR blocks for the virtual private gateway or transit gateway are currently * being updated. This could be new CIDR blocks added or current CIDR blocks removed. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see DirectConnectGatewayAssociationState */ public DirectConnectGatewayAssociation withAssociationState(String associationState) { setAssociationState(associationState); return this; } /** *

        * The state of the association. The following are the possible values: *

        *
          *
        • *

          * associating: The initial state after calling CreateDirectConnectGatewayAssociation. *

          *
        • *
        • *

          * associated: The Direct Connect gateway and virtual private gateway or transit gateway are * successfully associated and ready to pass traffic. *

          *
        • *
        • *

          * disassociating: The initial state after calling DeleteDirectConnectGatewayAssociation. *

          *
        • *
        • *

          * disassociated: The virtual private gateway or transit gateway is disassociated from the Direct * Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or transit gateway * is stopped. *

          *
        • *
        • *

          * updating: The CIDR blocks for the virtual private gateway or transit gateway are currently being * updated. This could be new CIDR blocks added or current CIDR blocks removed. *

          *
        • *
        * * @param associationState * The state of the association. The following are the possible values:

        *
          *
        • *

          * associating: The initial state after calling CreateDirectConnectGatewayAssociation. *

          *
        • *
        • *

          * associated: The Direct Connect gateway and virtual private gateway or transit gateway are * successfully associated and ready to pass traffic. *

          *
        • *
        • *

          * disassociating: The initial state after calling DeleteDirectConnectGatewayAssociation. *

          *
        • *
        • *

          * disassociated: The virtual private gateway or transit gateway is disassociated from the * Direct Connect gateway. Traffic flow between the Direct Connect gateway and virtual private gateway or * transit gateway is stopped. *

          *
        • *
        • *

          * updating: The CIDR blocks for the virtual private gateway or transit gateway are currently * being updated. This could be new CIDR blocks added or current CIDR blocks removed. *

          *
        • * @return Returns a reference to this object so that method calls can be chained together. * @see DirectConnectGatewayAssociationState */ public DirectConnectGatewayAssociation withAssociationState(DirectConnectGatewayAssociationState associationState) { this.associationState = associationState.toString(); return this; } /** *

          * The error message if the state of an object failed to advance. *

          * * @param stateChangeError * The error message if the state of an object failed to advance. */ public void setStateChangeError(String stateChangeError) { this.stateChangeError = stateChangeError; } /** *

          * The error message if the state of an object failed to advance. *

          * * @return The error message if the state of an object failed to advance. */ public String getStateChangeError() { return this.stateChangeError; } /** *

          * The error message if the state of an object failed to advance. *

          * * @param stateChangeError * The error message if the state of an object failed to advance. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectConnectGatewayAssociation withStateChangeError(String stateChangeError) { setStateChangeError(stateChangeError); return this; } /** *

          * Information about the associated gateway. *

          * * @param associatedGateway * Information about the associated gateway. */ public void setAssociatedGateway(AssociatedGateway associatedGateway) { this.associatedGateway = associatedGateway; } /** *

          * Information about the associated gateway. *

          * * @return Information about the associated gateway. */ public AssociatedGateway getAssociatedGateway() { return this.associatedGateway; } /** *

          * Information about the associated gateway. *

          * * @param associatedGateway * Information about the associated gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectConnectGatewayAssociation withAssociatedGateway(AssociatedGateway associatedGateway) { setAssociatedGateway(associatedGateway); return this; } /** *

          * The ID of the Direct Connect gateway association. *

          * * @param associationId * The ID of the Direct Connect gateway association. */ public void setAssociationId(String associationId) { this.associationId = associationId; } /** *

          * The ID of the Direct Connect gateway association. *

          * * @return The ID of the Direct Connect gateway association. */ public String getAssociationId() { return this.associationId; } /** *

          * The ID of the Direct Connect gateway association. *

          * * @param associationId * The ID of the Direct Connect gateway association. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectConnectGatewayAssociation withAssociationId(String associationId) { setAssociationId(associationId); return this; } /** *

          * The Amazon VPC prefixes to advertise to the Direct Connect gateway. *

          * * @return The Amazon VPC prefixes to advertise to the Direct Connect gateway. */ public java.util.List getAllowedPrefixesToDirectConnectGateway() { if (allowedPrefixesToDirectConnectGateway == null) { allowedPrefixesToDirectConnectGateway = new com.amazonaws.internal.SdkInternalList(); } return allowedPrefixesToDirectConnectGateway; } /** *

          * The Amazon VPC prefixes to advertise to the Direct Connect gateway. *

          * * @param allowedPrefixesToDirectConnectGateway * The Amazon VPC prefixes to advertise to the Direct Connect gateway. */ public void setAllowedPrefixesToDirectConnectGateway(java.util.Collection allowedPrefixesToDirectConnectGateway) { if (allowedPrefixesToDirectConnectGateway == null) { this.allowedPrefixesToDirectConnectGateway = null; return; } this.allowedPrefixesToDirectConnectGateway = new com.amazonaws.internal.SdkInternalList(allowedPrefixesToDirectConnectGateway); } /** *

          * The Amazon VPC prefixes to advertise to the Direct Connect gateway. *

          *

          * NOTE: This method appends the values to the existing list (if any). Use * {@link #setAllowedPrefixesToDirectConnectGateway(java.util.Collection)} or * {@link #withAllowedPrefixesToDirectConnectGateway(java.util.Collection)} if you want to override the existing * values. *

          * * @param allowedPrefixesToDirectConnectGateway * The Amazon VPC prefixes to advertise to the Direct Connect gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectConnectGatewayAssociation withAllowedPrefixesToDirectConnectGateway(RouteFilterPrefix... allowedPrefixesToDirectConnectGateway) { if (this.allowedPrefixesToDirectConnectGateway == null) { setAllowedPrefixesToDirectConnectGateway(new com.amazonaws.internal.SdkInternalList(allowedPrefixesToDirectConnectGateway.length)); } for (RouteFilterPrefix ele : allowedPrefixesToDirectConnectGateway) { this.allowedPrefixesToDirectConnectGateway.add(ele); } return this; } /** *

          * The Amazon VPC prefixes to advertise to the Direct Connect gateway. *

          * * @param allowedPrefixesToDirectConnectGateway * The Amazon VPC prefixes to advertise to the Direct Connect gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectConnectGatewayAssociation withAllowedPrefixesToDirectConnectGateway( java.util.Collection allowedPrefixesToDirectConnectGateway) { setAllowedPrefixesToDirectConnectGateway(allowedPrefixesToDirectConnectGateway); return this; } /** *

          * The ID of the virtual private gateway. Applies only to private virtual interfaces. *

          * * @param virtualGatewayId * The ID of the virtual private gateway. Applies only to private virtual interfaces. */ public void setVirtualGatewayId(String virtualGatewayId) { this.virtualGatewayId = virtualGatewayId; } /** *

          * The ID of the virtual private gateway. Applies only to private virtual interfaces. *

          * * @return The ID of the virtual private gateway. Applies only to private virtual interfaces. */ public String getVirtualGatewayId() { return this.virtualGatewayId; } /** *

          * The ID of the virtual private gateway. Applies only to private virtual interfaces. *

          * * @param virtualGatewayId * The ID of the virtual private gateway. Applies only to private virtual interfaces. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectConnectGatewayAssociation withVirtualGatewayId(String virtualGatewayId) { setVirtualGatewayId(virtualGatewayId); return this; } /** *

          * The Amazon Web Services Region where the virtual private gateway is located. *

          * * @param virtualGatewayRegion * The Amazon Web Services Region where the virtual private gateway is located. */ public void setVirtualGatewayRegion(String virtualGatewayRegion) { this.virtualGatewayRegion = virtualGatewayRegion; } /** *

          * The Amazon Web Services Region where the virtual private gateway is located. *

          * * @return The Amazon Web Services Region where the virtual private gateway is located. */ public String getVirtualGatewayRegion() { return this.virtualGatewayRegion; } /** *

          * The Amazon Web Services Region where the virtual private gateway is located. *

          * * @param virtualGatewayRegion * The Amazon Web Services Region where the virtual private gateway is located. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectConnectGatewayAssociation withVirtualGatewayRegion(String virtualGatewayRegion) { setVirtualGatewayRegion(virtualGatewayRegion); return this; } /** *

          * The ID of the Amazon Web Services account that owns the virtual private gateway. *

          * * @param virtualGatewayOwnerAccount * The ID of the Amazon Web Services account that owns the virtual private gateway. */ public void setVirtualGatewayOwnerAccount(String virtualGatewayOwnerAccount) { this.virtualGatewayOwnerAccount = virtualGatewayOwnerAccount; } /** *

          * The ID of the Amazon Web Services account that owns the virtual private gateway. *

          * * @return The ID of the Amazon Web Services account that owns the virtual private gateway. */ public String getVirtualGatewayOwnerAccount() { return this.virtualGatewayOwnerAccount; } /** *

          * The ID of the Amazon Web Services account that owns the virtual private gateway. *

          * * @param virtualGatewayOwnerAccount * The ID of the Amazon Web Services account that owns the virtual private gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public DirectConnectGatewayAssociation withVirtualGatewayOwnerAccount(String virtualGatewayOwnerAccount) { setVirtualGatewayOwnerAccount(virtualGatewayOwnerAccount); 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 (getDirectConnectGatewayId() != null) sb.append("DirectConnectGatewayId: ").append(getDirectConnectGatewayId()).append(","); if (getDirectConnectGatewayOwnerAccount() != null) sb.append("DirectConnectGatewayOwnerAccount: ").append(getDirectConnectGatewayOwnerAccount()).append(","); if (getAssociationState() != null) sb.append("AssociationState: ").append(getAssociationState()).append(","); if (getStateChangeError() != null) sb.append("StateChangeError: ").append(getStateChangeError()).append(","); if (getAssociatedGateway() != null) sb.append("AssociatedGateway: ").append(getAssociatedGateway()).append(","); if (getAssociationId() != null) sb.append("AssociationId: ").append(getAssociationId()).append(","); if (getAllowedPrefixesToDirectConnectGateway() != null) sb.append("AllowedPrefixesToDirectConnectGateway: ").append(getAllowedPrefixesToDirectConnectGateway()).append(","); if (getVirtualGatewayId() != null) sb.append("VirtualGatewayId: ").append(getVirtualGatewayId()).append(","); if (getVirtualGatewayRegion() != null) sb.append("VirtualGatewayRegion: ").append(getVirtualGatewayRegion()).append(","); if (getVirtualGatewayOwnerAccount() != null) sb.append("VirtualGatewayOwnerAccount: ").append(getVirtualGatewayOwnerAccount()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DirectConnectGatewayAssociation == false) return false; DirectConnectGatewayAssociation other = (DirectConnectGatewayAssociation) obj; if (other.getDirectConnectGatewayId() == null ^ this.getDirectConnectGatewayId() == null) return false; if (other.getDirectConnectGatewayId() != null && other.getDirectConnectGatewayId().equals(this.getDirectConnectGatewayId()) == false) return false; if (other.getDirectConnectGatewayOwnerAccount() == null ^ this.getDirectConnectGatewayOwnerAccount() == null) return false; if (other.getDirectConnectGatewayOwnerAccount() != null && other.getDirectConnectGatewayOwnerAccount().equals(this.getDirectConnectGatewayOwnerAccount()) == false) return false; if (other.getAssociationState() == null ^ this.getAssociationState() == null) return false; if (other.getAssociationState() != null && other.getAssociationState().equals(this.getAssociationState()) == false) return false; if (other.getStateChangeError() == null ^ this.getStateChangeError() == null) return false; if (other.getStateChangeError() != null && other.getStateChangeError().equals(this.getStateChangeError()) == false) return false; if (other.getAssociatedGateway() == null ^ this.getAssociatedGateway() == null) return false; if (other.getAssociatedGateway() != null && other.getAssociatedGateway().equals(this.getAssociatedGateway()) == false) return false; if (other.getAssociationId() == null ^ this.getAssociationId() == null) return false; if (other.getAssociationId() != null && other.getAssociationId().equals(this.getAssociationId()) == false) return false; if (other.getAllowedPrefixesToDirectConnectGateway() == null ^ this.getAllowedPrefixesToDirectConnectGateway() == null) return false; if (other.getAllowedPrefixesToDirectConnectGateway() != null && other.getAllowedPrefixesToDirectConnectGateway().equals(this.getAllowedPrefixesToDirectConnectGateway()) == false) return false; if (other.getVirtualGatewayId() == null ^ this.getVirtualGatewayId() == null) return false; if (other.getVirtualGatewayId() != null && other.getVirtualGatewayId().equals(this.getVirtualGatewayId()) == false) return false; if (other.getVirtualGatewayRegion() == null ^ this.getVirtualGatewayRegion() == null) return false; if (other.getVirtualGatewayRegion() != null && other.getVirtualGatewayRegion().equals(this.getVirtualGatewayRegion()) == false) return false; if (other.getVirtualGatewayOwnerAccount() == null ^ this.getVirtualGatewayOwnerAccount() == null) return false; if (other.getVirtualGatewayOwnerAccount() != null && other.getVirtualGatewayOwnerAccount().equals(this.getVirtualGatewayOwnerAccount()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDirectConnectGatewayId() == null) ? 0 : getDirectConnectGatewayId().hashCode()); hashCode = prime * hashCode + ((getDirectConnectGatewayOwnerAccount() == null) ? 0 : getDirectConnectGatewayOwnerAccount().hashCode()); hashCode = prime * hashCode + ((getAssociationState() == null) ? 0 : getAssociationState().hashCode()); hashCode = prime * hashCode + ((getStateChangeError() == null) ? 0 : getStateChangeError().hashCode()); hashCode = prime * hashCode + ((getAssociatedGateway() == null) ? 0 : getAssociatedGateway().hashCode()); hashCode = prime * hashCode + ((getAssociationId() == null) ? 0 : getAssociationId().hashCode()); hashCode = prime * hashCode + ((getAllowedPrefixesToDirectConnectGateway() == null) ? 0 : getAllowedPrefixesToDirectConnectGateway().hashCode()); hashCode = prime * hashCode + ((getVirtualGatewayId() == null) ? 0 : getVirtualGatewayId().hashCode()); hashCode = prime * hashCode + ((getVirtualGatewayRegion() == null) ? 0 : getVirtualGatewayRegion().hashCode()); hashCode = prime * hashCode + ((getVirtualGatewayOwnerAccount() == null) ? 0 : getVirtualGatewayOwnerAccount().hashCode()); return hashCode; } @Override public DirectConnectGatewayAssociation clone() { try { return (DirectConnectGatewayAssociation) 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.directconnect.model.transform.DirectConnectGatewayAssociationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy