Class Connection
- java.lang.Object
-
- com.amazonaws.services.directconnect.model.Connection
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Connection extends Object implements Serializable, Cloneable
A connection represents the physical network connection between the AWS Direct Connect location and the customer.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Connection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connection
clone()
boolean
equals(Object obj)
String
getBandwidth()
Bandwidth of the connection.String
getConnectionId()
String
getConnectionName()
String
getConnectionState()
String
getLocation()
String
getOwnerAccount()
The AWS account that will own the new connection.String
getPartnerName()
The name of the AWS Direct Connect service provider associated with the connection.String
getRegion()
Integer
getVlan()
int
hashCode()
void
setBandwidth(String bandwidth)
Bandwidth of the connection.void
setConnectionId(String connectionId)
void
setConnectionName(String connectionName)
void
setConnectionState(ConnectionState connectionState)
void
setConnectionState(String connectionState)
void
setLocation(String location)
void
setOwnerAccount(String ownerAccount)
The AWS account that will own the new connection.void
setPartnerName(String partnerName)
The name of the AWS Direct Connect service provider associated with the connection.void
setRegion(String region)
void
setVlan(Integer vlan)
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)
Connection
withConnectionName(String connectionName)
Connection
withConnectionState(ConnectionState connectionState)
Connection
withConnectionState(String connectionState)
Connection
withLocation(String location)
Connection
withOwnerAccount(String ownerAccount)
The AWS account that will own the new connection.Connection
withPartnerName(String partnerName)
The name of the AWS Direct Connect service provider associated with the connection.Connection
withRegion(String region)
Connection
withVlan(Integer vlan)
-
-
-
Method Detail
-
setOwnerAccount
public void setOwnerAccount(String ownerAccount)
The AWS account that will own the new connection.
- Parameters:
ownerAccount
- The AWS account that will own the new connection.
-
getOwnerAccount
public String getOwnerAccount()
The AWS account that will own the new connection.
- Returns:
- The AWS account that will own the new connection.
-
withOwnerAccount
public Connection withOwnerAccount(String ownerAccount)
The AWS account that will own the new connection.
- Parameters:
ownerAccount
- The AWS account that will own the new connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setConnectionId
public void setConnectionId(String connectionId)
- Parameters:
connectionId
-
-
getConnectionId
public String getConnectionId()
- Returns:
-
withConnectionId
public Connection withConnectionId(String connectionId)
- Parameters:
connectionId
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setConnectionName
public void setConnectionName(String connectionName)
- Parameters:
connectionName
-
-
getConnectionName
public String getConnectionName()
- Returns:
-
withConnectionName
public Connection withConnectionName(String connectionName)
- Parameters:
connectionName
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setConnectionState
public void setConnectionState(String connectionState)
- Parameters:
connectionState
-- See Also:
ConnectionState
-
getConnectionState
public String getConnectionState()
- Returns:
- See Also:
ConnectionState
-
withConnectionState
public Connection withConnectionState(String connectionState)
- Parameters:
connectionState
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ConnectionState
-
setConnectionState
public void setConnectionState(ConnectionState connectionState)
- Parameters:
connectionState
-- See Also:
ConnectionState
-
withConnectionState
public Connection withConnectionState(ConnectionState connectionState)
- Parameters:
connectionState
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ConnectionState
-
setRegion
public void setRegion(String region)
- Parameters:
region
-
-
getRegion
public String getRegion()
- Returns:
-
withRegion
public Connection withRegion(String region)
- Parameters:
region
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setLocation
public void setLocation(String location)
- Parameters:
location
-
-
getLocation
public String getLocation()
- Returns:
-
withLocation
public Connection withLocation(String location)
- Parameters:
location
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setBandwidth
public void setBandwidth(String bandwidth)
Bandwidth of the connection.
Example: 1Gbps (for regular connections), or 500Mbps (for hosted connections)
Default: None
- Parameters:
bandwidth
- Bandwidth of the connection.Example: 1Gbps (for regular connections), or 500Mbps (for hosted connections)
Default: None
-
getBandwidth
public String getBandwidth()
Bandwidth of the connection.
Example: 1Gbps (for regular connections), or 500Mbps (for hosted connections)
Default: None
- Returns:
- Bandwidth of the connection.
Example: 1Gbps (for regular connections), or 500Mbps (for hosted connections)
Default: None
-
withBandwidth
public Connection withBandwidth(String bandwidth)
Bandwidth of the connection.
Example: 1Gbps (for regular connections), or 500Mbps (for hosted connections)
Default: None
- Parameters:
bandwidth
- Bandwidth of the connection.Example: 1Gbps (for regular connections), or 500Mbps (for hosted connections)
Default: None
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVlan
public void setVlan(Integer vlan)
- Parameters:
vlan
-
-
getVlan
public Integer getVlan()
- Returns:
-
withVlan
public Connection withVlan(Integer vlan)
- Parameters:
vlan
-- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPartnerName
public void setPartnerName(String partnerName)
The name of the AWS Direct Connect service provider associated with the connection.
- Parameters:
partnerName
- The name of the AWS Direct Connect service provider associated with the connection.
-
getPartnerName
public String getPartnerName()
The name of the AWS Direct Connect service provider associated with the connection.
- Returns:
- The name of the AWS Direct Connect service provider associated with the connection.
-
withPartnerName
public Connection withPartnerName(String partnerName)
The name of the AWS Direct Connect service provider associated with the connection.
- Parameters:
partnerName
- The name of the AWS Direct Connect service provider associated with the connection.- Returns:
- Returns a reference to this 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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public Connection clone()
-
-