Class DescribeRegionsResult

java.lang.Object
com.amazonaws.services.ec2.model.DescribeRegionsResult
All Implemented Interfaces:
Serializable, Cloneable

public class DescribeRegionsResult extends Object implements Serializable, Cloneable

Contains the output of DescribeRegions.

See Also:
  • Constructor Details

    • DescribeRegionsResult

      public DescribeRegionsResult()
  • Method Details

    • getRegions

      public List<Region> getRegions()

      Information about one or more regions.

      Returns:
      Information about one or more regions.
    • setRegions

      public void setRegions(Collection<Region> regions)

      Information about one or more regions.

      Parameters:
      regions - Information about one or more regions.
    • withRegions

      public DescribeRegionsResult withRegions(Region... regions)

      Information about one or more regions.

      NOTE: This method appends the values to the existing list (if any). Use setRegions(java.util.Collection) or withRegions(java.util.Collection) if you want to override the existing values.

      Parameters:
      regions - Information about one or more regions.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • withRegions

      public DescribeRegionsResult withRegions(Collection<Region> regions)

      Information about one or more regions.

      Parameters:
      regions - Information about one or more regions.
      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:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public DescribeRegionsResult clone()
      Overrides:
      clone in class Object