@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeInternetGatewaysResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
Constructor and Description |
---|
DescribeInternetGatewaysResult() |
Modifier and Type | Method and Description |
---|---|
DescribeInternetGatewaysResult |
clone() |
boolean |
equals(Object obj) |
List<InternetGateway> |
getInternetGateways()
Information about one or more internet gateways.
|
String |
getNextToken()
The token to use to retrieve the next page of results.
|
int |
hashCode() |
void |
setInternetGateways(Collection<InternetGateway> internetGateways)
Information about one or more internet gateways.
|
void |
setNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
String |
toString()
Returns a string representation of this object.
|
DescribeInternetGatewaysResult |
withInternetGateways(Collection<InternetGateway> internetGateways)
Information about one or more internet gateways.
|
DescribeInternetGatewaysResult |
withInternetGateways(InternetGateway... internetGateways)
Information about one or more internet gateways.
|
DescribeInternetGatewaysResult |
withNextToken(String nextToken)
The token to use to retrieve the next page of results.
|
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadata
public List<InternetGateway> getInternetGateways()
Information about one or more internet gateways.
public void setInternetGateways(Collection<InternetGateway> internetGateways)
Information about one or more internet gateways.
internetGateways
- Information about one or more internet gateways.public DescribeInternetGatewaysResult withInternetGateways(InternetGateway... internetGateways)
Information about one or more internet gateways.
NOTE: This method appends the values to the existing list (if any). Use
setInternetGateways(java.util.Collection)
or withInternetGateways(java.util.Collection)
if you
want to override the existing values.
internetGateways
- Information about one or more internet gateways.public DescribeInternetGatewaysResult withInternetGateways(Collection<InternetGateway> internetGateways)
Information about one or more internet gateways.
internetGateways
- Information about one or more internet gateways.public void setNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null
when there are no more
results to return.
nextToken
- The token to use to retrieve the next page of results. This value is null
when there are no
more results to return.public String getNextToken()
The token to use to retrieve the next page of results. This value is null
when there are no more
results to return.
null
when there are no
more results to return.public DescribeInternetGatewaysResult withNextToken(String nextToken)
The token to use to retrieve the next page of results. This value is null
when there are no more
results to return.
nextToken
- The token to use to retrieve the next page of results. This value is null
when there are no
more results to return.public String toString()
toString
in class Object
Object.toString()
public DescribeInternetGatewaysResult clone()