com.amazonaws.services.ec2.model
Class VpcPeeringConnection

java.lang.Object
  extended by com.amazonaws.services.ec2.model.VpcPeeringConnection
All Implemented Interfaces:
java.io.Serializable

public class VpcPeeringConnection
extends java.lang.Object
implements java.io.Serializable

Describes a VPC peering connection.

See Also:
Serialized Form

Constructor Summary
VpcPeeringConnection()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 VpcPeeringConnectionVpcInfo getAccepterVpcInfo()
          The information of the peer VPC.
 java.util.Date getExpirationTime()
          The time that an unaccepted VPC peering connection will expire.
 VpcPeeringConnectionVpcInfo getRequesterVpcInfo()
          The information of the requester VPC.
 VpcPeeringConnectionStateReason getStatus()
          The status of the VPC peering connection.
 java.util.List<Tag> getTags()
          Any tags assigned to the resource.
 java.lang.String getVpcPeeringConnectionId()
          The ID of the VPC peering connection.
 int hashCode()
           
 void setAccepterVpcInfo(VpcPeeringConnectionVpcInfo accepterVpcInfo)
          The information of the peer VPC.
 void setExpirationTime(java.util.Date expirationTime)
          The time that an unaccepted VPC peering connection will expire.
 void setRequesterVpcInfo(VpcPeeringConnectionVpcInfo requesterVpcInfo)
          The information of the requester VPC.
 void setStatus(VpcPeeringConnectionStateReason status)
          The status of the VPC peering connection.
 void setTags(java.util.Collection<Tag> tags)
          Any tags assigned to the resource.
 void setVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
          The ID of the VPC peering connection.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 VpcPeeringConnection withAccepterVpcInfo(VpcPeeringConnectionVpcInfo accepterVpcInfo)
          The information of the peer VPC.
 VpcPeeringConnection withExpirationTime(java.util.Date expirationTime)
          The time that an unaccepted VPC peering connection will expire.
 VpcPeeringConnection withRequesterVpcInfo(VpcPeeringConnectionVpcInfo requesterVpcInfo)
          The information of the requester VPC.
 VpcPeeringConnection withStatus(VpcPeeringConnectionStateReason status)
          The status of the VPC peering connection.
 VpcPeeringConnection withTags(java.util.Collection<Tag> tags)
          Any tags assigned to the resource.
 VpcPeeringConnection withTags(Tag... tags)
          Any tags assigned to the resource.
 VpcPeeringConnection withVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
          The ID of the VPC peering connection.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VpcPeeringConnection

public VpcPeeringConnection()
Method Detail

getAccepterVpcInfo

public VpcPeeringConnectionVpcInfo getAccepterVpcInfo()
The information of the peer VPC.

Returns:
The information of the peer VPC.

setAccepterVpcInfo

public void setAccepterVpcInfo(VpcPeeringConnectionVpcInfo accepterVpcInfo)
The information of the peer VPC.

Parameters:
accepterVpcInfo - The information of the peer VPC.

withAccepterVpcInfo

public VpcPeeringConnection withAccepterVpcInfo(VpcPeeringConnectionVpcInfo accepterVpcInfo)
The information of the peer VPC.

Returns a reference to this object so that method calls can be chained together.

Parameters:
accepterVpcInfo - The information of the peer VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getExpirationTime

public java.util.Date getExpirationTime()
The time that an unaccepted VPC peering connection will expire.

Returns:
The time that an unaccepted VPC peering connection will expire.

setExpirationTime

public void setExpirationTime(java.util.Date expirationTime)
The time that an unaccepted VPC peering connection will expire.

Parameters:
expirationTime - The time that an unaccepted VPC peering connection will expire.

withExpirationTime

public VpcPeeringConnection withExpirationTime(java.util.Date expirationTime)
The time that an unaccepted VPC peering connection will expire.

Returns a reference to this object so that method calls can be chained together.

Parameters:
expirationTime - The time that an unaccepted VPC peering connection will expire.
Returns:
A reference to this updated object so that method calls can be chained together.

getRequesterVpcInfo

public VpcPeeringConnectionVpcInfo getRequesterVpcInfo()
The information of the requester VPC.

Returns:
The information of the requester VPC.

setRequesterVpcInfo

public void setRequesterVpcInfo(VpcPeeringConnectionVpcInfo requesterVpcInfo)
The information of the requester VPC.

Parameters:
requesterVpcInfo - The information of the requester VPC.

withRequesterVpcInfo

public VpcPeeringConnection withRequesterVpcInfo(VpcPeeringConnectionVpcInfo requesterVpcInfo)
The information of the requester VPC.

Returns a reference to this object so that method calls can be chained together.

Parameters:
requesterVpcInfo - The information of the requester VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getStatus

public VpcPeeringConnectionStateReason getStatus()
The status of the VPC peering connection.

Returns:
The status of the VPC peering connection.

setStatus

public void setStatus(VpcPeeringConnectionStateReason status)
The status of the VPC peering connection.

Parameters:
status - The status of the VPC peering connection.

withStatus

public VpcPeeringConnection withStatus(VpcPeeringConnectionStateReason status)
The status of the VPC peering connection.

Returns a reference to this object so that method calls can be chained together.

Parameters:
status - The status of the VPC peering connection.
Returns:
A reference to this updated object so that method calls can be chained together.

getTags

public java.util.List<Tag> getTags()
Any tags assigned to the resource.

Returns:
Any tags assigned to the resource.

setTags

public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the resource.

Parameters:
tags - Any tags assigned to the resource.

withTags

public VpcPeeringConnection withTags(Tag... tags)
Any tags assigned to the resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - Any tags assigned to the resource.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public VpcPeeringConnection withTags(java.util.Collection<Tag> tags)
Any tags assigned to the resource.

Returns a reference to this object so that method calls can be chained together.

Parameters:
tags - Any tags assigned to the resource.
Returns:
A reference to this updated object so that method calls can be chained together.

getVpcPeeringConnectionId

public java.lang.String getVpcPeeringConnectionId()
The ID of the VPC peering connection.

Returns:
The ID of the VPC peering connection.

setVpcPeeringConnectionId

public void setVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection.

Parameters:
vpcPeeringConnectionId - The ID of the VPC peering connection.

withVpcPeeringConnectionId

public VpcPeeringConnection withVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vpcPeeringConnectionId - The ID of the VPC peering connection.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.