public class Vpc
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a VPC.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
cidrBlock
The CIDR block for the VPC.
|
private 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). |
private java.lang.String |
instanceTenancy
The allowed tenancy of instances launched into the VPC.
|
private java.lang.Boolean |
isDefault
Indicates whether the VPC is the default VPC.
|
private java.lang.String |
state
The current state of the VPC.
|
private SdkInternalList<Tag> |
tags
Any tags assigned to the VPC.
|
private java.lang.String |
vpcId
The ID of the VPC.
|
Constructor and Description |
---|
Vpc() |
Modifier and Type | Method and Description |
---|---|
Vpc |
clone() |
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.
|
private java.lang.String vpcId
The ID of the VPC.
private java.lang.String state
The current state of the VPC.
private java.lang.String cidrBlock
The CIDR block for the VPC.
private 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).
private SdkInternalList<Tag> tags
Any tags assigned to the VPC.
private java.lang.String instanceTenancy
The allowed tenancy of instances launched into the VPC.
private java.lang.Boolean isDefault
Indicates whether the VPC is the default VPC.
public void setVpcId(java.lang.String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public java.lang.String getVpcId()
The ID of the VPC.
public Vpc withVpcId(java.lang.String vpcId)
The ID of the VPC.
vpcId
- The ID of the VPC.public void setState(java.lang.String state)
The current state of the VPC.
state
- The current state of the VPC.VpcState
public java.lang.String getState()
The current state of the VPC.
VpcState
public Vpc withState(java.lang.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(java.lang.String cidrBlock)
The CIDR block for the VPC.
cidrBlock
- The CIDR block for the VPC.public java.lang.String getCidrBlock()
The CIDR block for the VPC.
public Vpc withCidrBlock(java.lang.String cidrBlock)
The CIDR block for the VPC.
cidrBlock
- The CIDR block for the VPC.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).
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 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).
default
if the default options are associated
with the VPC).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).
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 java.util.List<Tag> getTags()
Any tags assigned to the VPC.
public void setTags(java.util.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(java.util.Collection<Tag> tags)
Any tags assigned to the VPC.
tags
- Any tags assigned to the VPC.public void setInstanceTenancy(java.lang.String instanceTenancy)
The allowed tenancy of instances launched into the VPC.
instanceTenancy
- The allowed tenancy of instances launched into the VPC.Tenancy
public java.lang.String getInstanceTenancy()
The allowed tenancy of instances launched into the VPC.
Tenancy
public Vpc withInstanceTenancy(java.lang.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(java.lang.Boolean isDefault)
Indicates whether the VPC is the default VPC.
isDefault
- Indicates whether the VPC is the default VPC.public java.lang.Boolean getIsDefault()
Indicates whether the VPC is the default VPC.
public Vpc withIsDefault(java.lang.Boolean isDefault)
Indicates whether the VPC is the default VPC.
isDefault
- Indicates whether the VPC is the default VPC.public java.lang.Boolean isDefault()
Indicates whether the VPC is the default VPC.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Vpc clone()
clone
in class java.lang.Object