Interface ScheduledInstanceAvailability.Builder

  • Method Details

    • availabilityZone

      ScheduledInstanceAvailability.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.
    • availableInstanceCount

      ScheduledInstanceAvailability.Builder availableInstanceCount(Integer availableInstanceCount)

      The number of available instances.

      Parameters:
      availableInstanceCount - The number of available instances.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • firstSlotStartTime

      ScheduledInstanceAvailability.Builder firstSlotStartTime(Instant firstSlotStartTime)

      The time period for the first schedule to start.

      Parameters:
      firstSlotStartTime - The time period for the first schedule to start.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hourlyPrice

      The hourly price for a single instance.

      Parameters:
      hourlyPrice - The hourly price for a single instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • instanceType

      ScheduledInstanceAvailability.Builder instanceType(String instanceType)

      The instance type. You can specify one of the C3, C4, M4, or R3 instance types.

      Parameters:
      instanceType - The instance type. You can specify one of the C3, C4, M4, or R3 instance types.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • maxTermDurationInDays

      ScheduledInstanceAvailability.Builder maxTermDurationInDays(Integer maxTermDurationInDays)

      The maximum term. The only possible value is 365 days.

      Parameters:
      maxTermDurationInDays - The maximum term. The only possible value is 365 days.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • minTermDurationInDays

      ScheduledInstanceAvailability.Builder minTermDurationInDays(Integer minTermDurationInDays)

      The minimum term. The only possible value is 365 days.

      Parameters:
      minTermDurationInDays - The minimum term. The only possible value is 365 days.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • networkPlatform

      ScheduledInstanceAvailability.Builder networkPlatform(String networkPlatform)

      The network platform.

      Parameters:
      networkPlatform - The network platform.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • platform

      The platform (Linux/UNIX or Windows).

      Parameters:
      platform - The platform (Linux/UNIX or Windows).
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • purchaseToken

      ScheduledInstanceAvailability.Builder purchaseToken(String purchaseToken)

      The purchase token. This token expires in two hours.

      Parameters:
      purchaseToken - The purchase token. This token expires in two hours.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recurrence

      The schedule recurrence.

      Parameters:
      recurrence - The schedule recurrence.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • recurrence

      The schedule recurrence.

      This is a convenience method that creates an instance of the ScheduledInstanceRecurrence.Builder avoiding the need to create one manually via ScheduledInstanceRecurrence.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to recurrence(ScheduledInstanceRecurrence).

      Parameters:
      recurrence - a consumer that will call methods on ScheduledInstanceRecurrence.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • slotDurationInHours

      ScheduledInstanceAvailability.Builder slotDurationInHours(Integer slotDurationInHours)

      The number of hours in the schedule.

      Parameters:
      slotDurationInHours - The number of hours in the schedule.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • totalScheduledInstanceHours

      ScheduledInstanceAvailability.Builder totalScheduledInstanceHours(Integer totalScheduledInstanceHours)

      The total number of hours for a single instance for the entire term.

      Parameters:
      totalScheduledInstanceHours - The total number of hours for a single instance for the entire term.
      Returns:
      Returns a reference to this object so that method calls can be chained together.