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

com.amazonaws.services.directconnect.model.Lag 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 2015-2020 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 a link aggregation group (LAG). *

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

* The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps and * 10Gbps. *

*/ private String connectionsBandwidth; /** *

* The number of physical connections bundled by the LAG, up to a maximum of 10. *

*/ private Integer numberOfConnections; /** *

* The ID of the LAG. *

*/ private String lagId; /** *

* The ID of the AWS account that owns the LAG. *

*/ private String ownerAccount; /** *

* The name of the LAG. *

*/ private String lagName; /** *

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

*
    *
  • *

    * requested: The initial state of a LAG. The LAG stays in the requested state until the Letter of * Authorization (LOA) is available. *

    *
  • *
  • *

    * pending: The LAG has been approved and is being initialized. *

    *
  • *
  • *

    * available: The network link is established and the LAG is ready for use. *

    *
  • *
  • *

    * down: The network link is down. *

    *
  • *
  • *

    * deleting: The LAG is being deleted. *

    *
  • *
  • *

    * deleted: The LAG is deleted. *

    *
  • *
  • *

    * unknown: The state of the LAG is not available. *

    *
  • *
*/ private String lagState; /** *

* The location of the LAG. *

*/ private String location; /** *

* The AWS Region where the connection is located. *

*/ private String region; /** *

* The minimum number of physical connections that must be operational for the LAG itself to be operational. *

*/ private Integer minimumLinks; /** *

* The AWS Direct Connect endpoint that hosts the LAG. *

*/ private String awsDevice; /** *

* The AWS Direct Connect endpoint that hosts the LAG. *

*/ private String awsDeviceV2; /** *

* The connections bundled by the LAG. *

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

* Indicates whether the LAG can host other connections. *

*/ private Boolean allowsHostedConnections; /** *

* Indicates whether jumbo frames (9001 MTU) are supported. *

*/ private Boolean jumboFrameCapable; /** *

* Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6). *

*/ private String hasLogicalRedundancy; /** *

* The tags associated with the LAG. *

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

* The name of the service provider associated with the LAG. *

*/ private String providerName; /** *

* The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps and * 10Gbps. *

* * @param connectionsBandwidth * The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps and * 10Gbps. */ public void setConnectionsBandwidth(String connectionsBandwidth) { this.connectionsBandwidth = connectionsBandwidth; } /** *

* The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps and * 10Gbps. *

* * @return The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps * and 10Gbps. */ public String getConnectionsBandwidth() { return this.connectionsBandwidth; } /** *

* The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps and * 10Gbps. *

* * @param connectionsBandwidth * The individual bandwidth of the physical connections bundled by the LAG. The possible values are 1Gbps and * 10Gbps. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withConnectionsBandwidth(String connectionsBandwidth) { setConnectionsBandwidth(connectionsBandwidth); return this; } /** *

* The number of physical connections bundled by the LAG, up to a maximum of 10. *

* * @param numberOfConnections * The number of physical connections bundled by the LAG, up to a maximum of 10. */ public void setNumberOfConnections(Integer numberOfConnections) { this.numberOfConnections = numberOfConnections; } /** *

* The number of physical connections bundled by the LAG, up to a maximum of 10. *

* * @return The number of physical connections bundled by the LAG, up to a maximum of 10. */ public Integer getNumberOfConnections() { return this.numberOfConnections; } /** *

* The number of physical connections bundled by the LAG, up to a maximum of 10. *

* * @param numberOfConnections * The number of physical connections bundled by the LAG, up to a maximum of 10. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withNumberOfConnections(Integer numberOfConnections) { setNumberOfConnections(numberOfConnections); return this; } /** *

* The ID of the LAG. *

* * @param lagId * The ID of the LAG. */ public void setLagId(String lagId) { this.lagId = lagId; } /** *

* The ID of the LAG. *

* * @return The ID of the LAG. */ public String getLagId() { return this.lagId; } /** *

* The ID of the LAG. *

* * @param lagId * The ID of the LAG. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withLagId(String lagId) { setLagId(lagId); return this; } /** *

* The ID of the AWS account that owns the LAG. *

* * @param ownerAccount * The ID of the AWS account that owns the LAG. */ public void setOwnerAccount(String ownerAccount) { this.ownerAccount = ownerAccount; } /** *

* The ID of the AWS account that owns the LAG. *

* * @return The ID of the AWS account that owns the LAG. */ public String getOwnerAccount() { return this.ownerAccount; } /** *

* The ID of the AWS account that owns the LAG. *

* * @param ownerAccount * The ID of the AWS account that owns the LAG. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withOwnerAccount(String ownerAccount) { setOwnerAccount(ownerAccount); return this; } /** *

* The name of the LAG. *

* * @param lagName * The name of the LAG. */ public void setLagName(String lagName) { this.lagName = lagName; } /** *

* The name of the LAG. *

* * @return The name of the LAG. */ public String getLagName() { return this.lagName; } /** *

* The name of the LAG. *

* * @param lagName * The name of the LAG. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withLagName(String lagName) { setLagName(lagName); return this; } /** *

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

*
    *
  • *

    * requested: The initial state of a LAG. The LAG stays in the requested state until the Letter of * Authorization (LOA) is available. *

    *
  • *
  • *

    * pending: The LAG has been approved and is being initialized. *

    *
  • *
  • *

    * available: The network link is established and the LAG is ready for use. *

    *
  • *
  • *

    * down: The network link is down. *

    *
  • *
  • *

    * deleting: The LAG is being deleted. *

    *
  • *
  • *

    * deleted: The LAG is deleted. *

    *
  • *
  • *

    * unknown: The state of the LAG is not available. *

    *
  • *
* * @param lagState * The state of the LAG. The following are the possible values:

*
    *
  • *

    * requested: The initial state of a LAG. The LAG stays in the requested state until the Letter * of Authorization (LOA) is available. *

    *
  • *
  • *

    * pending: The LAG has been approved and is being initialized. *

    *
  • *
  • *

    * available: The network link is established and the LAG is ready for use. *

    *
  • *
  • *

    * down: The network link is down. *

    *
  • *
  • *

    * deleting: The LAG is being deleted. *

    *
  • *
  • *

    * deleted: The LAG is deleted. *

    *
  • *
  • *

    * unknown: The state of the LAG is not available. *

    *
  • * @see LagState */ public void setLagState(String lagState) { this.lagState = lagState; } /** *

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

    *
      *
    • *

      * requested: The initial state of a LAG. The LAG stays in the requested state until the Letter of * Authorization (LOA) is available. *

      *
    • *
    • *

      * pending: The LAG has been approved and is being initialized. *

      *
    • *
    • *

      * available: The network link is established and the LAG is ready for use. *

      *
    • *
    • *

      * down: The network link is down. *

      *
    • *
    • *

      * deleting: The LAG is being deleted. *

      *
    • *
    • *

      * deleted: The LAG is deleted. *

      *
    • *
    • *

      * unknown: The state of the LAG is not available. *

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

    *
      *
    • *

      * requested: The initial state of a LAG. The LAG stays in the requested state until the Letter * of Authorization (LOA) is available. *

      *
    • *
    • *

      * pending: The LAG has been approved and is being initialized. *

      *
    • *
    • *

      * available: The network link is established and the LAG is ready for use. *

      *
    • *
    • *

      * down: The network link is down. *

      *
    • *
    • *

      * deleting: The LAG is being deleted. *

      *
    • *
    • *

      * deleted: The LAG is deleted. *

      *
    • *
    • *

      * unknown: The state of the LAG is not available. *

      *
    • * @see LagState */ public String getLagState() { return this.lagState; } /** *

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

      *
        *
      • *

        * requested: The initial state of a LAG. The LAG stays in the requested state until the Letter of * Authorization (LOA) is available. *

        *
      • *
      • *

        * pending: The LAG has been approved and is being initialized. *

        *
      • *
      • *

        * available: The network link is established and the LAG is ready for use. *

        *
      • *
      • *

        * down: The network link is down. *

        *
      • *
      • *

        * deleting: The LAG is being deleted. *

        *
      • *
      • *

        * deleted: The LAG is deleted. *

        *
      • *
      • *

        * unknown: The state of the LAG is not available. *

        *
      • *
      * * @param lagState * The state of the LAG. The following are the possible values:

      *
        *
      • *

        * requested: The initial state of a LAG. The LAG stays in the requested state until the Letter * of Authorization (LOA) is available. *

        *
      • *
      • *

        * pending: The LAG has been approved and is being initialized. *

        *
      • *
      • *

        * available: The network link is established and the LAG is ready for use. *

        *
      • *
      • *

        * down: The network link is down. *

        *
      • *
      • *

        * deleting: The LAG is being deleted. *

        *
      • *
      • *

        * deleted: The LAG is deleted. *

        *
      • *
      • *

        * unknown: The state of the LAG is not available. *

        *
      • * @return Returns a reference to this object so that method calls can be chained together. * @see LagState */ public Lag withLagState(String lagState) { setLagState(lagState); return this; } /** *

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

        *
          *
        • *

          * requested: The initial state of a LAG. The LAG stays in the requested state until the Letter of * Authorization (LOA) is available. *

          *
        • *
        • *

          * pending: The LAG has been approved and is being initialized. *

          *
        • *
        • *

          * available: The network link is established and the LAG is ready for use. *

          *
        • *
        • *

          * down: The network link is down. *

          *
        • *
        • *

          * deleting: The LAG is being deleted. *

          *
        • *
        • *

          * deleted: The LAG is deleted. *

          *
        • *
        • *

          * unknown: The state of the LAG is not available. *

          *
        • *
        * * @param lagState * The state of the LAG. The following are the possible values:

        *
          *
        • *

          * requested: The initial state of a LAG. The LAG stays in the requested state until the Letter * of Authorization (LOA) is available. *

          *
        • *
        • *

          * pending: The LAG has been approved and is being initialized. *

          *
        • *
        • *

          * available: The network link is established and the LAG is ready for use. *

          *
        • *
        • *

          * down: The network link is down. *

          *
        • *
        • *

          * deleting: The LAG is being deleted. *

          *
        • *
        • *

          * deleted: The LAG is deleted. *

          *
        • *
        • *

          * unknown: The state of the LAG is not available. *

          *
        • * @see LagState */ public void setLagState(LagState lagState) { withLagState(lagState); } /** *

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

          *
            *
          • *

            * requested: The initial state of a LAG. The LAG stays in the requested state until the Letter of * Authorization (LOA) is available. *

            *
          • *
          • *

            * pending: The LAG has been approved and is being initialized. *

            *
          • *
          • *

            * available: The network link is established and the LAG is ready for use. *

            *
          • *
          • *

            * down: The network link is down. *

            *
          • *
          • *

            * deleting: The LAG is being deleted. *

            *
          • *
          • *

            * deleted: The LAG is deleted. *

            *
          • *
          • *

            * unknown: The state of the LAG is not available. *

            *
          • *
          * * @param lagState * The state of the LAG. The following are the possible values:

          *
            *
          • *

            * requested: The initial state of a LAG. The LAG stays in the requested state until the Letter * of Authorization (LOA) is available. *

            *
          • *
          • *

            * pending: The LAG has been approved and is being initialized. *

            *
          • *
          • *

            * available: The network link is established and the LAG is ready for use. *

            *
          • *
          • *

            * down: The network link is down. *

            *
          • *
          • *

            * deleting: The LAG is being deleted. *

            *
          • *
          • *

            * deleted: The LAG is deleted. *

            *
          • *
          • *

            * unknown: The state of the LAG is not available. *

            *
          • * @return Returns a reference to this object so that method calls can be chained together. * @see LagState */ public Lag withLagState(LagState lagState) { this.lagState = lagState.toString(); return this; } /** *

            * The location of the LAG. *

            * * @param location * The location of the LAG. */ public void setLocation(String location) { this.location = location; } /** *

            * The location of the LAG. *

            * * @return The location of the LAG. */ public String getLocation() { return this.location; } /** *

            * The location of the LAG. *

            * * @param location * The location of the LAG. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withLocation(String location) { setLocation(location); return this; } /** *

            * The AWS Region where the connection is located. *

            * * @param region * The AWS Region where the connection is located. */ public void setRegion(String region) { this.region = region; } /** *

            * The AWS Region where the connection is located. *

            * * @return The AWS Region where the connection is located. */ public String getRegion() { return this.region; } /** *

            * The AWS Region where the connection is located. *

            * * @param region * The AWS Region where the connection is located. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withRegion(String region) { setRegion(region); return this; } /** *

            * The minimum number of physical connections that must be operational for the LAG itself to be operational. *

            * * @param minimumLinks * The minimum number of physical connections that must be operational for the LAG itself to be operational. */ public void setMinimumLinks(Integer minimumLinks) { this.minimumLinks = minimumLinks; } /** *

            * The minimum number of physical connections that must be operational for the LAG itself to be operational. *

            * * @return The minimum number of physical connections that must be operational for the LAG itself to be operational. */ public Integer getMinimumLinks() { return this.minimumLinks; } /** *

            * The minimum number of physical connections that must be operational for the LAG itself to be operational. *

            * * @param minimumLinks * The minimum number of physical connections that must be operational for the LAG itself to be operational. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withMinimumLinks(Integer minimumLinks) { setMinimumLinks(minimumLinks); return this; } /** *

            * The AWS Direct Connect endpoint that hosts the LAG. *

            * * @param awsDevice * The AWS Direct Connect endpoint that hosts the LAG. */ public void setAwsDevice(String awsDevice) { this.awsDevice = awsDevice; } /** *

            * The AWS Direct Connect endpoint that hosts the LAG. *

            * * @return The AWS Direct Connect endpoint that hosts the LAG. */ public String getAwsDevice() { return this.awsDevice; } /** *

            * The AWS Direct Connect endpoint that hosts the LAG. *

            * * @param awsDevice * The AWS Direct Connect endpoint that hosts the LAG. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withAwsDevice(String awsDevice) { setAwsDevice(awsDevice); return this; } /** *

            * The AWS Direct Connect endpoint that hosts the LAG. *

            * * @param awsDeviceV2 * The AWS Direct Connect endpoint that hosts the LAG. */ public void setAwsDeviceV2(String awsDeviceV2) { this.awsDeviceV2 = awsDeviceV2; } /** *

            * The AWS Direct Connect endpoint that hosts the LAG. *

            * * @return The AWS Direct Connect endpoint that hosts the LAG. */ public String getAwsDeviceV2() { return this.awsDeviceV2; } /** *

            * The AWS Direct Connect endpoint that hosts the LAG. *

            * * @param awsDeviceV2 * The AWS Direct Connect endpoint that hosts the LAG. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withAwsDeviceV2(String awsDeviceV2) { setAwsDeviceV2(awsDeviceV2); return this; } /** *

            * The connections bundled by the LAG. *

            * * @return The connections bundled by the LAG. */ public java.util.List getConnections() { if (connections == null) { connections = new com.amazonaws.internal.SdkInternalList(); } return connections; } /** *

            * The connections bundled by the LAG. *

            * * @param connections * The connections bundled by the LAG. */ public void setConnections(java.util.Collection connections) { if (connections == null) { this.connections = null; return; } this.connections = new com.amazonaws.internal.SdkInternalList(connections); } /** *

            * The connections bundled by the LAG. *

            *

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

            * * @param connections * The connections bundled by the LAG. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withConnections(Connection... connections) { if (this.connections == null) { setConnections(new com.amazonaws.internal.SdkInternalList(connections.length)); } for (Connection ele : connections) { this.connections.add(ele); } return this; } /** *

            * The connections bundled by the LAG. *

            * * @param connections * The connections bundled by the LAG. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withConnections(java.util.Collection connections) { setConnections(connections); return this; } /** *

            * Indicates whether the LAG can host other connections. *

            * * @param allowsHostedConnections * Indicates whether the LAG can host other connections. */ public void setAllowsHostedConnections(Boolean allowsHostedConnections) { this.allowsHostedConnections = allowsHostedConnections; } /** *

            * Indicates whether the LAG can host other connections. *

            * * @return Indicates whether the LAG can host other connections. */ public Boolean getAllowsHostedConnections() { return this.allowsHostedConnections; } /** *

            * Indicates whether the LAG can host other connections. *

            * * @param allowsHostedConnections * Indicates whether the LAG can host other connections. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withAllowsHostedConnections(Boolean allowsHostedConnections) { setAllowsHostedConnections(allowsHostedConnections); return this; } /** *

            * Indicates whether the LAG can host other connections. *

            * * @return Indicates whether the LAG can host other connections. */ public Boolean isAllowsHostedConnections() { return this.allowsHostedConnections; } /** *

            * Indicates whether jumbo frames (9001 MTU) are supported. *

            * * @param jumboFrameCapable * Indicates whether jumbo frames (9001 MTU) are supported. */ public void setJumboFrameCapable(Boolean jumboFrameCapable) { this.jumboFrameCapable = jumboFrameCapable; } /** *

            * Indicates whether jumbo frames (9001 MTU) are supported. *

            * * @return Indicates whether jumbo frames (9001 MTU) are supported. */ public Boolean getJumboFrameCapable() { return this.jumboFrameCapable; } /** *

            * Indicates whether jumbo frames (9001 MTU) are supported. *

            * * @param jumboFrameCapable * Indicates whether jumbo frames (9001 MTU) are supported. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withJumboFrameCapable(Boolean jumboFrameCapable) { setJumboFrameCapable(jumboFrameCapable); return this; } /** *

            * Indicates whether jumbo frames (9001 MTU) are supported. *

            * * @return Indicates whether jumbo frames (9001 MTU) are supported. */ public Boolean isJumboFrameCapable() { return this.jumboFrameCapable; } /** *

            * Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6). *

            * * @param hasLogicalRedundancy * Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6). * @see HasLogicalRedundancy */ public void setHasLogicalRedundancy(String hasLogicalRedundancy) { this.hasLogicalRedundancy = hasLogicalRedundancy; } /** *

            * Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6). *

            * * @return Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6). * @see HasLogicalRedundancy */ public String getHasLogicalRedundancy() { return this.hasLogicalRedundancy; } /** *

            * Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6). *

            * * @param hasLogicalRedundancy * Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6). * @return Returns a reference to this object so that method calls can be chained together. * @see HasLogicalRedundancy */ public Lag withHasLogicalRedundancy(String hasLogicalRedundancy) { setHasLogicalRedundancy(hasLogicalRedundancy); return this; } /** *

            * Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6). *

            * * @param hasLogicalRedundancy * Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6). * @see HasLogicalRedundancy */ public void setHasLogicalRedundancy(HasLogicalRedundancy hasLogicalRedundancy) { withHasLogicalRedundancy(hasLogicalRedundancy); } /** *

            * Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6). *

            * * @param hasLogicalRedundancy * Indicates whether the LAG supports a secondary BGP peer in the same address family (IPv4/IPv6). * @return Returns a reference to this object so that method calls can be chained together. * @see HasLogicalRedundancy */ public Lag withHasLogicalRedundancy(HasLogicalRedundancy hasLogicalRedundancy) { this.hasLogicalRedundancy = hasLogicalRedundancy.toString(); return this; } /** *

            * The tags associated with the LAG. *

            * * @return The tags associated with the LAG. */ public java.util.List getTags() { if (tags == null) { tags = new com.amazonaws.internal.SdkInternalList(); } return tags; } /** *

            * The tags associated with the LAG. *

            * * @param tags * The tags associated with the LAG. */ public void setTags(java.util.Collection tags) { if (tags == null) { this.tags = null; return; } this.tags = new com.amazonaws.internal.SdkInternalList(tags); } /** *

            * The tags associated with the LAG. *

            *

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

            * * @param tags * The tags associated with the LAG. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withTags(Tag... tags) { if (this.tags == null) { setTags(new com.amazonaws.internal.SdkInternalList(tags.length)); } for (Tag ele : tags) { this.tags.add(ele); } return this; } /** *

            * The tags associated with the LAG. *

            * * @param tags * The tags associated with the LAG. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withTags(java.util.Collection tags) { setTags(tags); return this; } /** *

            * The name of the service provider associated with the LAG. *

            * * @param providerName * The name of the service provider associated with the LAG. */ public void setProviderName(String providerName) { this.providerName = providerName; } /** *

            * The name of the service provider associated with the LAG. *

            * * @return The name of the service provider associated with the LAG. */ public String getProviderName() { return this.providerName; } /** *

            * The name of the service provider associated with the LAG. *

            * * @param providerName * The name of the service provider associated with the LAG. * @return Returns a reference to this object so that method calls can be chained together. */ public Lag withProviderName(String providerName) { setProviderName(providerName); 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 (getConnectionsBandwidth() != null) sb.append("ConnectionsBandwidth: ").append(getConnectionsBandwidth()).append(","); if (getNumberOfConnections() != null) sb.append("NumberOfConnections: ").append(getNumberOfConnections()).append(","); if (getLagId() != null) sb.append("LagId: ").append(getLagId()).append(","); if (getOwnerAccount() != null) sb.append("OwnerAccount: ").append(getOwnerAccount()).append(","); if (getLagName() != null) sb.append("LagName: ").append(getLagName()).append(","); if (getLagState() != null) sb.append("LagState: ").append(getLagState()).append(","); if (getLocation() != null) sb.append("Location: ").append(getLocation()).append(","); if (getRegion() != null) sb.append("Region: ").append(getRegion()).append(","); if (getMinimumLinks() != null) sb.append("MinimumLinks: ").append(getMinimumLinks()).append(","); if (getAwsDevice() != null) sb.append("AwsDevice: ").append(getAwsDevice()).append(","); if (getAwsDeviceV2() != null) sb.append("AwsDeviceV2: ").append(getAwsDeviceV2()).append(","); if (getConnections() != null) sb.append("Connections: ").append(getConnections()).append(","); if (getAllowsHostedConnections() != null) sb.append("AllowsHostedConnections: ").append(getAllowsHostedConnections()).append(","); if (getJumboFrameCapable() != null) sb.append("JumboFrameCapable: ").append(getJumboFrameCapable()).append(","); if (getHasLogicalRedundancy() != null) sb.append("HasLogicalRedundancy: ").append(getHasLogicalRedundancy()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getProviderName() != null) sb.append("ProviderName: ").append(getProviderName()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Lag == false) return false; Lag other = (Lag) obj; if (other.getConnectionsBandwidth() == null ^ this.getConnectionsBandwidth() == null) return false; if (other.getConnectionsBandwidth() != null && other.getConnectionsBandwidth().equals(this.getConnectionsBandwidth()) == false) return false; if (other.getNumberOfConnections() == null ^ this.getNumberOfConnections() == null) return false; if (other.getNumberOfConnections() != null && other.getNumberOfConnections().equals(this.getNumberOfConnections()) == false) return false; if (other.getLagId() == null ^ this.getLagId() == null) return false; if (other.getLagId() != null && other.getLagId().equals(this.getLagId()) == false) return false; if (other.getOwnerAccount() == null ^ this.getOwnerAccount() == null) return false; if (other.getOwnerAccount() != null && other.getOwnerAccount().equals(this.getOwnerAccount()) == false) return false; if (other.getLagName() == null ^ this.getLagName() == null) return false; if (other.getLagName() != null && other.getLagName().equals(this.getLagName()) == false) return false; if (other.getLagState() == null ^ this.getLagState() == null) return false; if (other.getLagState() != null && other.getLagState().equals(this.getLagState()) == false) return false; if (other.getLocation() == null ^ this.getLocation() == null) return false; if (other.getLocation() != null && other.getLocation().equals(this.getLocation()) == false) return false; if (other.getRegion() == null ^ this.getRegion() == null) return false; if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == false) return false; if (other.getMinimumLinks() == null ^ this.getMinimumLinks() == null) return false; if (other.getMinimumLinks() != null && other.getMinimumLinks().equals(this.getMinimumLinks()) == false) return false; if (other.getAwsDevice() == null ^ this.getAwsDevice() == null) return false; if (other.getAwsDevice() != null && other.getAwsDevice().equals(this.getAwsDevice()) == false) return false; if (other.getAwsDeviceV2() == null ^ this.getAwsDeviceV2() == null) return false; if (other.getAwsDeviceV2() != null && other.getAwsDeviceV2().equals(this.getAwsDeviceV2()) == false) return false; if (other.getConnections() == null ^ this.getConnections() == null) return false; if (other.getConnections() != null && other.getConnections().equals(this.getConnections()) == false) return false; if (other.getAllowsHostedConnections() == null ^ this.getAllowsHostedConnections() == null) return false; if (other.getAllowsHostedConnections() != null && other.getAllowsHostedConnections().equals(this.getAllowsHostedConnections()) == false) return false; if (other.getJumboFrameCapable() == null ^ this.getJumboFrameCapable() == null) return false; if (other.getJumboFrameCapable() != null && other.getJumboFrameCapable().equals(this.getJumboFrameCapable()) == false) return false; if (other.getHasLogicalRedundancy() == null ^ this.getHasLogicalRedundancy() == null) return false; if (other.getHasLogicalRedundancy() != null && other.getHasLogicalRedundancy().equals(this.getHasLogicalRedundancy()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getProviderName() == null ^ this.getProviderName() == null) return false; if (other.getProviderName() != null && other.getProviderName().equals(this.getProviderName()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConnectionsBandwidth() == null) ? 0 : getConnectionsBandwidth().hashCode()); hashCode = prime * hashCode + ((getNumberOfConnections() == null) ? 0 : getNumberOfConnections().hashCode()); hashCode = prime * hashCode + ((getLagId() == null) ? 0 : getLagId().hashCode()); hashCode = prime * hashCode + ((getOwnerAccount() == null) ? 0 : getOwnerAccount().hashCode()); hashCode = prime * hashCode + ((getLagName() == null) ? 0 : getLagName().hashCode()); hashCode = prime * hashCode + ((getLagState() == null) ? 0 : getLagState().hashCode()); hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode()); hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode()); hashCode = prime * hashCode + ((getMinimumLinks() == null) ? 0 : getMinimumLinks().hashCode()); hashCode = prime * hashCode + ((getAwsDevice() == null) ? 0 : getAwsDevice().hashCode()); hashCode = prime * hashCode + ((getAwsDeviceV2() == null) ? 0 : getAwsDeviceV2().hashCode()); hashCode = prime * hashCode + ((getConnections() == null) ? 0 : getConnections().hashCode()); hashCode = prime * hashCode + ((getAllowsHostedConnections() == null) ? 0 : getAllowsHostedConnections().hashCode()); hashCode = prime * hashCode + ((getJumboFrameCapable() == null) ? 0 : getJumboFrameCapable().hashCode()); hashCode = prime * hashCode + ((getHasLogicalRedundancy() == null) ? 0 : getHasLogicalRedundancy().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getProviderName() == null) ? 0 : getProviderName().hashCode()); return hashCode; } @Override public Lag clone() { try { return (Lag) 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.LagMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy