Interface SpotPrice.Builder

All Superinterfaces:
Buildable, CopyableBuilder<SpotPrice.Builder,SpotPrice>, SdkBuilder<SpotPrice.Builder,SpotPrice>, SdkPojo
Enclosing class:
SpotPrice

public static interface SpotPrice.Builder extends SdkPojo, CopyableBuilder<SpotPrice.Builder,SpotPrice>
  • Method Details

    • availabilityZone

      SpotPrice.Builder availabilityZone(String availabilityZone)

      The Availability Zone.

      Parameters:
      availabilityZone - The Availability Zone.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceType

      SpotPrice.Builder instanceType(String instanceType)

      The instance type.

      Parameters:
      instanceType - The instance type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • instanceType

      SpotPrice.Builder instanceType(InstanceType instanceType)

      The instance type.

      Parameters:
      instanceType - The instance type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • productDescription

      SpotPrice.Builder productDescription(String productDescription)

      A general description of the AMI.

      Parameters:
      productDescription - A general description of the AMI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • productDescription

      SpotPrice.Builder productDescription(RIProductDescription productDescription)

      A general description of the AMI.

      Parameters:
      productDescription - A general description of the AMI.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • spotPrice

      SpotPrice.Builder spotPrice(String spotPrice)

      The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.

      If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.

      Parameters:
      spotPrice - The maximum price per unit hour that you are willing to pay for a Spot Instance. We do not recommend using this parameter because it can lead to increased interruptions. If you do not specify this parameter, you will pay the current Spot price.

      If you specify a maximum price, your instances will be interrupted more frequently than if you do not specify this parameter.

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

      SpotPrice.Builder timestamp(Instant timestamp)

      The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).

      Parameters:
      timestamp - The date and time the request was created, in UTC format (for example, YYYY-MM-DDTHH:MM:SSZ).
      Returns:
      Returns a reference to this object so that method calls can be chained together.