Class DescribeLocationsResult
- java.lang.Object
-
- com.amazonaws.services.directconnect.model.DescribeLocationsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeLocationsResult extends Object implements Serializable, 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.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeLocationsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeLocationsResult
clone()
boolean
equals(Object obj)
List<Location>
getLocations()
A list of colocation hubs where network providers have equipment.int
hashCode()
void
setLocations(Collection<Location> locations)
A list of colocation hubs where network providers have equipment.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeLocationsResult
withLocations(Location... locations)
A list of colocation hubs where network providers have equipment.DescribeLocationsResult
withLocations(Collection<Location> locations)
A list of colocation hubs where network providers have equipment.
-
-
-
Method Detail
-
getLocations
public List<Location> getLocations()
A list of colocation hubs where network providers have equipment. Most regions have multiple locations available.
- Returns:
- A list of colocation hubs where network providers have equipment. Most regions have multiple locations available.
-
setLocations
public void setLocations(Collection<Location> locations)
A list of colocation hubs where network providers have equipment. Most regions have multiple locations available.
- Parameters:
locations
- A list of colocation hubs where network providers have equipment. Most regions have multiple locations available.
-
withLocations
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)
orwithLocations(java.util.Collection)
if you want to override the existing values.- Parameters:
locations
- A list of colocation hubs where network providers have equipment. Most regions have multiple locations available.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withLocations
public DescribeLocationsResult withLocations(Collection<Location> locations)
A list of colocation hubs where network providers have equipment. Most regions have multiple locations available.
- Parameters:
locations
- A list of colocation hubs where network providers have equipment. Most regions have multiple locations available.- 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 DescribeLocationsResult clone()
-
-