Class Vpc
- All Implemented Interfaces:
Serializable
,Cloneable
Describes a VPC.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()
boolean
The CIDR block for the VPC.The ID of the set of DHCP options you've associated with the VPC (ordefault
if the default options are associated with the VPC).The allowed tenancy of instances launched into the VPC.Indicates whether the VPC is the default VPC.getState()
The current state of the VPC.getTags()
Any tags assigned to the VPC.getVpcId()
The ID of the VPC.int
hashCode()
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 (ordefault
if the default options are associated with the VPC).void
setInstanceTenancy
(Tenancy instanceTenancy) The allowed tenancy of instances launched into the VPC.void
setInstanceTenancy
(String instanceTenancy) The allowed tenancy of instances launched into the VPC.void
setIsDefault
(Boolean isDefault) Indicates whether the VPC is the default VPC.void
The current state of the VPC.void
The current state of the VPC.void
setTags
(Collection<Tag> tags) Any tags assigned to the VPC.void
The ID of the VPC.toString()
Returns a string representation of this object; useful for testing and debugging.withCidrBlock
(String cidrBlock) The CIDR block for the VPC.withDhcpOptionsId
(String dhcpOptionsId) The ID of the set of DHCP options you've associated with the VPC (ordefault
if the default options are associated with the VPC).withInstanceTenancy
(Tenancy instanceTenancy) The allowed tenancy of instances launched into the VPC.withInstanceTenancy
(String instanceTenancy) The allowed tenancy of instances launched into the VPC.withIsDefault
(Boolean isDefault) Indicates whether the VPC is the default VPC.The current state of the VPC.The current state of the VPC.Any tags assigned to the VPC.withTags
(Collection<Tag> tags) Any tags assigned to the VPC.The ID of the VPC.
-
Constructor Details
-
Vpc
public Vpc()
-
-
Method Details
-
setVpcId
The ID of the VPC.
- Parameters:
vpcId
- The ID of the VPC.
-
getVpcId
The ID of the VPC.
- Returns:
- The ID of the VPC.
-
withVpcId
The ID of the VPC.
- Parameters:
vpcId
- The ID of the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setState
The current state of the VPC.
- Parameters:
state
- The current state of the VPC.- See Also:
-
getState
The current state of the VPC.
- Returns:
- The current state of the VPC.
- See Also:
-
withState
The current state of the VPC.
- Parameters:
state
- The current state of the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setState
The current state of the VPC.
- Parameters:
state
- The current state of the VPC.- See Also:
-
withState
The current state of the VPC.
- Parameters:
state
- The current state of the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setCidrBlock
The CIDR block for the VPC.
- Parameters:
cidrBlock
- The CIDR block for the VPC.
-
getCidrBlock
The CIDR block for the VPC.
- Returns:
- The CIDR block for the VPC.
-
withCidrBlock
The CIDR block for the VPC.
- Parameters:
cidrBlock
- The CIDR block for the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setDhcpOptionsId
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 (ordefault
if the default options are associated with the VPC).
-
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).
-
withDhcpOptionsId
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 (ordefault
if the default options are associated with the VPC).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
getTags
Any tags assigned to the VPC.
- Returns:
- Any tags assigned to the VPC.
-
setTags
Any tags assigned to the VPC.
- Parameters:
tags
- Any tags assigned to the VPC.
-
withTags
Any tags assigned to the VPC.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
orwithTags(java.util.Collection)
if you want to override the existing values.- Parameters:
tags
- Any tags assigned to the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withTags
Any tags assigned to the VPC.
- Parameters:
tags
- Any tags assigned to the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setInstanceTenancy
The allowed tenancy of instances launched into the VPC.
- Parameters:
instanceTenancy
- The allowed tenancy of instances launched into the VPC.- See Also:
-
getInstanceTenancy
The allowed tenancy of instances launched into the VPC.
- Returns:
- The allowed tenancy of instances launched into the VPC.
- See Also:
-
withInstanceTenancy
The allowed tenancy of instances launched into the VPC.
- Parameters:
instanceTenancy
- The allowed tenancy of instances launched into the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setInstanceTenancy
The allowed tenancy of instances launched into the VPC.
- Parameters:
instanceTenancy
- The allowed tenancy of instances launched into the VPC.- See Also:
-
withInstanceTenancy
The allowed tenancy of instances launched into the VPC.
- Parameters:
instanceTenancy
- The allowed tenancy of instances launched into the VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
setIsDefault
Indicates whether the VPC is the default VPC.
- Parameters:
isDefault
- Indicates whether the VPC is the default VPC.
-
getIsDefault
Indicates whether the VPC is the default VPC.
- Returns:
- Indicates whether the VPC is the default VPC.
-
withIsDefault
Indicates whether the VPC is the default VPC.
- Parameters:
isDefault
- Indicates whether the VPC is the default VPC.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isDefault
Indicates whether the VPC is the default VPC.
- Returns:
- Indicates whether the VPC is the default VPC.
-
toString
Returns a string representation of this object; useful for testing and debugging. -
equals
-
hashCode
public int hashCode() -
clone
-