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:
  • Constructor Details

    • Vpc

      public Vpc()
  • Method Details

    • 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:
    • getState

      public String getState()

      The current state of the VPC.

      Returns:
      The current state of the VPC.
      See Also:
    • 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:
    • setState

      public void setState(VpcState state)

      The current state of the VPC.

      Parameters:
      state - The current state of the VPC.
      See Also:
    • 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:
    • 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 (or default 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 (or default 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) or withTags(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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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 class Object
      Returns:
      A string representation of this object.
      See Also:
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • clone

      public Vpc clone()
      Overrides:
      clone in class Object