@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class VpcPeeringConnectionVpcInfo extends Object implements Serializable, Cloneable
Describes a VPC in a VPC peering connection.
Constructor and Description |
---|
VpcPeeringConnectionVpcInfo() |
Modifier and Type | Method and Description |
---|---|
VpcPeeringConnectionVpcInfo |
clone() |
boolean |
equals(Object obj) |
String |
getCidrBlock()
The IPv4 CIDR block for the VPC.
|
List<CidrBlock> |
getCidrBlockSet()
Information about the IPv4 CIDR blocks for the VPC.
|
List<Ipv6CidrBlock> |
getIpv6CidrBlockSet()
The IPv6 CIDR block for the VPC.
|
String |
getOwnerId()
The ID of the Amazon Web Services account that owns the VPC.
|
VpcPeeringConnectionOptionsDescription |
getPeeringOptions()
Information about the VPC peering connection options for the accepter or requester VPC.
|
String |
getRegion()
The Region in which the VPC is located.
|
String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
void |
setCidrBlock(String cidrBlock)
The IPv4 CIDR block for the VPC.
|
void |
setCidrBlockSet(Collection<CidrBlock> cidrBlockSet)
Information about the IPv4 CIDR blocks for the VPC.
|
void |
setIpv6CidrBlockSet(Collection<Ipv6CidrBlock> ipv6CidrBlockSet)
The IPv6 CIDR block for the VPC.
|
void |
setOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the VPC.
|
void |
setPeeringOptions(VpcPeeringConnectionOptionsDescription peeringOptions)
Information about the VPC peering connection options for the accepter or requester VPC.
|
void |
setRegion(String region)
The Region in which the VPC is located.
|
void |
setVpcId(String vpcId)
The ID of the VPC.
|
String |
toString()
Returns a string representation of this object.
|
VpcPeeringConnectionVpcInfo |
withCidrBlock(String cidrBlock)
The IPv4 CIDR block for the VPC.
|
VpcPeeringConnectionVpcInfo |
withCidrBlockSet(CidrBlock... cidrBlockSet)
Information about the IPv4 CIDR blocks for the VPC.
|
VpcPeeringConnectionVpcInfo |
withCidrBlockSet(Collection<CidrBlock> cidrBlockSet)
Information about the IPv4 CIDR blocks for the VPC.
|
VpcPeeringConnectionVpcInfo |
withIpv6CidrBlockSet(Collection<Ipv6CidrBlock> ipv6CidrBlockSet)
The IPv6 CIDR block for the VPC.
|
VpcPeeringConnectionVpcInfo |
withIpv6CidrBlockSet(Ipv6CidrBlock... ipv6CidrBlockSet)
The IPv6 CIDR block for the VPC.
|
VpcPeeringConnectionVpcInfo |
withOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the VPC.
|
VpcPeeringConnectionVpcInfo |
withPeeringOptions(VpcPeeringConnectionOptionsDescription peeringOptions)
Information about the VPC peering connection options for the accepter or requester VPC.
|
VpcPeeringConnectionVpcInfo |
withRegion(String region)
The Region in which the VPC is located.
|
VpcPeeringConnectionVpcInfo |
withVpcId(String vpcId)
The ID of the VPC.
|
public void setCidrBlock(String cidrBlock)
The IPv4 CIDR block for the VPC.
cidrBlock
- The IPv4 CIDR block for the VPC.public String getCidrBlock()
The IPv4 CIDR block for the VPC.
public VpcPeeringConnectionVpcInfo withCidrBlock(String cidrBlock)
The IPv4 CIDR block for the VPC.
cidrBlock
- The IPv4 CIDR block for the VPC.public List<Ipv6CidrBlock> getIpv6CidrBlockSet()
The IPv6 CIDR block for the VPC.
public void setIpv6CidrBlockSet(Collection<Ipv6CidrBlock> ipv6CidrBlockSet)
The IPv6 CIDR block for the VPC.
ipv6CidrBlockSet
- The IPv6 CIDR block for the VPC.public VpcPeeringConnectionVpcInfo withIpv6CidrBlockSet(Ipv6CidrBlock... ipv6CidrBlockSet)
The IPv6 CIDR block for the VPC.
NOTE: This method appends the values to the existing list (if any). Use
setIpv6CidrBlockSet(java.util.Collection)
or withIpv6CidrBlockSet(java.util.Collection)
if you
want to override the existing values.
ipv6CidrBlockSet
- The IPv6 CIDR block for the VPC.public VpcPeeringConnectionVpcInfo withIpv6CidrBlockSet(Collection<Ipv6CidrBlock> ipv6CidrBlockSet)
The IPv6 CIDR block for the VPC.
ipv6CidrBlockSet
- The IPv6 CIDR block for the VPC.public List<CidrBlock> getCidrBlockSet()
Information about the IPv4 CIDR blocks for the VPC.
public void setCidrBlockSet(Collection<CidrBlock> cidrBlockSet)
Information about the IPv4 CIDR blocks for the VPC.
cidrBlockSet
- Information about the IPv4 CIDR blocks for the VPC.public VpcPeeringConnectionVpcInfo withCidrBlockSet(CidrBlock... cidrBlockSet)
Information about the IPv4 CIDR blocks for the VPC.
NOTE: This method appends the values to the existing list (if any). Use
setCidrBlockSet(java.util.Collection)
or withCidrBlockSet(java.util.Collection)
if you want to
override the existing values.
cidrBlockSet
- Information about the IPv4 CIDR blocks for the VPC.public VpcPeeringConnectionVpcInfo withCidrBlockSet(Collection<CidrBlock> cidrBlockSet)
Information about the IPv4 CIDR blocks for the VPC.
cidrBlockSet
- Information about the IPv4 CIDR blocks for the VPC.public void setOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the VPC.
ownerId
- The ID of the Amazon Web Services account that owns the VPC.public String getOwnerId()
The ID of the Amazon Web Services account that owns the VPC.
public VpcPeeringConnectionVpcInfo withOwnerId(String ownerId)
The ID of the Amazon Web Services account that owns the VPC.
ownerId
- The ID of the Amazon Web Services account that owns 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 void setVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public String getVpcId()
The ID of the VPC.
public VpcPeeringConnectionVpcInfo withVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public void setRegion(String region)
The Region in which the VPC is located.
region
- The Region in which the VPC is located.public String getRegion()
The Region in which the VPC is located.
public VpcPeeringConnectionVpcInfo withRegion(String region)
The Region in which the VPC is located.
region
- The Region in which the VPC is located.public String toString()
toString
in class Object
Object.toString()
public VpcPeeringConnectionVpcInfo clone()