Package com.amazonaws.services.ec2.model
Class DescribeInternetGatewaysResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.DescribeInternetGatewaysResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeInternetGatewaysResult extends Object implements Serializable, Cloneable
Contains the output of DescribeInternetGateways.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeInternetGatewaysResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeInternetGatewaysResult
clone()
boolean
equals(Object obj)
List<InternetGateway>
getInternetGateways()
Information about one or more Internet gateways.int
hashCode()
void
setInternetGateways(Collection<InternetGateway> internetGateways)
Information about one or more Internet gateways.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeInternetGatewaysResult
withInternetGateways(InternetGateway... internetGateways)
Information about one or more Internet gateways.DescribeInternetGatewaysResult
withInternetGateways(Collection<InternetGateway> internetGateways)
Information about one or more Internet gateways.
-
-
-
Method Detail
-
getInternetGateways
public List<InternetGateway> getInternetGateways()
Information about one or more Internet gateways.
- Returns:
- Information about one or more Internet gateways.
-
setInternetGateways
public void setInternetGateways(Collection<InternetGateway> internetGateways)
Information about one or more Internet gateways.
- Parameters:
internetGateways
- Information about one or more Internet gateways.
-
withInternetGateways
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)
orwithInternetGateways(java.util.Collection)
if you want to override the existing values.- Parameters:
internetGateways
- Information about one or more Internet gateways.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withInternetGateways
public DescribeInternetGatewaysResult withInternetGateways(Collection<InternetGateway> internetGateways)
Information about one or more Internet gateways.
- Parameters:
internetGateways
- Information about one or more Internet gateways.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeInternetGatewaysResult clone()
-
-