Class AllocateHostsRequest

    • Constructor Detail

      • AllocateHostsRequest

        public AllocateHostsRequest()
    • Method Detail

      • 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:
        AutoPlacement
      • 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:
        AutoPlacement
      • 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:
        AutoPlacement
      • 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:
        AutoPlacement
      • 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:
        AutoPlacement
      • 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.
      • 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:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object