@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VpcPeeringConnection extends Object implements Serializable, Cloneable
Describes a VPC peering connection.
Constructor and Description |
---|
VpcPeeringConnection() |
Modifier and Type | Method and 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(Collection<Tag> tags)
Any tags assigned to the resource.
|
VpcPeeringConnection |
withTags(Tag... tags)
Any tags assigned to the resource.
|
VpcPeeringConnection |
withVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection.
|
public void setAccepterVpcInfo(VpcPeeringConnectionVpcInfo accepterVpcInfo)
Information about the accepter VPC. CIDR block information is only returned when describing an active VPC peering connection.
accepterVpcInfo
- Information about the accepter VPC. CIDR block information is only returned when describing an active VPC
peering connection.public VpcPeeringConnectionVpcInfo getAccepterVpcInfo()
Information about the accepter VPC. CIDR block information is only returned when describing an active VPC peering connection.
public VpcPeeringConnection withAccepterVpcInfo(VpcPeeringConnectionVpcInfo accepterVpcInfo)
Information about the accepter VPC. CIDR block information is only returned when describing an active VPC peering connection.
accepterVpcInfo
- Information about the accepter VPC. CIDR block information is only returned when describing an active VPC
peering connection.public void setExpirationTime(Date expirationTime)
The time that an unaccepted VPC peering connection will expire.
expirationTime
- The time that an unaccepted VPC peering connection will expire.public Date getExpirationTime()
The time that an unaccepted VPC peering connection will expire.
public VpcPeeringConnection withExpirationTime(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. CIDR block information is only returned when describing an active VPC peering connection.
requesterVpcInfo
- Information about the requester VPC. CIDR block information is only returned when describing an active VPC
peering connection.public VpcPeeringConnectionVpcInfo getRequesterVpcInfo()
Information about the requester VPC. CIDR block information is only returned when describing an active VPC peering connection.
public VpcPeeringConnection withRequesterVpcInfo(VpcPeeringConnectionVpcInfo requesterVpcInfo)
Information about the requester VPC. CIDR block information is only returned when describing an active VPC peering connection.
requesterVpcInfo
- Information about the requester VPC. CIDR block information is only returned when describing an active VPC
peering connection.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 List<Tag> getTags()
Any tags assigned to the resource.
public void setTags(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(Collection<Tag> tags)
Any tags assigned to the resource.
tags
- Any tags assigned to the resource.public void setVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection.
vpcPeeringConnectionId
- The ID of the VPC peering connection.public String getVpcPeeringConnectionId()
The ID of the VPC peering connection.
public VpcPeeringConnection withVpcPeeringConnectionId(String vpcPeeringConnectionId)
The ID of the VPC peering connection.
vpcPeeringConnectionId
- The ID of the VPC peering connection.public String toString()
toString
in class Object
Object.toString()
public VpcPeeringConnection clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.