public class Vpc
extends java.lang.Object
implements java.io.Serializable
Describes a VPC.
| Constructor and Description | 
|---|
Vpc()  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
public java.lang.String getVpcId()
public void setVpcId(java.lang.String vpcId)
vpcId - The ID of the VPC.public Vpc withVpcId(java.lang.String vpcId)
Returns a reference to this object so that method calls can be chained together.
vpcId - The ID of the VPC.public java.lang.String getState()
 Constraints:
 Allowed Values: pending, available
VpcStatepublic void setState(java.lang.String state)
 Constraints:
 Allowed Values: pending, available
state - The current state of the VPC.VpcStatepublic Vpc withState(java.lang.String state)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: pending, available
state - The current state of the VPC.VpcStatepublic void setState(VpcState state)
 Constraints:
 Allowed Values: pending, available
state - The current state of the VPC.VpcStatepublic Vpc withState(VpcState state)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: pending, available
state - The current state of the VPC.VpcStatepublic java.lang.String getCidrBlock()
public void setCidrBlock(java.lang.String cidrBlock)
cidrBlock - The CIDR block for the VPC.public Vpc withCidrBlock(java.lang.String cidrBlock)
Returns a reference to this object so that method calls can be chained together.
cidrBlock - The CIDR block for the VPC.public java.lang.String getDhcpOptionsId()
default if the default options are associated with the
 VPC).default if the default options are associated with the
         VPC).public void setDhcpOptionsId(java.lang.String dhcpOptionsId)
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 Vpc withDhcpOptionsId(java.lang.String dhcpOptionsId)
default if the default options are associated with the
 VPC).
 Returns a reference to this object so that method calls can be chained together.
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()
public void setTags(java.util.Collection<Tag> tags)
tags - Any tags assigned to the VPC.public Vpc withTags(Tag... tags)
Returns a reference to this object so that method calls can be chained together.
tags - Any tags assigned to the VPC.public Vpc withTags(java.util.Collection<Tag> tags)
Returns a reference to this object so that method calls can be chained together.
tags - Any tags assigned to the VPC.public java.lang.String getInstanceTenancy()
 Constraints:
 Allowed Values: default, dedicated, host
Tenancypublic void setInstanceTenancy(java.lang.String instanceTenancy)
 Constraints:
 Allowed Values: default, dedicated, host
instanceTenancy - The allowed tenancy of instances launched into the VPC.Tenancypublic Vpc withInstanceTenancy(java.lang.String instanceTenancy)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: default, dedicated, host
instanceTenancy - The allowed tenancy of instances launched into the VPC.Tenancypublic void setInstanceTenancy(Tenancy instanceTenancy)
 Constraints:
 Allowed Values: default, dedicated, host
instanceTenancy - The allowed tenancy of instances launched into the VPC.Tenancypublic Vpc withInstanceTenancy(Tenancy instanceTenancy)
Returns a reference to this object so that method calls can be chained together.
 Constraints:
 Allowed Values: default, dedicated, host
instanceTenancy - The allowed tenancy of instances launched into the VPC.Tenancypublic java.lang.Boolean isDefault()
public void setIsDefault(java.lang.Boolean isDefault)
isDefault - Indicates whether the VPC is the default VPC.public Vpc withIsDefault(java.lang.Boolean isDefault)
Returns a reference to this object so that method calls can be chained together.
isDefault - Indicates whether the VPC is the default VPC.public java.lang.Boolean getIsDefault()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.