com.amazonaws.services.directconnect.model
Class Connection

java.lang.Object
  extended by com.amazonaws.services.directconnect.model.Connection
All Implemented Interfaces:
Serializable

public class Connection
extends Object
implements Serializable

A connection represents the physical network connection between the AWS Direct Connect location and the customer.

See Also:
Serialized Form

Constructor Summary
Connection()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getBandwidth()
          Bandwidth of the connection.
 String getConnectionId()
          ID of the connection.
 String getConnectionName()
          The name of the connection.
 String getConnectionState()
          State of the connection.
 String getLocation()
          Where the connection is located.
 String getOwnerAccount()
          Returns the value of the OwnerAccount property for this object.
 String getPartnerName()
          Returns the value of the PartnerName property for this object.
 String getRegion()
          The AWS region where the connection is located.
 Integer getVlan()
          The VLAN ID.
 int hashCode()
           
 void setBandwidth(String bandwidth)
          Bandwidth of the connection.
 void setConnectionId(String connectionId)
          ID of the connection.
 void setConnectionName(String connectionName)
          The name of the connection.
 void setConnectionState(ConnectionState connectionState)
          State of the connection.
 void setConnectionState(String connectionState)
          State of the connection.
 void setLocation(String location)
          Where the connection is located.
 void setOwnerAccount(String ownerAccount)
          Sets the value of the OwnerAccount property for this object.
 void setPartnerName(String partnerName)
          Sets the value of the PartnerName property for this object.
 void setRegion(String region)
          The AWS region where the connection is located.
 void setVlan(Integer vlan)
          The VLAN ID.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Connection withBandwidth(String bandwidth)
          Bandwidth of the connection.
 Connection withConnectionId(String connectionId)
          ID of the connection.
 Connection withConnectionName(String connectionName)
          The name of the connection.
 Connection withConnectionState(ConnectionState connectionState)
          State of the connection.
 Connection withConnectionState(String connectionState)
          State of the connection.
 Connection withLocation(String location)
          Where the connection is located.
 Connection withOwnerAccount(String ownerAccount)
          Sets the value of the OwnerAccount property for this object.
 Connection withPartnerName(String partnerName)
          Sets the value of the PartnerName property for this object.
 Connection withRegion(String region)
          The AWS region where the connection is located.
 Connection withVlan(Integer vlan)
          The VLAN ID.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Connection

public Connection()
Method Detail

getOwnerAccount

public String getOwnerAccount()
Returns the value of the OwnerAccount property for this object.

Returns:
The value of the OwnerAccount property for this object.

setOwnerAccount

public void setOwnerAccount(String ownerAccount)
Sets the value of the OwnerAccount property for this object.

Parameters:
ownerAccount - The new value for the OwnerAccount property for this object.

withOwnerAccount

public Connection withOwnerAccount(String ownerAccount)
Sets the value of the OwnerAccount property for this object.

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

Parameters:
ownerAccount - The new value for the OwnerAccount property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

getConnectionId

public String getConnectionId()
ID of the connection.

Example: dxcon-fg5678gh

Default: None

Returns:
ID of the connection.

Example: dxcon-fg5678gh

Default: None


setConnectionId

public void setConnectionId(String connectionId)
ID of the connection.

Example: dxcon-fg5678gh

Default: None

Parameters:
connectionId - ID of the connection.

Example: dxcon-fg5678gh

Default: None


withConnectionId

public Connection withConnectionId(String connectionId)
ID of the connection.

Example: dxcon-fg5678gh

Default: None

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

Parameters:
connectionId - ID of the connection.

Example: dxcon-fg5678gh

Default: None

Returns:
A reference to this updated object so that method calls can be chained together.

getConnectionName

public String getConnectionName()
The name of the connection.

Example: "1G Connection to AWS"

Default: None

Returns:
The name of the connection.

Example: "1G Connection to AWS"

Default: None


setConnectionName

public void setConnectionName(String connectionName)
The name of the connection.

Example: "1G Connection to AWS"

Default: None

Parameters:
connectionName - The name of the connection.

Example: "1G Connection to AWS"

Default: None


withConnectionName

public Connection withConnectionName(String connectionName)
The name of the connection.

Example: "1G Connection to AWS"

Default: None

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

Parameters:
connectionName - The name of the connection.

Example: "1G Connection to AWS"

Default: None

Returns:
A reference to this updated object so that method calls can be chained together.

getConnectionState

public String getConnectionState()
State of the connection.

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

Returns:
State of the connection.
  • Ordering: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
  • Requested: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The connection has been approved, and is being initialized.
  • Available: The network link is up, and the connection is ready for use.
  • Down: The network link is down.
  • Deleted: The connection has been deleted.
  • Rejected: A hosted connection in the 'Ordering' state will enter the 'Rejected' state if it is deleted by the end customer.
See Also:
ConnectionState

setConnectionState

public void setConnectionState(String connectionState)
State of the connection.

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

Parameters:
connectionState - State of the connection.
  • Ordering: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
  • Requested: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The connection has been approved, and is being initialized.
  • Available: The network link is up, and the connection is ready for use.
  • Down: The network link is down.
  • Deleted: The connection has been deleted.
  • Rejected: A hosted connection in the 'Ordering' state will enter the 'Rejected' state if it is deleted by the end customer.
See Also:
ConnectionState

withConnectionState

public Connection withConnectionState(String connectionState)
State of the connection.

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

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

Parameters:
connectionState - State of the connection.
  • Ordering: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
  • Requested: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The connection has been approved, and is being initialized.
  • Available: The network link is up, and the connection is ready for use.
  • Down: The network link is down.
  • Deleted: The connection has been deleted.
  • Rejected: A hosted connection in the 'Ordering' state will enter the 'Rejected' state if it is deleted by the end customer.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ConnectionState

setConnectionState

public void setConnectionState(ConnectionState connectionState)
State of the connection.

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

Parameters:
connectionState - State of the connection.
  • Ordering: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
  • Requested: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The connection has been approved, and is being initialized.
  • Available: The network link is up, and the connection is ready for use.
  • Down: The network link is down.
  • Deleted: The connection has been deleted.
  • Rejected: A hosted connection in the 'Ordering' state will enter the 'Rejected' state if it is deleted by the end customer.
See Also:
ConnectionState

withConnectionState

public Connection withConnectionState(ConnectionState connectionState)
State of the connection.

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

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

Parameters:
connectionState - State of the connection.
  • Ordering: The initial state of a hosted connection provisioned on an interconnect. The connection stays in the ordering state until the owner of the hosted connection confirms or declines the connection order.
  • Requested: The initial state of a standard connection. The connection stays in the requested state until the Letter of Authorization (LOA) is sent to the customer.
  • Pending: The connection has been approved, and is being initialized.
  • Available: The network link is up, and the connection is ready for use.
  • Down: The network link is down.
  • Deleted: The connection has been deleted.
  • Rejected: A hosted connection in the 'Ordering' state will enter the 'Rejected' state if it is deleted by the end customer.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
ConnectionState

getRegion

public String getRegion()
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


setRegion

public void setRegion(String region)
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


withRegion

public Connection withRegion(String 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.

getLocation

public String getLocation()
Where the connection is located.

Example: EqSV5

Default: None

Returns:
Where the connection is located.

Example: EqSV5

Default: None


setLocation

public void setLocation(String location)
Where the connection is located.

Example: EqSV5

Default: None

Parameters:
location - Where the connection is located.

Example: EqSV5

Default: None


withLocation

public Connection withLocation(String 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.

getBandwidth

public String getBandwidth()
Bandwidth of the connection.

Example: 1Gbps

Default: None

Returns:
Bandwidth of the connection.

Example: 1Gbps

Default: None


setBandwidth

public void setBandwidth(String bandwidth)
Bandwidth of the connection.

Example: 1Gbps

Default: None

Parameters:
bandwidth - Bandwidth of the connection.

Example: 1Gbps

Default: None


withBandwidth

public Connection withBandwidth(String 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.

getVlan

public Integer getVlan()
The VLAN ID.

Example: 101

Returns:
The VLAN ID.

Example: 101


setVlan

public void setVlan(Integer vlan)
The VLAN ID.

Example: 101

Parameters:
vlan - The VLAN ID.

Example: 101


withVlan

public Connection withVlan(Integer vlan)
The VLAN ID.

Example: 101

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

Parameters:
vlan - The VLAN ID.

Example: 101

Returns:
A reference to this updated object so that method calls can be chained together.

getPartnerName

public String getPartnerName()
Returns the value of the PartnerName property for this object.

Returns:
The value of the PartnerName property for this object.

setPartnerName

public void setPartnerName(String partnerName)
Sets the value of the PartnerName property for this object.

Parameters:
partnerName - The new value for the PartnerName property for this object.

withPartnerName

public Connection withPartnerName(String partnerName)
Sets the value of the PartnerName property for this object.

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

Parameters:
partnerName - The new value for the PartnerName property for this object.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2016. All rights reserved.