com.amazonaws.services.ec2.model
Class VpcPeeringConnectionVpcInfo

java.lang.Object
  extended by com.amazonaws.services.ec2.model.VpcPeeringConnectionVpcInfo
All Implemented Interfaces:
java.io.Serializable

public class VpcPeeringConnectionVpcInfo
extends java.lang.Object
implements java.io.Serializable

Describes a VPC in a VPC peering connection.

See Also:
Serialized Form

Constructor Summary
VpcPeeringConnectionVpcInfo()
           
 
Method Summary
 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.
 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 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 withVpcId(java.lang.String vpcId)
          The ID of the VPC.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VpcPeeringConnectionVpcInfo

public VpcPeeringConnectionVpcInfo()
Method Detail

getCidrBlock

public java.lang.String getCidrBlock()
The CIDR block for the VPC.

Returns:
The CIDR block for the VPC.

setCidrBlock

public void setCidrBlock(java.lang.String cidrBlock)
The CIDR block for the VPC.

Parameters:
cidrBlock - The CIDR block for the VPC.

withCidrBlock

public VpcPeeringConnectionVpcInfo withCidrBlock(java.lang.String cidrBlock)
The CIDR block for the VPC.

Returns a reference to this object so that method calls can be chained together.

Parameters:
cidrBlock - The CIDR block for the VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getOwnerId

public java.lang.String getOwnerId()
The AWS account ID of the VPC owner.

Returns:
The AWS account ID of the VPC owner.

setOwnerId

public void setOwnerId(java.lang.String ownerId)
The AWS account ID of the VPC owner.

Parameters:
ownerId - The AWS account ID of the VPC owner.

withOwnerId

public VpcPeeringConnectionVpcInfo withOwnerId(java.lang.String ownerId)
The AWS account ID of the VPC owner.

Returns a reference to this object so that method calls can be chained together.

Parameters:
ownerId - The AWS account ID of the VPC owner.
Returns:
A reference to this updated object so that method calls can be chained together.

getVpcId

public java.lang.String getVpcId()
The ID of the VPC.

Returns:
The ID of the VPC.

setVpcId

public void setVpcId(java.lang.String vpcId)
The ID of the VPC.

Parameters:
vpcId - The ID of the VPC.

withVpcId

public VpcPeeringConnectionVpcInfo withVpcId(java.lang.String vpcId)
The ID of the VPC.

Returns a reference to this object so that method calls can be chained together.

Parameters:
vpcId - The ID of the VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.