public class DescribeLocationsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
A location is a network facility where AWS Direct Connect routers are available to be connected. Generally, these are colocation hubs where many network providers have equipment, and where cross connects can be delivered. Locations include a name and facility code, and must be provided when creating a connection.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Location> |
locations
A list of colocation hubs where network providers have equipment.
|
Constructor and Description |
---|
DescribeLocationsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeLocationsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Location> |
getLocations()
A list of colocation hubs where network providers have equipment.
|
int |
hashCode() |
void |
setLocations(java.util.Collection<Location> locations)
A list of colocation hubs where network providers have equipment.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeLocationsResult |
withLocations(java.util.Collection<Location> locations)
A list of colocation hubs where network providers have equipment.
|
DescribeLocationsResult |
withLocations(Location... locations)
A list of colocation hubs where network providers have equipment.
|
private SdkInternalList<Location> locations
A list of colocation hubs where network providers have equipment. Most regions have multiple locations available.
public java.util.List<Location> getLocations()
A list of colocation hubs where network providers have equipment. Most regions have multiple locations available.
public void setLocations(java.util.Collection<Location> locations)
A list of colocation hubs where network providers have equipment. Most regions have multiple locations available.
locations
- A list of colocation hubs where network providers have equipment.
Most regions have multiple locations available.public DescribeLocationsResult withLocations(Location... locations)
A list of colocation hubs where network providers have equipment. Most regions have multiple locations available.
NOTE: This method appends the values to the existing list (if
any). Use setLocations(java.util.Collection)
or
withLocations(java.util.Collection)
if you want to override the
existing values.
locations
- A list of colocation hubs where network providers have equipment.
Most regions have multiple locations available.public DescribeLocationsResult withLocations(java.util.Collection<Location> locations)
A list of colocation hubs where network providers have equipment. Most regions have multiple locations available.
locations
- A list of colocation hubs where network providers have equipment.
Most regions have multiple locations available.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 DescribeLocationsResult clone()
clone
in class java.lang.Object