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 Vpcclone()booleanequals(Object obj)StringgetCidrBlock()The CIDR block for the VPC.StringgetDhcpOptionsId()The ID of the set of DHCP options you've associated with the VPC (ordefaultif the default options are associated with the VPC).StringgetInstanceTenancy()The allowed tenancy of instances launched into the VPC.BooleangetIsDefault()Indicates whether the VPC is the default VPC.StringgetState()The current state of the VPC.List<Tag>getTags()Any tags assigned to the VPC.StringgetVpcId()The ID of the VPC.inthashCode()BooleanisDefault()Indicates whether the VPC is the default VPC.voidsetCidrBlock(String cidrBlock)The CIDR block for the VPC.voidsetDhcpOptionsId(String dhcpOptionsId)The ID of the set of DHCP options you've associated with the VPC (ordefaultif the default options are associated with the VPC).voidsetInstanceTenancy(Tenancy instanceTenancy)The allowed tenancy of instances launched into the VPC.voidsetInstanceTenancy(String instanceTenancy)The allowed tenancy of instances launched into the VPC.voidsetIsDefault(Boolean isDefault)Indicates whether the VPC is the default VPC.voidsetState(VpcState state)The current state of the VPC.voidsetState(String state)The current state of the VPC.voidsetTags(Collection<Tag> tags)Any tags assigned to the VPC.voidsetVpcId(String vpcId)The ID of the VPC.StringtoString()Returns a string representation of this object; useful for testing and debugging.VpcwithCidrBlock(String cidrBlock)The CIDR block for the VPC.VpcwithDhcpOptionsId(String dhcpOptionsId)The ID of the set of DHCP options you've associated with the VPC (ordefaultif the default options are associated with the VPC).VpcwithInstanceTenancy(Tenancy instanceTenancy)The allowed tenancy of instances launched into the VPC.VpcwithInstanceTenancy(String instanceTenancy)The allowed tenancy of instances launched into the VPC.VpcwithIsDefault(Boolean isDefault)Indicates whether the VPC is the default VPC.VpcwithState(VpcState state)The current state of the VPC.VpcwithState(String state)The current state of the VPC.VpcwithTags(Tag... tags)Any tags assigned to the VPC.VpcwithTags(Collection<Tag> tags)Any tags assigned to the VPC.VpcwithVpcId(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
defaultif the default options are associated with the VPC).- Parameters:
dhcpOptionsId- The ID of the set of DHCP options you've associated with the VPC (ordefaultif 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
defaultif the default options are associated with the VPC).- Returns:
- The ID of the set of DHCP options you've associated with the VPC
(or
defaultif 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
defaultif the default options are associated with the VPC).- Parameters:
dhcpOptionsId- The ID of the set of DHCP options you've associated with the VPC (ordefaultif 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:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
-