Did this page help you?

   Yes   No   Tell us about it...

com.amazonaws.services.ec2.model
Class Vpc

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

public class Vpc
extends Object
implements Serializable

The Vpc data type.

See Also:
Serialized Form

Constructor Summary
Vpc()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getCidrBlock()
          Specifies the CIDR block the VPC covers.
 String getDhcpOptionsId()
          Specifies the ID of the set of DHCP options associated with the VPC.
 String getInstanceTenancy()
          The allowed tenancy of instances launched into the VPC.
 Boolean getIsDefault()
           
 String getState()
          Describes the current state of the VPC.
 List<Tag> getTags()
          A list of tags for the VPC.
 String getVpcId()
          Specifies the ID of the VPC.
 int hashCode()
           
 Boolean isDefault()
           
 void setCidrBlock(String cidrBlock)
          Specifies the CIDR block the VPC covers.
 void setDhcpOptionsId(String dhcpOptionsId)
          Specifies the ID of the set of DHCP options associated with the VPC.
 void setInstanceTenancy(String instanceTenancy)
          The allowed tenancy of instances launched into the VPC.
 void setIsDefault(Boolean isDefault)
           
 void setState(String state)
          Describes the current state of the VPC.
 void setTags(Collection<Tag> tags)
          A list of tags for the VPC.
 void setVpcId(String vpcId)
          Specifies the ID of the VPC.
 String toString()
          Returns a string representation of this object; useful for testing and debugging.
 Vpc withCidrBlock(String cidrBlock)
          Specifies the CIDR block the VPC covers.
 Vpc withDhcpOptionsId(String dhcpOptionsId)
          Specifies the ID of the set of DHCP options associated with the VPC.
 Vpc withInstanceTenancy(String instanceTenancy)
          The allowed tenancy of instances launched into the VPC.
 Vpc withIsDefault(Boolean isDefault)
           Returns a reference to this object so that method calls can be chained together.
 Vpc withState(String state)
          Describes the current state of the VPC.
 Vpc withTags(Collection<Tag> tags)
          A list of tags for the VPC.
 Vpc withTags(Tag... tags)
          A list of tags for the VPC.
 Vpc withVpcId(String vpcId)
          Specifies 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 String getVpcId()
Specifies the ID of the VPC.

Returns:
Specifies the ID of the VPC.

setVpcId

public void setVpcId(String vpcId)
Specifies the ID of the VPC.

Parameters:
vpcId - Specifies the ID of the VPC.

withVpcId

public Vpc withVpcId(String vpcId)
Specifies the ID of the VPC.

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

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

getState

public String getState()
Describes the current state of the VPC. The state of the subnet may be either pending or available.

Returns:
Describes the current state of the VPC. The state of the subnet may be either pending or available.

setState

public void setState(String state)
Describes the current state of the VPC. The state of the subnet may be either pending or available.

Parameters:
state - Describes the current state of the VPC. The state of the subnet may be either pending or available.

withState

public Vpc withState(String state)
Describes the current state of the VPC. The state of the subnet may be either pending or available.

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

Parameters:
state - Describes the current state of the VPC. The state of the subnet may be either pending or available.
Returns:
A reference to this updated object so that method calls can be chained together.

getCidrBlock

public String getCidrBlock()
Specifies the CIDR block the VPC covers.

Returns:
Specifies the CIDR block the VPC covers.

setCidrBlock

public void setCidrBlock(String cidrBlock)
Specifies the CIDR block the VPC covers.

Parameters:
cidrBlock - Specifies the CIDR block the VPC covers.

withCidrBlock

public Vpc withCidrBlock(String cidrBlock)
Specifies the CIDR block the VPC covers.

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

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

getDhcpOptionsId

public String getDhcpOptionsId()
Specifies the ID of the set of DHCP options associated with the VPC. Contains a value of default if the default options are associated with the VPC.

Returns:
Specifies the ID of the set of DHCP options associated with the VPC. Contains a value of default if the default options are associated with the VPC.

setDhcpOptionsId

public void setDhcpOptionsId(String dhcpOptionsId)
Specifies the ID of the set of DHCP options associated with the VPC. Contains a value of default if the default options are associated with the VPC.

Parameters:
dhcpOptionsId - Specifies the ID of the set of DHCP options associated with the VPC. Contains a value of default if the default options are associated with the VPC.

withDhcpOptionsId

public Vpc withDhcpOptionsId(String dhcpOptionsId)
Specifies the ID of the set of DHCP options associated with the VPC. Contains a value of 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 - Specifies the ID of the set of DHCP options associated with the VPC. Contains a value of 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 List<Tag> getTags()
A list of tags for the VPC.

Returns:
A list of tags for the VPC.

setTags

public void setTags(Collection<Tag> tags)
A list of tags for the VPC.

Parameters:
tags - A list of tags for the VPC.

withTags

public Vpc withTags(Tag... tags)
A list of tags for the VPC.

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

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

withTags

public Vpc withTags(Collection<Tag> tags)
A list of tags for the VPC.

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

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

getInstanceTenancy

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

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

setInstanceTenancy

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

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

withInstanceTenancy

public Vpc withInstanceTenancy(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.

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.

isDefault

public Boolean isDefault()
Returns:

setIsDefault

public void setIsDefault(Boolean isDefault)
Parameters:
isDefault -

withIsDefault

public Vpc withIsDefault(Boolean isDefault)

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

Parameters:
isDefault -
Returns:
A reference to this updated object so that method calls can be chained together.

getIsDefault

public Boolean getIsDefault()
Returns:

toString

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

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


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