Class AllocateHostsRequest

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

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

Contains the parameters for AllocateHosts.

See Also:
  • Constructor Details

    • AllocateHostsRequest

      public AllocateHostsRequest()
  • Method Details

    • setAutoPlacement

      public void setAutoPlacement(String autoPlacement)

      This is enabled by default. This property allows instances to be automatically placed onto available Dedicated hosts, when you are launching instances without specifying a host ID.

      Default: Enabled

      Parameters:
      autoPlacement - This is enabled by default. This property allows instances to be automatically placed onto available Dedicated hosts, when you are launching instances without specifying a host ID.

      Default: Enabled

      See Also:
    • getAutoPlacement

      public String getAutoPlacement()

      This is enabled by default. This property allows instances to be automatically placed onto available Dedicated hosts, when you are launching instances without specifying a host ID.

      Default: Enabled

      Returns:
      This is enabled by default. This property allows instances to be automatically placed onto available Dedicated hosts, when you are launching instances without specifying a host ID.

      Default: Enabled

      See Also:
    • withAutoPlacement

      public AllocateHostsRequest withAutoPlacement(String autoPlacement)

      This is enabled by default. This property allows instances to be automatically placed onto available Dedicated hosts, when you are launching instances without specifying a host ID.

      Default: Enabled

      Parameters:
      autoPlacement - This is enabled by default. This property allows instances to be automatically placed onto available Dedicated hosts, when you are launching instances without specifying a host ID.

      Default: Enabled

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

      public void setAutoPlacement(AutoPlacement autoPlacement)

      This is enabled by default. This property allows instances to be automatically placed onto available Dedicated hosts, when you are launching instances without specifying a host ID.

      Default: Enabled

      Parameters:
      autoPlacement - This is enabled by default. This property allows instances to be automatically placed onto available Dedicated hosts, when you are launching instances without specifying a host ID.

      Default: Enabled

      See Also:
    • withAutoPlacement

      public AllocateHostsRequest withAutoPlacement(AutoPlacement autoPlacement)

      This is enabled by default. This property allows instances to be automatically placed onto available Dedicated hosts, when you are launching instances without specifying a host ID.

      Default: Enabled

      Parameters:
      autoPlacement - This is enabled by default. This property allows instances to be automatically placed onto available Dedicated hosts, when you are launching instances without specifying a host ID.

      Default: Enabled

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

      public void setClientToken(String clientToken)

      Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

      Parameters:
      clientToken - Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.
    • getClientToken

      public String getClientToken()

      Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

      Returns:
      Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.
    • withClientToken

      public AllocateHostsRequest withClientToken(String clientToken)

      Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.

      Parameters:
      clientToken - Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the Amazon Elastic Compute Cloud User Guide.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setInstanceType

      public void setInstanceType(String instanceType)

      Specify the instance type that you want your Dedicated hosts to be configured for. When you specify the instance type, that is the only instance type that you can launch onto that host.

      Parameters:
      instanceType - Specify the instance type that you want your Dedicated hosts to be configured for. When you specify the instance type, that is the only instance type that you can launch onto that host.
    • getInstanceType

      public String getInstanceType()

      Specify the instance type that you want your Dedicated hosts to be configured for. When you specify the instance type, that is the only instance type that you can launch onto that host.

      Returns:
      Specify the instance type that you want your Dedicated hosts to be configured for. When you specify the instance type, that is the only instance type that you can launch onto that host.
    • withInstanceType

      public AllocateHostsRequest withInstanceType(String instanceType)

      Specify the instance type that you want your Dedicated hosts to be configured for. When you specify the instance type, that is the only instance type that you can launch onto that host.

      Parameters:
      instanceType - Specify the instance type that you want your Dedicated hosts to be configured for. When you specify the instance type, that is the only instance type that you can launch onto that host.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setQuantity

      public void setQuantity(Integer quantity)

      The number of Dedicated hosts you want to allocate to your account with these parameters.

      Parameters:
      quantity - The number of Dedicated hosts you want to allocate to your account with these parameters.
    • getQuantity

      public Integer getQuantity()

      The number of Dedicated hosts you want to allocate to your account with these parameters.

      Returns:
      The number of Dedicated hosts you want to allocate to your account with these parameters.
    • withQuantity

      public AllocateHostsRequest withQuantity(Integer quantity)

      The number of Dedicated hosts you want to allocate to your account with these parameters.

      Parameters:
      quantity - The number of Dedicated hosts you want to allocate to your account with these parameters.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • setAvailabilityZone

      public void setAvailabilityZone(String availabilityZone)

      The Availability Zone for the Dedicated hosts.

      Parameters:
      availabilityZone - The Availability Zone for the Dedicated hosts.
    • getAvailabilityZone

      public String getAvailabilityZone()

      The Availability Zone for the Dedicated hosts.

      Returns:
      The Availability Zone for the Dedicated hosts.
    • withAvailabilityZone

      public AllocateHostsRequest withAvailabilityZone(String availabilityZone)

      The Availability Zone for the Dedicated hosts.

      Parameters:
      availabilityZone - The Availability Zone for the Dedicated hosts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • getDryRunRequest

      public Request<AllocateHostsRequest> 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<AllocateHostsRequest>
    • 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 AllocateHostsRequest 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: