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;
 
 
Container for the parameters to the AllocateConnectionOnInterconnect operation.

Creates a hosted connection on an interconnect.

Allocates a VLAN number and a specified amount of bandwidth for use by a hosted connection on the given interconnect.

 
Bandwidth of the connection.

Example: 1Gbps

Default: None

 
     private String bandwidth;

    
Name of the provisioned connection.

Example: "500M Connection to AWS"

Default: None

 
     private String connectionName;

    
Numeric account Id of the customer for whom the connection will be provisioned.

Example: 123443215678

Default: None

 
     private String ownerAccount;

    
ID of the interconnect on which the connection will be provisioned.

Example: dxcon-456abc78

Default: None

 
     private String interconnectId;

    
The dedicated VLAN provisioned to the connection.

Example: 101

Default: None

 
     private Integer vlan;

    
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.
 
         this. = bandwidth;
         return this;
     }

    
Name of the provisioned connection.

Example: "500M Connection to AWS"

Default: None

Returns:
Name of the provisioned connection.

Example: "500M Connection to AWS"

Default: None

    public String getConnectionName() {
        return ;
    }
    
    
Name of the provisioned connection.

Example: "500M Connection to AWS"

Default: None

Parameters:
connectionName Name of the provisioned connection.

Example: "500M Connection to AWS"

Default: None

    public void setConnectionName(String connectionName) {
        this. = connectionName;
    }
    
    
Name of the provisioned connection.

Example: "500M Connection to AWS"

Default: None

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

Parameters:
connectionName Name of the provisioned connection.

Example: "500M Connection to AWS"

Default: None

Returns:
A reference to this updated object so that method calls can be chained together.
        this. = connectionName;
        return this;
    }

    
Numeric account Id of the customer for whom the connection will be provisioned.

Example: 123443215678

Default: None

Returns:
Numeric account Id of the customer for whom the connection will be provisioned.

Example: 123443215678

Default: None

    public String getOwnerAccount() {
        return ;
    }
    
    
Numeric account Id of the customer for whom the connection will be provisioned.

Example: 123443215678

Default: None

Parameters:
ownerAccount Numeric account Id of the customer for whom the connection will be provisioned.

Example: 123443215678

Default: None

    public void setOwnerAccount(String ownerAccount) {
        this. = ownerAccount;
    }
    
    
Numeric account Id of the customer for whom the connection will be provisioned.

Example: 123443215678

Default: None

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

Parameters:
ownerAccount Numeric account Id of the customer for whom the connection will be provisioned.

Example: 123443215678

Default: None

Returns:
A reference to this updated object so that method calls can be chained together.
        this. = ownerAccount;
        return this;
    }

    
ID of the interconnect on which the connection will be provisioned.

Example: dxcon-456abc78

Default: None

Returns:
ID of the interconnect on which the connection will be provisioned.

Example: dxcon-456abc78

Default: None

    public String getInterconnectId() {
        return ;
    }
    
    
ID of the interconnect on which the connection will be provisioned.

Example: dxcon-456abc78

Default: None

Parameters:
interconnectId ID of the interconnect on which the connection will be provisioned.

Example: dxcon-456abc78

Default: None

    public void setInterconnectId(String interconnectId) {
        this. = interconnectId;
    }
    
    
ID of the interconnect on which the connection will be provisioned.

Example: dxcon-456abc78

Default: None

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

Parameters:
interconnectId ID of the interconnect on which the connection will be provisioned.

Example: dxcon-456abc78

Default: None

Returns:
A reference to this updated object so that method calls can be chained together.
        this. = interconnectId;
        return this;
    }

    
The dedicated VLAN provisioned to the connection.

Example: 101

Default: None

Returns:
The dedicated VLAN provisioned to the connection.

Example: 101

Default: None

    public Integer getVlan() {
        return ;
    }
    
    
The dedicated VLAN provisioned to the connection.

Example: 101

Default: None

Parameters:
vlan The dedicated VLAN provisioned to the connection.

Example: 101

Default: None

    public void setVlan(Integer vlan) {
        this. = vlan;
    }
    
    
The dedicated VLAN provisioned to the connection.

Example: 101

Default: None

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

Parameters:
vlan The dedicated VLAN provisioned to the connection.

Example: 101

Default: None

Returns:
A reference to this updated object so that method calls can be chained together.
        this. = vlan;
        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 (getBandwidth() != nullsb.append("Bandwidth: " + getBandwidth() + ",");
        if (getConnectionName() != nullsb.append("ConnectionName: " + getConnectionName() + ",");
        if (getOwnerAccount() != nullsb.append("OwnerAccount: " + getOwnerAccount() + ",");
        if (getInterconnectId() != nullsb.append("InterconnectId: " + getInterconnectId() + ",");
        if (getVlan() != nullsb.append("Vlan: " + getVlan() );
        sb.append("}");
        return sb.toString();
    }
    
    @Override
    public int hashCode() {
        final int prime = 31;
        int hashCode = 1;
        
        hashCode = prime * hashCode + ((getBandwidth() == null) ? 0 : getBandwidth().hashCode()); 
        hashCode = prime * hashCode + ((getConnectionName() == null) ? 0 : getConnectionName().hashCode()); 
        hashCode = prime * hashCode + ((getOwnerAccount() == null) ? 0 : getOwnerAccount().hashCode()); 
        hashCode = prime * hashCode + ((getInterconnectId() == null) ? 0 : getInterconnectId().hashCode()); 
        hashCode = prime * hashCode + ((getVlan() == null) ? 0 : getVlan().hashCode()); 
        return hashCode;
    }
    
    @Override
    public boolean equals(Object obj) {
        if (this == objreturn true;
        if (obj == nullreturn false;
        if (obj instanceof AllocateConnectionOnInterconnectRequest == falsereturn false;
        
        if (other.getBandwidth() == null ^ this.getBandwidth() == nullreturn false;
        if (other.getBandwidth() != null && other.getBandwidth().equals(this.getBandwidth()) == falsereturn false
        if (other.getConnectionName() == null ^ this.getConnectionName() == nullreturn false;
        if (other.getConnectionName() != null && other.getConnectionName().equals(this.getConnectionName()) == falsereturn false
        if (other.getOwnerAccount() == null ^ this.getOwnerAccount() == nullreturn false;
        if (other.getOwnerAccount() != null && other.getOwnerAccount().equals(this.getOwnerAccount()) == falsereturn false
        if (other.getInterconnectId() == null ^ this.getInterconnectId() == nullreturn false;
        if (other.getInterconnectId() != null && other.getInterconnectId().equals(this.getInterconnectId()) == falsereturn false
        if (other.getVlan() == null ^ this.getVlan() == nullreturn false;
        if (other.getVlan() != null && other.getVlan().equals(this.getVlan()) == falsereturn false
        return true;
    }
    
    @Override
        
            return (AllocateConnectionOnInterconnectRequestsuper.clone();
    }
}
    
New to GrepCode? Check out our FAQ X