public class DescribeRegionsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the output of DescribeRegions.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Region> |
regions
Information about one or more regions.
|
Constructor and Description |
---|
DescribeRegionsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeRegionsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Region> |
getRegions()
Information about one or more regions.
|
int |
hashCode() |
void |
setRegions(java.util.Collection<Region> regions)
Information about one or more regions.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeRegionsResult |
withRegions(java.util.Collection<Region> regions)
Information about one or more regions.
|
DescribeRegionsResult |
withRegions(Region... regions)
Information about one or more regions.
|
private SdkInternalList<Region> regions
Information about one or more regions.
public java.util.List<Region> getRegions()
Information about one or more regions.
public void setRegions(java.util.Collection<Region> regions)
Information about one or more regions.
regions
- Information about one or more regions.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.
regions
- Information about one or more regions.public DescribeRegionsResult withRegions(java.util.Collection<Region> regions)
Information about one or more regions.
regions
- Information about one or more regions.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 DescribeRegionsResult clone()
clone
in class java.lang.Object