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 VpcPeeringConnection
clone()
boolean
equals(Object obj)
VpcPeeringConnectionVpcInfo
getAccepterVpcInfo()
Information about the accepter VPC.Date
getExpirationTime()
The time that an unaccepted VPC peering connection will expire.VpcPeeringConnectionVpcInfo
getRequesterVpcInfo()
Information about the requester VPC.VpcPeeringConnectionStateReason
getStatus()
The status of the VPC peering connection.List<Tag>
getTags()
Any tags assigned to the resource.String
getVpcPeeringConnectionId()
The ID of the VPC peering connection.int
hashCode()
void
setAccepterVpcInfo(VpcPeeringConnectionVpcInfo accepterVpcInfo)
Information about the accepter VPC.void
setExpirationTime(Date expirationTime)
The time that an unaccepted VPC peering connection will expire.void
setRequesterVpcInfo(VpcPeeringConnectionVpcInfo requesterVpcInfo)
Information about the requester VPC.void
setStatus(VpcPeeringConnectionStateReason status)
The status of the VPC peering connection.void
setTags(Collection<Tag> tags)
Any tags assigned to the resource.void
setVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection.String
toString()
Returns a string representation of this object; useful for testing and debugging.VpcPeeringConnection
withAccepterVpcInfo(VpcPeeringConnectionVpcInfo accepterVpcInfo)
Information about the accepter VPC.VpcPeeringConnection
withExpirationTime(Date expirationTime)
The time that an unaccepted VPC peering connection will expire.VpcPeeringConnection
withRequesterVpcInfo(VpcPeeringConnectionVpcInfo requesterVpcInfo)
Information about the requester VPC.VpcPeeringConnection
withStatus(VpcPeeringConnectionStateReason status)
The status of the VPC peering connection.VpcPeeringConnection
withTags(Tag... tags)
Any tags assigned to the resource.VpcPeeringConnection
withTags(Collection<Tag> tags)
Any tags assigned to the resource.VpcPeeringConnection
withVpcPeeringConnectionId(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-request
orpending-acceptance
state.- 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-request
orpending-acceptance
state.
-
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-request
orpending-acceptance
state.- 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-request
orpending-acceptance
state.
-
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-request
orpending-acceptance
state.- 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-request
orpending-acceptance
state.- 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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VpcPeeringConnection clone()
-
-