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 VpcPeeringConnectionVpcInfo
clone()
boolean
equals(Object obj)
String
getCidrBlock()
The CIDR block for the VPC.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.String
getVpcId()
The ID of the VPC.int
hashCode()
void
setCidrBlock(String cidrBlock)
The CIDR block for the VPC.void
setOwnerId(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(String vpcId)
The ID of the VPC.String
toString()
Returns a string representation of this object; useful for testing and debugging.VpcPeeringConnectionVpcInfo
withCidrBlock(String cidrBlock)
The CIDR block for the VPC.VpcPeeringConnectionVpcInfo
withOwnerId(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(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:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public VpcPeeringConnectionVpcInfo clone()
-
-