com.amazonaws.services.ec2.model
Class Vpc

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

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

Describes a VPC.

See Also:
Serialized Form

Constructor Summary
Vpc()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getCidrBlock()
          The CIDR block for the VPC.
 java.lang.String getDhcpOptionsId()
          The ID of the set of DHCP options you've associated with the VPC (or default if the default options are associated with the VPC).
 java.lang.String getInstanceTenancy()
          The allowed tenancy of instances launched into the VPC.
 java.lang.Boolean getIsDefault()
          Indicates whether the VPC is the default VPC.
 java.lang.String getState()
          The current state of the VPC.
 java.util.List<Tag> getTags()
          Any tags assigned to the VPC.
 java.lang.String getVpcId()
          The ID of the VPC.
 int hashCode()
           
 java.lang.Boolean isDefault()
          Indicates whether the VPC is the default VPC.
 void setCidrBlock(java.lang.String cidrBlock)
          The CIDR block for the VPC.
 void setDhcpOptionsId(java.lang.String dhcpOptionsId)
          The ID of the set of DHCP options you've associated with the VPC (or default if the default options are associated with the VPC).
 void setInstanceTenancy(java.lang.String instanceTenancy)
          The allowed tenancy of instances launched into the VPC.
 void setInstanceTenancy(Tenancy instanceTenancy)
          The allowed tenancy of instances launched into the VPC.
 void setIsDefault(java.lang.Boolean isDefault)
          Indicates whether the VPC is the default VPC.
 void setState(java.lang.String state)
          The current state of the VPC.
 void setState(VpcState state)
          The current state of the VPC.
 void setTags(java.util.Collection<Tag> tags)
          Any tags assigned to the 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.
 Vpc withCidrBlock(java.lang.String cidrBlock)
          The CIDR block for the VPC.
 Vpc withDhcpOptionsId(java.lang.String dhcpOptionsId)
          The ID of the set of DHCP options you've associated with the VPC (or default if the default options are associated with the VPC).
 Vpc withInstanceTenancy(java.lang.String instanceTenancy)
          The allowed tenancy of instances launched into the VPC.
 Vpc withInstanceTenancy(Tenancy instanceTenancy)
          The allowed tenancy of instances launched into the VPC.
 Vpc withIsDefault(java.lang.Boolean isDefault)
          Indicates whether the VPC is the default VPC.
 Vpc withState(java.lang.String state)
          The current state of the VPC.
 Vpc withState(VpcState state)
          The current state of the VPC.
 Vpc withTags(java.util.Collection<Tag> tags)
          Any tags assigned to the VPC.
 Vpc withTags(Tag... tags)
          Any tags assigned to the VPC.
 Vpc 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

Vpc

public Vpc()
Method Detail

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 Vpc 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.

getState

public java.lang.String getState()
The current state of the VPC.

Constraints:
Allowed Values: pending, available

Returns:
The current state of the VPC.
See Also:
VpcState

setState

public void setState(java.lang.String state)
The current state of the VPC.

Constraints:
Allowed Values: pending, available

Parameters:
state - The current state of the VPC.
See Also:
VpcState

withState

public Vpc withState(java.lang.String state)
The current state of the VPC.

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

Constraints:
Allowed Values: pending, available

Parameters:
state - The current state of the VPC.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VpcState

setState

public void setState(VpcState state)
The current state of the VPC.

Constraints:
Allowed Values: pending, available

Parameters:
state - The current state of the VPC.
See Also:
VpcState

withState

public Vpc withState(VpcState state)
The current state of the VPC.

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

Constraints:
Allowed Values: pending, available

Parameters:
state - The current state of the VPC.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
VpcState

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 Vpc 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.

getDhcpOptionsId

public java.lang.String getDhcpOptionsId()
The ID of the set of DHCP options you've associated with the VPC (or default if the default options are associated with the VPC).

Returns:
The ID of the set of DHCP options you've associated with the VPC (or default if the default options are associated with the VPC).

setDhcpOptionsId

public void setDhcpOptionsId(java.lang.String dhcpOptionsId)
The ID of the set of DHCP options you've associated with the VPC (or default if the default options are associated with the VPC).

Parameters:
dhcpOptionsId - The ID of the set of DHCP options you've associated with the VPC (or default if the default options are associated with the VPC).

withDhcpOptionsId

public Vpc withDhcpOptionsId(java.lang.String dhcpOptionsId)
The ID of the set of DHCP options you've associated with the VPC (or default if the default options are associated with the VPC).

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

Parameters:
dhcpOptionsId - The ID of the set of DHCP options you've associated with the VPC (or default if the default options are associated with the VPC).
Returns:
A reference to this updated object so that method calls can be chained together.

getTags

public java.util.List<Tag> getTags()
Any tags assigned to the VPC.

Returns:
Any tags assigned to the VPC.

setTags

public void setTags(java.util.Collection<Tag> tags)
Any tags assigned to the VPC.

Parameters:
tags - Any tags assigned to the VPC.

withTags

public Vpc withTags(Tag... tags)
Any tags assigned to the VPC.

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

Parameters:
tags - Any tags assigned to the VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

withTags

public Vpc withTags(java.util.Collection<Tag> tags)
Any tags assigned to the VPC.

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

Parameters:
tags - Any tags assigned to the VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getInstanceTenancy

public java.lang.String getInstanceTenancy()
The allowed tenancy of instances launched into the VPC.

Constraints:
Allowed Values: default, dedicated

Returns:
The allowed tenancy of instances launched into the VPC.
See Also:
Tenancy

setInstanceTenancy

public void setInstanceTenancy(java.lang.String instanceTenancy)
The allowed tenancy of instances launched into the VPC.

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy - The allowed tenancy of instances launched into the VPC.
See Also:
Tenancy

withInstanceTenancy

public Vpc withInstanceTenancy(java.lang.String instanceTenancy)
The allowed tenancy of instances launched into the VPC.

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

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy - The allowed tenancy of instances launched into the VPC.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
Tenancy

setInstanceTenancy

public void setInstanceTenancy(Tenancy instanceTenancy)
The allowed tenancy of instances launched into the VPC.

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy - The allowed tenancy of instances launched into the VPC.
See Also:
Tenancy

withInstanceTenancy

public Vpc withInstanceTenancy(Tenancy instanceTenancy)
The allowed tenancy of instances launched into the VPC.

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

Constraints:
Allowed Values: default, dedicated

Parameters:
instanceTenancy - The allowed tenancy of instances launched into the VPC.
Returns:
A reference to this updated object so that method calls can be chained together.
See Also:
Tenancy

isDefault

public java.lang.Boolean isDefault()
Indicates whether the VPC is the default VPC.

Returns:
Indicates whether the VPC is the default VPC.

setIsDefault

public void setIsDefault(java.lang.Boolean isDefault)
Indicates whether the VPC is the default VPC.

Parameters:
isDefault - Indicates whether the VPC is the default VPC.

withIsDefault

public Vpc withIsDefault(java.lang.Boolean isDefault)
Indicates whether the VPC is the default VPC.

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

Parameters:
isDefault - Indicates whether the VPC is the default VPC.
Returns:
A reference to this updated object so that method calls can be chained together.

getIsDefault

public java.lang.Boolean getIsDefault()
Indicates whether the VPC is the default VPC.

Returns:
Indicates whether the VPC is the default VPC.

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.