Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2010-2015 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;
 

An interconnect is a connection that can host other connections.

Like a standard AWS Direct Connect connection, an interconnect represents the physical connection between an AWS Direct Connect partner's network and a specific Direct Connect location. An AWS Direct Connect partner who owns an interconnect can provision hosted connections on the interconnect for their end customers, thereby providing the end customers with connectivity to AWS services.

The resources of the interconnect, including bandwidth and VLAN numbers, are shared by all of the hosted connections on the interconnect, and the owner of the interconnect determines how these resources are assigned.

 
 public class CreateInterconnectResult implements SerializableCloneable {

    
The ID of the interconnect.

Example: dxcon-abc123

 
     private String interconnectId;

    
The name of the interconnect.

Example: "1G Interconnect to AWS"

 
     private String interconnectName;

    
State of the interconnect.
  • Requested: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The interconnect has been approved, and is being initialized.
  • Available: The network link is up, and the interconnect is ready for use.
  • Down: The network link is down.
  • Deleted: The interconnect has been deleted.

Constraints:
Allowed Values: requested, pending, available, down, deleting, deleted

 
     private String interconnectState;

    
The AWS region where the connection is located.

Example: us-east-1

Default: None

 
     private String region;

    
Where the connection is located.

Example: EqSV5

Default: None

 
     private String location;

    
Bandwidth of the connection.

Example: 1Gbps

Default: None

 
     private String bandwidth;

    
The ID of the interconnect.

Example: dxcon-abc123

Returns:
The ID of the interconnect.

Example: dxcon-abc123

 
     public String getInterconnectId() {
         return ;
     }
    
    
The ID of the interconnect.

Example: dxcon-abc123

Parameters:
interconnectId The ID of the interconnect.

Example: dxcon-abc123

 
     public void setInterconnectId(String interconnectId) {
         this. = interconnectId;
     }
    
    
The ID of the interconnect.

Example: dxcon-abc123

Returns a reference to this object so that method calls can be chained together.

Parameters:
interconnectId The ID of the interconnect.

Example: dxcon-abc123

Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateInterconnectResult withInterconnectId(String interconnectId) {
        this. = interconnectId;
        return this;
    }

    
The name of the interconnect.

Example: "1G Interconnect to AWS"

Returns:
The name of the interconnect.

Example: "1G Interconnect to AWS"

    public String getInterconnectName() {
        return ;
    }
    
    
The name of the interconnect.

Example: "1G Interconnect to AWS"

Parameters:
interconnectName The name of the interconnect.

Example: "1G Interconnect to AWS"

    public void setInterconnectName(String interconnectName) {
        this. = interconnectName;
    }
    
    
The name of the interconnect.

Example: "1G Interconnect to AWS"

Returns a reference to this object so that method calls can be chained together.

Parameters:
interconnectName The name of the interconnect.

Example: "1G Interconnect to AWS"

Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateInterconnectResult withInterconnectName(String interconnectName) {
        this. = interconnectName;
        return this;
    }

    
State of the interconnect.
  • Requested: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The interconnect has been approved, and is being initialized.
  • Available: The network link is up, and the interconnect is ready for use.
  • Down: The network link is down.
  • Deleted: The interconnect has been deleted.

Constraints:
Allowed Values: requested, pending, available, down, deleting, deleted

Returns:
State of the interconnect.
  • Requested: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The interconnect has been approved, and is being initialized.
  • Available: The network link is up, and the interconnect is ready for use.
  • Down: The network link is down.
  • Deleted: The interconnect has been deleted.
See also:
InterconnectState
    public String getInterconnectState() {
        return ;
    }
    
    
State of the interconnect.
  • Requested: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The interconnect has been approved, and is being initialized.
  • Available: The network link is up, and the interconnect is ready for use.
  • Down: The network link is down.
  • Deleted: The interconnect has been deleted.

Constraints:
Allowed Values: requested, pending, available, down, deleting, deleted

Parameters:
interconnectState State of the interconnect.
  • Requested: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The interconnect has been approved, and is being initialized.
  • Available: The network link is up, and the interconnect is ready for use.
  • Down: The network link is down.
  • Deleted: The interconnect has been deleted.
See also:
InterconnectState
    public void setInterconnectState(String interconnectState) {
        this. = interconnectState;
    }
    
    
State of the interconnect.
  • Requested: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The interconnect has been approved, and is being initialized.
  • Available: The network link is up, and the interconnect is ready for use.
  • Down: The network link is down.
  • Deleted: The interconnect has been deleted.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: requested, pending, available, down, deleting, deleted

Parameters:
interconnectState State of the interconnect.
  • Requested: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The interconnect has been approved, and is being initialized.
  • Available: The network link is up, and the interconnect is ready for use.
  • Down: The network link is down.
  • Deleted: The interconnect has been deleted.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
InterconnectState
    public CreateInterconnectResult withInterconnectState(String interconnectState) {
        this. = interconnectState;
        return this;
    }

    
State of the interconnect.
  • Requested: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The interconnect has been approved, and is being initialized.
  • Available: The network link is up, and the interconnect is ready for use.
  • Down: The network link is down.
  • Deleted: The interconnect has been deleted.

Constraints:
Allowed Values: requested, pending, available, down, deleting, deleted

Parameters:
interconnectState State of the interconnect.
  • Requested: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The interconnect has been approved, and is being initialized.
  • Available: The network link is up, and the interconnect is ready for use.
  • Down: The network link is down.
  • Deleted: The interconnect has been deleted.
See also:
InterconnectState
    public void setInterconnectState(InterconnectState interconnectState) {
        this. = interconnectState.toString();
    }
    
    
State of the interconnect.
  • Requested: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The interconnect has been approved, and is being initialized.
  • Available: The network link is up, and the interconnect is ready for use.
  • Down: The network link is down.
  • Deleted: The interconnect has been deleted.

Returns a reference to this object so that method calls can be chained together.

Constraints:
Allowed Values: requested, pending, available, down, deleting, deleted

Parameters:
interconnectState State of the interconnect.
  • Requested: The initial state of an interconnect. The interconnect stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The interconnect has been approved, and is being initialized.
  • Available: The network link is up, and the interconnect is ready for use.
  • Down: The network link is down.
  • Deleted: The interconnect has been deleted.
Returns:
A reference to this updated object so that method calls can be chained together.
See also:
InterconnectState
        this. = interconnectState.toString();
        return this;
    }

    
The AWS region where the connection is located.

Example: us-east-1

Default: None

Returns:
The AWS region where the connection is located.

Example: us-east-1

Default: None

    public String getRegion() {
        return ;
    }
    
    
The AWS region where the connection is located.

Example: us-east-1

Default: None

Parameters:
region The AWS region where the connection is located.

Example: us-east-1

Default: None

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

Example: us-east-1

Default: None

Returns a reference to this object so that method calls can be chained together.

Parameters:
region The AWS region where the connection is located.

Example: us-east-1

Default: None

Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateInterconnectResult withRegion(String region) {
        this. = region;
        return this;
    }

    
Where the connection is located.

Example: EqSV5

Default: None

Returns:
Where the connection is located.

Example: EqSV5

Default: None

    public String getLocation() {
        return ;
    }
    
    
Where the connection is located.

Example: EqSV5

Default: None

Parameters:
location Where the connection is located.

Example: EqSV5

Default: None

    public void setLocation(String location) {
        this. = location;
    }
    
    
Where the connection is located.

Example: EqSV5

Default: None

Returns a reference to this object so that method calls can be chained together.

Parameters:
location Where the connection is located.

Example: EqSV5

Default: None

Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateInterconnectResult withLocation(String location) {
        this. = location;
        return this;
    }

    
Bandwidth of the connection.

Example: 1Gbps

Default: None

Returns:
Bandwidth of the connection.

Example: 1Gbps

Default: None

    public String getBandwidth() {
        return ;
    }
    
    
Bandwidth of the connection.

Example: 1Gbps

Default: None

Parameters:
bandwidth Bandwidth of the connection.

Example: 1Gbps

Default: None

    public void setBandwidth(String bandwidth) {
        this. = bandwidth;
    }
    
    
Bandwidth of the connection.

Example: 1Gbps

Default: None

Returns a reference to this object so that method calls can be chained together.

Parameters:
bandwidth Bandwidth of the connection.

Example: 1Gbps

Default: None

Returns:
A reference to this updated object so that method calls can be chained together.
    public CreateInterconnectResult withBandwidth(String bandwidth) {
        this. = bandwidth;
        return this;
    }

    
Returns a string representation of this object; useful for testing and debugging.

Returns:
A string representation of this object.
See also:
java.lang.Object.toString()
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("{");
        if (getInterconnectId() != nullsb.append("InterconnectId: " + getInterconnectId() + ",");
        if (getInterconnectName() != nullsb.append("InterconnectName: " + getInterconnectName() + ",");
        if (getInterconnectState() != nullsb.append("InterconnectState: " + getInterconnectState() + ",");
        if (getRegion() != nullsb.append("Region: " + getRegion() + ",");
        if (getLocation() != nullsb.append("Location: " + getLocation() + ",");
        if (getBandwidth() != nullsb.append("Bandwidth: " + getBandwidth() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getInterconnectId() == null) ? 0 : getInterconnectId().hashCode()); 
        hashCode = prime * hashCode + ((getInterconnectName() == null) ? 0 : getInterconnectName().hashCode()); 
        hashCode = prime * hashCode + ((getInterconnectState() == null) ? 0 : getInterconnectState().hashCode()); 
        hashCode = prime * hashCode + ((getRegion() == null) ? 0 : getRegion().hashCode()); 
        hashCode = prime * hashCode + ((getLocation() == null) ? 0 : getLocation().hashCode()); 
        hashCode = prime * hashCode + ((getBandwidth() == null) ? 0 : getBandwidth().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof CreateInterconnectResult == falsereturn false;
        CreateInterconnectResult other = (CreateInterconnectResult)obj;
        
        if (other.getInterconnectId() == null ^ this.getInterconnectId() == nullreturn false;
        if (other.getInterconnectId() != null && other.getInterconnectId().equals(this.getInterconnectId()) == falsereturn false
        if (other.getInterconnectName() == null ^ this.getInterconnectName() == nullreturn false;
        if (other.getInterconnectName() != null && other.getInterconnectName().equals(this.getInterconnectName()) == falsereturn false
        if (other.getInterconnectState() == null ^ this.getInterconnectState() == nullreturn false;
        if (other.getInterconnectState() != null && other.getInterconnectState().equals(this.getInterconnectState()) == falsereturn false
        if (other.getRegion() == null ^ this.getRegion() == nullreturn false;
        if (other.getRegion() != null && other.getRegion().equals(this.getRegion()) == falsereturn false
        if (other.getLocation() == null ^ this.getLocation() == nullreturn false;
        if (other.getLocation() != null && other.getLocation().equals(this.getLocation()) == falsereturn false
        if (other.getBandwidth() == null ^ this.getBandwidth() == nullreturn false;
        if (other.getBandwidth() != null && other.getBandwidth().equals(this.getBandwidth()) == falsereturn false
        return true;
    }
    
    @Override
    public CreateInterconnectResult clone() {
        try {
            return (CreateInterconnectResultsuper.clone();
        
        } catch (CloneNotSupportedException e) {
            throw new IllegalStateException(
                    "Got a CloneNotSupportedException from Object.clone() "
                    + "even though we're Cloneable!",
                    e);
        }
        
    }
}
    
New to GrepCode? Check out our FAQ X