Interface SpotMarketOptions.Builder

  • Method Details

    • blockDurationMinutes

      SpotMarketOptions.Builder blockDurationMinutes(Integer blockDurationMinutes)

      Duration of spot instance block reservation.

      Parameters:
      blockDurationMinutes - Duration of spot instance block reservation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceInterruptionBehavior

      SpotMarketOptions.Builder instanceInterruptionBehavior(String instanceInterruptionBehavior)

      Specifies behavior when spot instance is interrupted.

      Parameters:
      instanceInterruptionBehavior - Specifies behavior when spot instance is interrupted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • instanceInterruptionBehavior

      SpotMarketOptions.Builder instanceInterruptionBehavior(InstanceInterruptionBehaviorEnum instanceInterruptionBehavior)

      Specifies behavior when spot instance is interrupted.

      Parameters:
      instanceInterruptionBehavior - Specifies behavior when spot instance is interrupted.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • maxPrice

      SpotMarketOptions.Builder maxPrice(String maxPrice)

      Maximum hourly price for spot instance.

      Parameters:
      maxPrice - Maximum hourly price for spot instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • spotInstanceType

      SpotMarketOptions.Builder spotInstanceType(String spotInstanceType)

      Defines the type of spot instance request.

      Parameters:
      spotInstanceType - Defines the type of spot instance request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • spotInstanceType

      SpotMarketOptions.Builder spotInstanceType(SpotInstanceTypeEnum spotInstanceType)

      Defines the type of spot instance request.

      Parameters:
      spotInstanceType - Defines the type of spot instance request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • validUntilUtc

      SpotMarketOptions.Builder validUntilUtc(Instant validUntilUtc)

      Timestamp until which spot instance request is valid.

      Parameters:
      validUntilUtc - Timestamp until which spot instance request is valid.
      Returns:
      Returns a reference to this object so that method calls can be chained together.