Class 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 Detail

      • DescribeLocationsResult

        public DescribeLocationsResult()
    • 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) or withLocations(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 class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object