public class VpcPeeringConnection
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a VPC peering connection.
Modifier and Type | Field and Description |
---|---|
private VpcPeeringConnectionVpcInfo |
accepterVpcInfo
Information about the accepter VPC.
|
private java.util.Date |
expirationTime
The time that an unaccepted VPC peering connection will expire.
|
private VpcPeeringConnectionVpcInfo |
requesterVpcInfo
Information about the requester VPC.
|
private VpcPeeringConnectionStateReason |
status
The status of the VPC peering connection.
|
private SdkInternalList<Tag> |
tags
Any tags assigned to the resource.
|
private java.lang.String |
vpcPeeringConnectionId
The ID of the VPC peering connection.
|
Constructor and Description |
---|
VpcPeeringConnection() |
Modifier and Type | Method and Description |
---|---|
VpcPeeringConnection |
clone() |
boolean |
equals(java.lang.Object obj) |
VpcPeeringConnectionVpcInfo |
getAccepterVpcInfo()
Information about the accepter VPC.
|
java.util.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.
|
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)
Information about the accepter VPC.
|
void |
setExpirationTime(java.util.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(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)
Information about the accepter VPC.
|
VpcPeeringConnection |
withExpirationTime(java.util.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(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.
|
private 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
or
pending-acceptance
state.
private java.util.Date expirationTime
The time that an unaccepted VPC peering connection will expire.
private VpcPeeringConnectionVpcInfo requesterVpcInfo
Information about the requester VPC.
private VpcPeeringConnectionStateReason status
The status of the VPC peering connection.
private SdkInternalList<Tag> tags
Any tags assigned to the resource.
private java.lang.String vpcPeeringConnectionId
The ID of the VPC peering connection.
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
or
pending-acceptance
state.
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
or pending-acceptance
state.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
or
pending-acceptance
state.
initiating-request
or
pending-acceptance
state.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
or
pending-acceptance
state.
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
or pending-acceptance
state.public void setExpirationTime(java.util.Date expirationTime)
The time that an unaccepted VPC peering connection will expire.
expirationTime
- The time that an unaccepted VPC peering connection will expire.public java.util.Date getExpirationTime()
The time that an unaccepted VPC peering connection will expire.
public VpcPeeringConnection withExpirationTime(java.util.Date expirationTime)
The time that an unaccepted VPC peering connection will expire.
expirationTime
- The time that an unaccepted VPC peering connection will expire.public void setRequesterVpcInfo(VpcPeeringConnectionVpcInfo requesterVpcInfo)
Information about the requester VPC.
requesterVpcInfo
- Information about the requester VPC.public VpcPeeringConnectionVpcInfo getRequesterVpcInfo()
Information about the requester VPC.
public VpcPeeringConnection withRequesterVpcInfo(VpcPeeringConnectionVpcInfo requesterVpcInfo)
Information about the requester VPC.
requesterVpcInfo
- Information about the requester VPC.public void setStatus(VpcPeeringConnectionStateReason status)
The status of the VPC peering connection.
status
- The status of the VPC peering connection.public VpcPeeringConnectionStateReason getStatus()
The status of the VPC peering connection.
public VpcPeeringConnection withStatus(VpcPeeringConnectionStateReason status)
The status of the VPC peering connection.
status
- The status of the VPC peering connection.public java.util.List<Tag> getTags()
Any tags assigned to the resource.
public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the resource.
tags
- Any tags assigned to the resource.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)
or
withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the resource.public VpcPeeringConnection withTags(java.util.Collection<Tag> tags)
Any tags assigned to the resource.
tags
- Any tags assigned to the resource.public void setVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection.
vpcPeeringConnectionId
- The ID of the VPC peering connection.public java.lang.String getVpcPeeringConnectionId()
The ID of the VPC peering connection.
public VpcPeeringConnection withVpcPeeringConnectionId(java.lang.String vpcPeeringConnectionId)
The ID of the VPC peering connection.
vpcPeeringConnectionId
- The ID of the VPC peering connection.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public VpcPeeringConnection clone()
clone
in class java.lang.Object