public class Location
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
An AWS Direct Connect location where connections and interconnects can be requested.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
locationCode
The code used to indicate the AWS Direct Connect location.
|
private java.lang.String |
locationName
The name of the AWS Direct Connect location.
|
Constructor and Description |
---|
Location() |
Modifier and Type | Method and Description |
---|---|
Location |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getLocationCode()
The code used to indicate the AWS Direct Connect location.
|
java.lang.String |
getLocationName()
The name of the AWS Direct Connect location.
|
int |
hashCode() |
void |
setLocationCode(java.lang.String locationCode)
The code used to indicate the AWS Direct Connect location.
|
void |
setLocationName(java.lang.String locationName)
The name of the AWS Direct Connect location.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Location |
withLocationCode(java.lang.String locationCode)
The code used to indicate the AWS Direct Connect location.
|
Location |
withLocationName(java.lang.String locationName)
The name of the AWS Direct Connect location.
|
private java.lang.String locationCode
The code used to indicate the AWS Direct Connect location.
private java.lang.String locationName
The name of the AWS Direct Connect location. The name includes the colocation partner name and the physical site of the lit building.
public void setLocationCode(java.lang.String locationCode)
The code used to indicate the AWS Direct Connect location.
locationCode
- The code used to indicate the AWS Direct Connect location.public java.lang.String getLocationCode()
The code used to indicate the AWS Direct Connect location.
public Location withLocationCode(java.lang.String locationCode)
The code used to indicate the AWS Direct Connect location.
locationCode
- The code used to indicate the AWS Direct Connect location.public void setLocationName(java.lang.String locationName)
The name of the AWS Direct Connect location. The name includes the colocation partner name and the physical site of the lit building.
locationName
- The name of the AWS Direct Connect location. The name includes the
colocation partner name and the physical site of the lit building.public java.lang.String getLocationName()
The name of the AWS Direct Connect location. The name includes the colocation partner name and the physical site of the lit building.
public Location withLocationName(java.lang.String locationName)
The name of the AWS Direct Connect location. The name includes the colocation partner name and the physical site of the lit building.
locationName
- The name of the AWS Direct Connect location. The name includes the
colocation partner name and the physical site of the lit building.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Location clone()
clone
in class java.lang.Object