public class Vpc extends Object implements Serializable, Cloneable
Describes a VPC.
Constructor and Description |
---|
Vpc() |
Modifier and Type | Method and Description |
---|---|
Vpc |
clone() |
boolean |
equals(Object obj) |
String |
getCidrBlock()
The CIDR block for the VPC.
|
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). |
String |
getInstanceTenancy()
The allowed tenancy of instances launched into the VPC.
|
Boolean |
getIsDefault()
Indicates whether the VPC is the default VPC.
|
String |
getState()
The current state of the VPC.
|
List<Tag> |
getTags()
Any tags assigned to the VPC.
|
String |
getVpcId()
The ID of the VPC.
|
int |
hashCode() |
Boolean |
isDefault()
Indicates whether the VPC is the default VPC.
|
void |
setCidrBlock(String cidrBlock)
The CIDR block for the VPC.
|
void |
setDhcpOptionsId(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(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(Boolean isDefault)
Indicates whether the VPC is the default VPC.
|
void |
setState(String state)
The current state of the VPC.
|
void |
setState(VpcState state)
The current state of the VPC.
|
void |
setTags(Collection<Tag> tags)
Any tags assigned to the VPC.
|
void |
setVpcId(String vpcId)
The ID of the VPC.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Vpc |
withCidrBlock(String cidrBlock)
The CIDR block for the VPC.
|
Vpc |
withDhcpOptionsId(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(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(Boolean isDefault)
Indicates whether the VPC is the default VPC.
|
Vpc |
withState(String state)
The current state of the VPC.
|
Vpc |
withState(VpcState state)
The current state of the VPC.
|
Vpc |
withTags(Collection<Tag> tags)
Any tags assigned to the VPC.
|
Vpc |
withTags(Tag... tags)
Any tags assigned to the VPC.
|
Vpc |
withVpcId(String vpcId)
The ID of the VPC.
|
public void setVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public String getVpcId()
The ID of the VPC.
public Vpc withVpcId(String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public void setState(String state)
The current state of the VPC.
state
- The current state of the VPC.VpcState
public String getState()
The current state of the VPC.
VpcState
public Vpc withState(String state)
The current state of the VPC.
state
- The current state of the VPC.VpcState
public void setState(VpcState state)
The current state of the VPC.
state
- The current state of the VPC.VpcState
public Vpc withState(VpcState state)
The current state of the VPC.
state
- The current state of the VPC.VpcState
public void setCidrBlock(String cidrBlock)
The CIDR block for the VPC.
cidrBlock
- The CIDR block for the VPC.public String getCidrBlock()
The CIDR block for the VPC.
public Vpc withCidrBlock(String cidrBlock)
The CIDR block for the VPC.
cidrBlock
- The CIDR block for the VPC.public void setDhcpOptionsId(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).
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).public 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).
default
if the default options are associated
with the VPC).public Vpc withDhcpOptionsId(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).
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).public List<Tag> getTags()
Any tags assigned to the VPC.
public void setTags(Collection<Tag> tags)
Any tags assigned to the VPC.
tags
- Any tags assigned to the VPC.public Vpc withTags(Tag... tags)
Any tags assigned to the VPC.
NOTE: This method appends the values to the existing list (if
any). Use setTags(java.util.Collection)
or
withTags(java.util.Collection)
if you want to override the
existing values.
tags
- Any tags assigned to the VPC.public Vpc withTags(Collection<Tag> tags)
Any tags assigned to the VPC.
tags
- Any tags assigned to the VPC.public void setInstanceTenancy(String instanceTenancy)
The allowed tenancy of instances launched into the VPC.
instanceTenancy
- The allowed tenancy of instances launched into the VPC.Tenancy
public String getInstanceTenancy()
The allowed tenancy of instances launched into the VPC.
Tenancy
public Vpc withInstanceTenancy(String instanceTenancy)
The allowed tenancy of instances launched into the VPC.
instanceTenancy
- The allowed tenancy of instances launched into the VPC.Tenancy
public void setInstanceTenancy(Tenancy instanceTenancy)
The allowed tenancy of instances launched into the VPC.
instanceTenancy
- The allowed tenancy of instances launched into the VPC.Tenancy
public Vpc withInstanceTenancy(Tenancy instanceTenancy)
The allowed tenancy of instances launched into the VPC.
instanceTenancy
- The allowed tenancy of instances launched into the VPC.Tenancy
public void setIsDefault(Boolean isDefault)
Indicates whether the VPC is the default VPC.
isDefault
- Indicates whether the VPC is the default VPC.public Boolean getIsDefault()
Indicates whether the VPC is the default VPC.
public Vpc withIsDefault(Boolean isDefault)
Indicates whether the VPC is the default VPC.
isDefault
- Indicates whether the VPC is the default VPC.public Boolean isDefault()
Indicates whether the VPC is the default VPC.
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.