Package com.amazonaws.services.ec2.model
Class DescribeVpcPeeringConnectionsResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.DescribeVpcPeeringConnectionsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeVpcPeeringConnectionsResult extends Object implements Serializable, Cloneable
Contains the output of DescribeVpcPeeringConnections.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeVpcPeeringConnectionsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeVpcPeeringConnectionsResult
clone()
boolean
equals(Object obj)
List<VpcPeeringConnection>
getVpcPeeringConnections()
Information about the VPC peering connections.int
hashCode()
void
setVpcPeeringConnections(Collection<VpcPeeringConnection> vpcPeeringConnections)
Information about the VPC peering connections.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeVpcPeeringConnectionsResult
withVpcPeeringConnections(VpcPeeringConnection... vpcPeeringConnections)
Information about the VPC peering connections.DescribeVpcPeeringConnectionsResult
withVpcPeeringConnections(Collection<VpcPeeringConnection> vpcPeeringConnections)
Information about the VPC peering connections.
-
-
-
Method Detail
-
getVpcPeeringConnections
public List<VpcPeeringConnection> getVpcPeeringConnections()
Information about the VPC peering connections.
- Returns:
- Information about the VPC peering connections.
-
setVpcPeeringConnections
public void setVpcPeeringConnections(Collection<VpcPeeringConnection> vpcPeeringConnections)
Information about the VPC peering connections.
- Parameters:
vpcPeeringConnections
- Information about the VPC peering connections.
-
withVpcPeeringConnections
public DescribeVpcPeeringConnectionsResult withVpcPeeringConnections(VpcPeeringConnection... vpcPeeringConnections)
Information about the VPC peering connections.
NOTE: This method appends the values to the existing list (if any). Use
setVpcPeeringConnections(java.util.Collection)
orwithVpcPeeringConnections(java.util.Collection)
if you want to override the existing values.- Parameters:
vpcPeeringConnections
- Information about the VPC peering connections.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withVpcPeeringConnections
public DescribeVpcPeeringConnectionsResult withVpcPeeringConnections(Collection<VpcPeeringConnection> vpcPeeringConnections)
Information about the VPC peering connections.
- Parameters:
vpcPeeringConnections
- Information about the VPC peering connections.- 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 DescribeVpcPeeringConnectionsResult clone()
-
-