Package com.amazonaws.services.ec2.model
Class VpcPeeringConnectionVpcInfo
- java.lang.Object
-
- com.amazonaws.services.ec2.model.VpcPeeringConnectionVpcInfo
-
- All Implemented Interfaces:
Serializable,Cloneable
public class VpcPeeringConnectionVpcInfo extends Object implements Serializable, Cloneable
Describes a VPC in a VPC peering connection.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VpcPeeringConnectionVpcInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VpcPeeringConnectionVpcInfoclone()booleanequals(Object obj)StringgetCidrBlock()The CIDR block for the VPC.StringgetOwnerId()The AWS account ID of the VPC owner.VpcPeeringConnectionOptionsDescriptiongetPeeringOptions()Information about the VPC peering connection options for the accepter or requester VPC.StringgetVpcId()The ID of the VPC.inthashCode()voidsetCidrBlock(String cidrBlock)The CIDR block for the VPC.voidsetOwnerId(String ownerId)The AWS account ID of the VPC owner.voidsetPeeringOptions(VpcPeeringConnectionOptionsDescription peeringOptions)Information about the VPC peering connection options for the accepter or requester VPC.voidsetVpcId(String vpcId)The ID of the VPC.StringtoString()Returns a string representation of this object; useful for testing and debugging.VpcPeeringConnectionVpcInfowithCidrBlock(String cidrBlock)The CIDR block for the VPC.VpcPeeringConnectionVpcInfowithOwnerId(String ownerId)The AWS account ID of the VPC owner.VpcPeeringConnectionVpcInfowithPeeringOptions(VpcPeeringConnectionOptionsDescription peeringOptions)Information about the VPC peering connection options for the accepter or requester VPC.VpcPeeringConnectionVpcInfowithVpcId(String vpcId)The ID of the VPC.
-
-
-
Method Detail
-
setCidrBlock
public void setCidrBlock(String cidrBlock)
The CIDR block for the VPC.
- Parameters:
cidrBlock- The CIDR block for the VPC.
-
getCidrBlock
public String getCidrBlock()
The CIDR block for the VPC.
- Returns:
- The CIDR block for the VPC.
-
withCidrBlock
public VpcPeeringConnectionVpcInfo withCidrBlock(String cidrBlock)
The CIDR block for the VPC.
- Parameters:
cidrBlock- The CIDR block for the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setOwnerId
public void setOwnerId(String ownerId)
The AWS account ID of the VPC owner.
- Parameters:
ownerId- The AWS account ID of the VPC owner.
-
getOwnerId
public String getOwnerId()
The AWS account ID of the VPC owner.
- Returns:
- The AWS account ID of the VPC owner.
-
withOwnerId
public VpcPeeringConnectionVpcInfo withOwnerId(String ownerId)
The AWS account ID of the VPC owner.
- Parameters:
ownerId- The AWS account ID of the VPC owner.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVpcId
public void setVpcId(String vpcId)
The ID of the VPC.
- Parameters:
vpcId- The ID of the VPC.
-
getVpcId
public String getVpcId()
The ID of the VPC.
- Returns:
- The ID of the VPC.
-
withVpcId
public VpcPeeringConnectionVpcInfo withVpcId(String vpcId)
The ID of the VPC.
- Parameters:
vpcId- The ID of the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setPeeringOptions
public void setPeeringOptions(VpcPeeringConnectionOptionsDescription peeringOptions)
Information about the VPC peering connection options for the accepter or requester VPC.
- Parameters:
peeringOptions- Information about the VPC peering connection options for the accepter or requester VPC.
-
getPeeringOptions
public VpcPeeringConnectionOptionsDescription getPeeringOptions()
Information about the VPC peering connection options for the accepter or requester VPC.
- Returns:
- Information about the VPC peering connection options for the accepter or requester VPC.
-
withPeeringOptions
public VpcPeeringConnectionVpcInfo withPeeringOptions(VpcPeeringConnectionOptionsDescription peeringOptions)
Information about the VPC peering connection options for the accepter or requester VPC.
- Parameters:
peeringOptions- Information about the VPC peering connection options for the accepter or requester VPC.- 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VpcPeeringConnectionVpcInfo clone()
-
-