Class CreateVpcRequest

java.lang.Object
com.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.ec2.model.CreateVpcRequest
All Implemented Interfaces:
ReadLimitInfo, DryRunSupportedRequest<CreateVpcRequest>, Serializable, Cloneable

public class CreateVpcRequest extends AmazonWebServiceRequest implements Serializable, Cloneable, DryRunSupportedRequest<CreateVpcRequest>

Contains the parameters for CreateVpc.

See Also:
  • Constructor Details

    • CreateVpcRequest

      public CreateVpcRequest()
      Default constructor for CreateVpcRequest object. Callers should use the setter or fluent setter (with...) methods to initialize the object after creating it.
    • CreateVpcRequest

      public CreateVpcRequest(String cidrBlock)
      Constructs a new CreateVpcRequest object. Callers should use the setter or fluent setter (with...) methods to initialize any additional object members.
      Parameters:
      cidrBlock - The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.
  • Method Details

    • setCidrBlock

      public void setCidrBlock(String cidrBlock)

      The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.

      Parameters:
      cidrBlock - The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.
    • getCidrBlock

      public String getCidrBlock()

      The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.

      Returns:
      The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.
    • withCidrBlock

      public CreateVpcRequest withCidrBlock(String cidrBlock)

      The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.

      Parameters:
      cidrBlock - The network range for the VPC, in CIDR notation. For example, 10.0.0.0/16.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setInstanceTenancy

      public void setInstanceTenancy(String instanceTenancy)

      The tenancy options for instances launched into the VPC. For default, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. For dedicated, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy of dedicated or host into a dedicated tenancy VPC.

      Important: The host value cannot be used with this parameter. Use the default or dedicated values only.

      Default: default

      Parameters:
      instanceTenancy - The tenancy options for instances launched into the VPC. For default, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. For dedicated, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy of dedicated or host into a dedicated tenancy VPC.

      Important: The host value cannot be used with this parameter. Use the default or dedicated values only.

      Default: default

      See Also:
    • getInstanceTenancy

      public String getInstanceTenancy()

      The tenancy options for instances launched into the VPC. For default, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. For dedicated, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy of dedicated or host into a dedicated tenancy VPC.

      Important: The host value cannot be used with this parameter. Use the default or dedicated values only.

      Default: default

      Returns:
      The tenancy options for instances launched into the VPC. For default, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. For dedicated, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy of dedicated or host into a dedicated tenancy VPC.

      Important: The host value cannot be used with this parameter. Use the default or dedicated values only.

      Default: default

      See Also:
    • withInstanceTenancy

      public CreateVpcRequest withInstanceTenancy(String instanceTenancy)

      The tenancy options for instances launched into the VPC. For default, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. For dedicated, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy of dedicated or host into a dedicated tenancy VPC.

      Important: The host value cannot be used with this parameter. Use the default or dedicated values only.

      Default: default

      Parameters:
      instanceTenancy - The tenancy options for instances launched into the VPC. For default, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. For dedicated, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy of dedicated or host into a dedicated tenancy VPC.

      Important: The host value cannot be used with this parameter. Use the default or dedicated values only.

      Default: default

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • setInstanceTenancy

      public void setInstanceTenancy(Tenancy instanceTenancy)

      The tenancy options for instances launched into the VPC. For default, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. For dedicated, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy of dedicated or host into a dedicated tenancy VPC.

      Important: The host value cannot be used with this parameter. Use the default or dedicated values only.

      Default: default

      Parameters:
      instanceTenancy - The tenancy options for instances launched into the VPC. For default, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. For dedicated, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy of dedicated or host into a dedicated tenancy VPC.

      Important: The host value cannot be used with this parameter. Use the default or dedicated values only.

      Default: default

      See Also:
    • withInstanceTenancy

      public CreateVpcRequest withInstanceTenancy(Tenancy instanceTenancy)

      The tenancy options for instances launched into the VPC. For default, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. For dedicated, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy of dedicated or host into a dedicated tenancy VPC.

      Important: The host value cannot be used with this parameter. Use the default or dedicated values only.

      Default: default

      Parameters:
      instanceTenancy - The tenancy options for instances launched into the VPC. For default, instances are launched with shared tenancy by default. You can launch instances with any tenancy into a shared tenancy VPC. For dedicated, instances are launched as dedicated tenancy instances by default. You can only launch instances with a tenancy of dedicated or host into a dedicated tenancy VPC.

      Important: The host value cannot be used with this parameter. Use the default or dedicated values only.

      Default: default

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • getDryRunRequest

      public Request<CreateVpcRequest> getDryRunRequest()
      This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.
      Specified by:
      getDryRunRequest in interface DryRunSupportedRequest<CreateVpcRequest>
    • 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 CreateVpcRequest clone()
      Description copied from class: AmazonWebServiceRequest
      Creates a shallow clone of this request. Explicitly does not clone the deep structure of the request object.
      Overrides:
      clone in class AmazonWebServiceRequest
      See Also: