Interface ScheduledInstance.Builder

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

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

    • availabilityZone

      ScheduledInstance.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.
    • createDate

      ScheduledInstance.Builder createDate(Instant createDate)

      The date when the Scheduled Instance was purchased.

      Parameters:
      createDate - The date when the Scheduled Instance was purchased.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • hourlyPrice

      ScheduledInstance.Builder hourlyPrice(String 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.
    • instanceCount

      ScheduledInstance.Builder instanceCount(Integer instanceCount)

      The number of instances.

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

      ScheduledInstance.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.
    • networkPlatform

      ScheduledInstance.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.
    • nextSlotStartTime

      ScheduledInstance.Builder nextSlotStartTime(Instant nextSlotStartTime)

      The time for the next schedule to start.

      Parameters:
      nextSlotStartTime - The time for the next schedule to start.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • platform

      ScheduledInstance.Builder platform(String 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.
    • previousSlotEndTime

      ScheduledInstance.Builder previousSlotEndTime(Instant previousSlotEndTime)

      The time that the previous schedule ended or will end.

      Parameters:
      previousSlotEndTime - The time that the previous schedule ended or will end.
      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:
    • scheduledInstanceId

      ScheduledInstance.Builder scheduledInstanceId(String scheduledInstanceId)

      The Scheduled Instance ID.

      Parameters:
      scheduledInstanceId - The Scheduled Instance ID.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • slotDurationInHours

      ScheduledInstance.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.
    • termEndDate

      ScheduledInstance.Builder termEndDate(Instant termEndDate)

      The end date for the Scheduled Instance.

      Parameters:
      termEndDate - The end date for the Scheduled Instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • termStartDate

      ScheduledInstance.Builder termStartDate(Instant termStartDate)

      The start date for the Scheduled Instance.

      Parameters:
      termStartDate - The start date for the Scheduled Instance.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • totalScheduledInstanceHours

      ScheduledInstance.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.