Class VpcPeeringConnection
- java.lang.Object
-
- com.amazonaws.services.ec2.model.VpcPeeringConnection
-
- All Implemented Interfaces:
Serializable,Cloneable
public class VpcPeeringConnection extends Object implements Serializable, Cloneable
Describes a VPC peering connection.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VpcPeeringConnection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VpcPeeringConnectionclone()booleanequals(Object obj)VpcPeeringConnectionVpcInfogetAccepterVpcInfo()Information about the accepter VPC.DategetExpirationTime()The time that an unaccepted VPC peering connection will expire.VpcPeeringConnectionVpcInfogetRequesterVpcInfo()Information about the requester VPC.VpcPeeringConnectionStateReasongetStatus()The status of the VPC peering connection.List<Tag>getTags()Any tags assigned to the resource.StringgetVpcPeeringConnectionId()The ID of the VPC peering connection.inthashCode()voidsetAccepterVpcInfo(VpcPeeringConnectionVpcInfo accepterVpcInfo)Information about the accepter VPC.voidsetExpirationTime(Date expirationTime)The time that an unaccepted VPC peering connection will expire.voidsetRequesterVpcInfo(VpcPeeringConnectionVpcInfo requesterVpcInfo)Information about the requester VPC.voidsetStatus(VpcPeeringConnectionStateReason status)The status of the VPC peering connection.voidsetTags(Collection<Tag> tags)Any tags assigned to the resource.voidsetVpcPeeringConnectionId(String vpcPeeringConnectionId)The ID of the VPC peering connection.StringtoString()Returns a string representation of this object; useful for testing and debugging.VpcPeeringConnectionwithAccepterVpcInfo(VpcPeeringConnectionVpcInfo accepterVpcInfo)Information about the accepter VPC.VpcPeeringConnectionwithExpirationTime(Date expirationTime)The time that an unaccepted VPC peering connection will expire.VpcPeeringConnectionwithRequesterVpcInfo(VpcPeeringConnectionVpcInfo requesterVpcInfo)Information about the requester VPC.VpcPeeringConnectionwithStatus(VpcPeeringConnectionStateReason status)The status of the VPC peering connection.VpcPeeringConnectionwithTags(Tag... tags)Any tags assigned to the resource.VpcPeeringConnectionwithTags(Collection<Tag> tags)Any tags assigned to the resource.VpcPeeringConnectionwithVpcPeeringConnectionId(String vpcPeeringConnectionId)The ID of the VPC peering connection.
-
-
-
Method Detail
-
setAccepterVpcInfo
public void setAccepterVpcInfo(VpcPeeringConnectionVpcInfo accepterVpcInfo)
Information about the accepter VPC. CIDR block information is not returned when creating a VPC peering connection, or when describing a VPC peering connection that's in the
initiating-requestorpending-acceptancestate.- Parameters:
accepterVpcInfo- Information about the accepter VPC. CIDR block information is not returned when creating a VPC peering connection, or when describing a VPC peering connection that's in theinitiating-requestorpending-acceptancestate.
-
getAccepterVpcInfo
public VpcPeeringConnectionVpcInfo getAccepterVpcInfo()
Information about the accepter VPC. CIDR block information is not returned when creating a VPC peering connection, or when describing a VPC peering connection that's in the
initiating-requestorpending-acceptancestate.- Returns:
- Information about the accepter VPC. CIDR block information is not
returned when creating a VPC peering connection, or when
describing a VPC peering connection that's in the
initiating-requestorpending-acceptancestate.
-
withAccepterVpcInfo
public VpcPeeringConnection withAccepterVpcInfo(VpcPeeringConnectionVpcInfo accepterVpcInfo)
Information about the accepter VPC. CIDR block information is not returned when creating a VPC peering connection, or when describing a VPC peering connection that's in the
initiating-requestorpending-acceptancestate.- Parameters:
accepterVpcInfo- Information about the accepter VPC. CIDR block information is not returned when creating a VPC peering connection, or when describing a VPC peering connection that's in theinitiating-requestorpending-acceptancestate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setExpirationTime
public void setExpirationTime(Date expirationTime)
The time that an unaccepted VPC peering connection will expire.
- Parameters:
expirationTime- The time that an unaccepted VPC peering connection will expire.
-
getExpirationTime
public Date getExpirationTime()
The time that an unaccepted VPC peering connection will expire.
- Returns:
- The time that an unaccepted VPC peering connection will expire.
-
withExpirationTime
public VpcPeeringConnection withExpirationTime(Date expirationTime)
The time that an unaccepted VPC peering connection will expire.
- Parameters:
expirationTime- The time that an unaccepted VPC peering connection will expire.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setRequesterVpcInfo
public void setRequesterVpcInfo(VpcPeeringConnectionVpcInfo requesterVpcInfo)
Information about the requester VPC.
- Parameters:
requesterVpcInfo- Information about the requester VPC.
-
getRequesterVpcInfo
public VpcPeeringConnectionVpcInfo getRequesterVpcInfo()
Information about the requester VPC.
- Returns:
- Information about the requester VPC.
-
withRequesterVpcInfo
public VpcPeeringConnection withRequesterVpcInfo(VpcPeeringConnectionVpcInfo requesterVpcInfo)
Information about the requester VPC.
- Parameters:
requesterVpcInfo- Information about the requester VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setStatus
public void setStatus(VpcPeeringConnectionStateReason status)
The status of the VPC peering connection.
- Parameters:
status- The status of the VPC peering connection.
-
getStatus
public VpcPeeringConnectionStateReason getStatus()
The status of the VPC peering connection.
- Returns:
- The status of the VPC peering connection.
-
withStatus
public VpcPeeringConnection withStatus(VpcPeeringConnectionStateReason status)
The status of the VPC peering connection.
- Parameters:
status- The status of the VPC peering connection.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
public List<Tag> getTags()
Any tags assigned to the resource.
- Returns:
- Any tags assigned to the resource.
-
setTags
public void setTags(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.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)orwithTags(java.util.Collection)if you want to override the existing values.- Parameters:
tags- Any tags assigned to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
public VpcPeeringConnection withTags(Collection<Tag> tags)
Any tags assigned to the resource.
- Parameters:
tags- Any tags assigned to the resource.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcPeeringConnectionId
public void setVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection.
- Parameters:
vpcPeeringConnectionId- The ID of the VPC peering connection.
-
getVpcPeeringConnectionId
public String getVpcPeeringConnectionId()
The ID of the VPC peering connection.
- Returns:
- The ID of the VPC peering connection.
-
withVpcPeeringConnectionId
public VpcPeeringConnection withVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection.
- Parameters:
vpcPeeringConnectionId- The ID of the VPC peering connection.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VpcPeeringConnection clone()
-
-