Class Vpc
- java.lang.Object
-
- com.amazonaws.services.ec2.model.Vpc
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class Vpc extends Object implements Serializable, Cloneable
Describes a VPC.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Vpc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 (ordefault
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 (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
setState(VpcState state)
The current state of the VPC.void
setState(String 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 (ordefault
if the default options are associated with the VPC).Vpc
withInstanceTenancy(Tenancy instanceTenancy)
The allowed tenancy of instances launched into the VPC.Vpc
withInstanceTenancy(String instanceTenancy)
The allowed tenancy of instances launched into the VPC.Vpc
withIsDefault(Boolean isDefault)
Indicates whether the VPC is the default VPC.Vpc
withState(VpcState state)
The current state of the VPC.Vpc
withState(String state)
The current state of the VPC.Vpc
withTags(Tag... tags)
Any tags assigned to the VPC.Vpc
withTags(Collection<Tag> tags)
Any tags assigned to the VPC.Vpc
withVpcId(String vpcId)
The ID of the VPC.
-
-
-
Method Detail
-
setVpcId
public void setVpcId(String vpcId)
The ID of the VPC.
- Parameters:
vpcId
- The ID of the VPC.
-
getVpcId
public String getVpcId()
The ID of the VPC.
- Returns:
- The ID of the VPC.
-
withVpcId
public Vpc withVpcId(String vpcId)
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
public void setState(String state)
The current state of the VPC.
- Parameters:
state
- The current state of the VPC.- See Also:
VpcState
-
getState
public String getState()
The current state of the VPC.
- Returns:
- The current state of the VPC.
- See Also:
VpcState
-
withState
public Vpc withState(String state)
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:
VpcState
-
setState
public void setState(VpcState state)
The current state of the VPC.
- Parameters:
state
- The current state of the VPC.- See Also:
VpcState
-
withState
public Vpc withState(VpcState state)
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:
VpcState
-
setCidrBlock
public void setCidrBlock(String cidrBlock)
The CIDR block for the VPC.
- Parameters:
cidrBlock
- The CIDR block for the VPC.
-
getCidrBlock
public String getCidrBlock()
The CIDR block for the VPC.
- Returns:
- The CIDR block for the VPC.
-
withCidrBlock
public Vpc withCidrBlock(String cidrBlock)
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
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).- 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
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).- 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
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).- 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
public List<Tag> getTags()
Any tags assigned to the VPC.
- Returns:
- Any tags assigned to the VPC.
-
setTags
public void setTags(Collection<Tag> tags)
Any tags assigned to the VPC.
- Parameters:
tags
- Any tags assigned to the VPC.
-
withTags
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)
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
public Vpc withTags(Collection<Tag> tags)
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
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.- See Also:
Tenancy
-
getInstanceTenancy
public String getInstanceTenancy()
The allowed tenancy of instances launched into the VPC.
- Returns:
- The allowed tenancy of instances launched into the VPC.
- See Also:
Tenancy
-
withInstanceTenancy
public Vpc withInstanceTenancy(String instanceTenancy)
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:
Tenancy
-
setInstanceTenancy
public void setInstanceTenancy(Tenancy instanceTenancy)
The allowed tenancy of instances launched into the VPC.
- Parameters:
instanceTenancy
- The allowed tenancy of instances launched into the VPC.- See Also:
Tenancy
-
withInstanceTenancy
public Vpc withInstanceTenancy(Tenancy instanceTenancy)
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:
Tenancy
-
setIsDefault
public void setIsDefault(Boolean isDefault)
Indicates whether the VPC is the default VPC.
- Parameters:
isDefault
- Indicates whether the VPC is the default VPC.
-
getIsDefault
public Boolean getIsDefault()
Indicates whether the VPC is the default VPC.
- Returns:
- Indicates whether the VPC is the default VPC.
-
withIsDefault
public Vpc withIsDefault(Boolean isDefault)
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
public Boolean isDefault()
Indicates whether the VPC is the default VPC.
- Returns:
- Indicates whether the VPC is the default VPC.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-