Package com.amazonaws.services.ec2.model
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeRegionsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeRegionsResult
clone()
boolean
equals(Object obj)
List<Region>
getRegions()
Information about one or more regions.int
hashCode()
void
setRegions(Collection<Region> regions)
Information about one or more regions.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeRegionsResult
withRegions(Region... regions)
Information about one or more regions.DescribeRegionsResult
withRegions(Collection<Region> regions)
Information about one or more regions.
-
-
-
Method Detail
-
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)
orwithRegions(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 classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeRegionsResult clone()
-
-