public class DescribeSubnetsResult
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Contains the output of DescribeSubnets.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Subnet> |
subnets
Information about one or more subnets.
|
Constructor and Description |
---|
DescribeSubnetsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSubnetsResult |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.List<Subnet> |
getSubnets()
Information about one or more subnets.
|
int |
hashCode() |
void |
setSubnets(java.util.Collection<Subnet> subnets)
Information about one or more subnets.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSubnetsResult |
withSubnets(java.util.Collection<Subnet> subnets)
Information about one or more subnets.
|
DescribeSubnetsResult |
withSubnets(Subnet... subnets)
Information about one or more subnets.
|
private SdkInternalList<Subnet> subnets
Information about one or more subnets.
public java.util.List<Subnet> getSubnets()
Information about one or more subnets.
public void setSubnets(java.util.Collection<Subnet> subnets)
Information about one or more subnets.
subnets
- Information about one or more subnets.public DescribeSubnetsResult withSubnets(Subnet... subnets)
Information about one or more subnets.
NOTE: This method appends the values to the existing list (if
any). Use setSubnets(java.util.Collection)
or
withSubnets(java.util.Collection)
if you want to override the
existing values.
subnets
- Information about one or more subnets.public DescribeSubnetsResult withSubnets(java.util.Collection<Subnet> subnets)
Information about one or more subnets.
subnets
- Information about one or more subnets.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 DescribeSubnetsResult clone()
clone
in class java.lang.Object