public class DescribeSubnetsResult extends Object implements Serializable, Cloneable
Constructor and Description |
---|
DescribeSubnetsResult() |
Modifier and Type | Method and Description |
---|---|
DescribeSubnetsResult |
clone() |
boolean |
equals(Object obj) |
List<Subnet> |
getSubnets()
Information about one or more subnets.
|
int |
hashCode() |
void |
setSubnets(Collection<Subnet> subnets)
Information about one or more subnets.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeSubnetsResult |
withSubnets(Collection<Subnet> subnets)
Information about one or more subnets.
|
DescribeSubnetsResult |
withSubnets(Subnet... subnets)
Information about one or more subnets.
|
public List<Subnet> getSubnets()
public void setSubnets(Collection<Subnet> subnets)
subnets
- Information about one or more subnets.public DescribeSubnetsResult withSubnets(Subnet... 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.
Returns a reference to this object so that method calls can be chained together.
subnets
- Information about one or more subnets.public DescribeSubnetsResult withSubnets(Collection<Subnet> subnets)
Returns a reference to this object so that method calls can be chained together.
subnets
- Information about one or more subnets.public String toString()
toString
in class Object
Object.toString()
public DescribeSubnetsResult clone()
Copyright © 2015. All rights reserved.