public class VpcPeeringConnectionVpcInfo
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a VPC in a VPC peering connection.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cidrBlock
The CIDR block for the VPC.
|
private java.lang.String |
ownerId
The AWS account ID of the VPC owner.
|
private VpcPeeringConnectionOptionsDescription |
peeringOptions
Information about the VPC peering connection options for the accepter or
requester VPC.
|
private java.lang.String |
vpcId
The ID of the VPC.
|
Constructor and Description |
---|
VpcPeeringConnectionVpcInfo() |
Modifier and Type | Method and Description |
---|---|
VpcPeeringConnectionVpcInfo |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCidrBlock()
The CIDR block for the VPC.
|
java.lang.String |
getOwnerId()
The AWS account ID of the VPC owner.
|
VpcPeeringConnectionOptionsDescription |
getPeeringOptions()
Information about the VPC peering connection options for the accepter or
requester VPC.
|
java.lang.String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
void |
setCidrBlock(java.lang.String cidrBlock)
The CIDR block for the VPC.
|
void |
setOwnerId(java.lang.String ownerId)
The AWS account ID of the VPC owner.
|
void |
setPeeringOptions(VpcPeeringConnectionOptionsDescription peeringOptions)
Information about the VPC peering connection options for the accepter or
requester VPC.
|
void |
setVpcId(java.lang.String vpcId)
The ID of the VPC.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
VpcPeeringConnectionVpcInfo |
withCidrBlock(java.lang.String cidrBlock)
The CIDR block for the VPC.
|
VpcPeeringConnectionVpcInfo |
withOwnerId(java.lang.String ownerId)
The AWS account ID of the VPC owner.
|
VpcPeeringConnectionVpcInfo |
withPeeringOptions(VpcPeeringConnectionOptionsDescription peeringOptions)
Information about the VPC peering connection options for the accepter or
requester VPC.
|
VpcPeeringConnectionVpcInfo |
withVpcId(java.lang.String vpcId)
The ID of the VPC.
|
private java.lang.String cidrBlock
The CIDR block for the VPC.
private java.lang.String ownerId
The AWS account ID of the VPC owner.
private java.lang.String vpcId
The ID of the VPC.
private VpcPeeringConnectionOptionsDescription peeringOptions
Information about the VPC peering connection options for the accepter or requester VPC.
public void setCidrBlock(java.lang.String cidrBlock)
The CIDR block for the VPC.
cidrBlock
- The CIDR block for the VPC.public java.lang.String getCidrBlock()
The CIDR block for the VPC.
public VpcPeeringConnectionVpcInfo withCidrBlock(java.lang.String cidrBlock)
The CIDR block for the VPC.
cidrBlock
- The CIDR block for the VPC.public void setOwnerId(java.lang.String ownerId)
The AWS account ID of the VPC owner.
ownerId
- The AWS account ID of the VPC owner.public java.lang.String getOwnerId()
The AWS account ID of the VPC owner.
public VpcPeeringConnectionVpcInfo withOwnerId(java.lang.String ownerId)
The AWS account ID of the VPC owner.
ownerId
- The AWS account ID of the VPC owner.public void setVpcId(java.lang.String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public java.lang.String getVpcId()
The ID of the VPC.
public VpcPeeringConnectionVpcInfo withVpcId(java.lang.String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public void setPeeringOptions(VpcPeeringConnectionOptionsDescription peeringOptions)
Information about the VPC peering connection options for the accepter or requester VPC.
peeringOptions
- Information about the VPC peering connection options for the
accepter or requester VPC.public VpcPeeringConnectionOptionsDescription getPeeringOptions()
Information about the VPC peering connection options for the accepter or requester VPC.
public VpcPeeringConnectionVpcInfo withPeeringOptions(VpcPeeringConnectionOptionsDescription peeringOptions)
Information about the VPC peering connection options for the accepter or requester VPC.
peeringOptions
- Information about the VPC peering connection options for the
accepter or requester VPC.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 VpcPeeringConnectionVpcInfo clone()
clone
in class java.lang.Object