@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeSubnetsResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeSubnetsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSubnetsResult |
clone() |
boolean |
equals(Object obj) |
String |
getNextToken()
The token to include in another request to get the next page of items.
|
List<Subnet> |
getSubnets()
Information about the subnets.
|
int |
hashCode() |
void |
setNextToken(String nextToken)
The token to include in another request to get the next page of items.
|
void |
setSubnets(Collection<Subnet> subnets)
Information about the subnets.
|
String |
toString()
Returns a string representation of this object.
|
DescribeSubnetsResult |
withNextToken(String nextToken)
The token to include in another request to get the next page of items.
|
DescribeSubnetsResult |
withSubnets(Collection<Subnet> subnets)
Information about the subnets.
|
DescribeSubnetsResult |
withSubnets(Subnet... subnets)
Information about the subnets.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<Subnet> getSubnets()
Information about the subnets.
public void setSubnets(Collection<Subnet> subnets)
Information about the subnets.
subnets
- Information about the subnets.public DescribeSubnetsResult withSubnets(Subnet... subnets)
Information about the 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 the subnets.public DescribeSubnetsResult withSubnets(Collection<Subnet> subnets)
Information about the subnets.
subnets
- Information about the subnets.public void setNextToken(String nextToken)
The token to include in another request to get the next page of items. This value is null
when there
are no more items to return.
nextToken
- The token to include in another request to get the next page of items. This value is null
when there are no more items to return.public String getNextToken()
The token to include in another request to get the next page of items. This value is null
when there
are no more items to return.
null
when there are no more items to return.public DescribeSubnetsResult withNextToken(String nextToken)
The token to include in another request to get the next page of items. This value is null
when there
are no more items to return.
nextToken
- The token to include in another request to get the next page of items. This value is null
when there are no more items to return.public String toString()
toString
in class Object
Object.toString()
public DescribeSubnetsResult clone()