Interface OffPeakWindow.Builder

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

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

    • windowStartTime

      OffPeakWindow.Builder windowStartTime(WindowStartTime windowStartTime)

      A custom start time for the off-peak window, in Coordinated Universal Time (UTC). The window length will always be 10 hours, so you can't specify an end time. For example, if you specify 11:00 P.M. UTC as a start time, the end time will automatically be set to 9:00 A.M.

      Parameters:
      windowStartTime - A custom start time for the off-peak window, in Coordinated Universal Time (UTC). The window length will always be 10 hours, so you can't specify an end time. For example, if you specify 11:00 P.M. UTC as a start time, the end time will automatically be set to 9:00 A.M.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • windowStartTime

      default OffPeakWindow.Builder windowStartTime(Consumer<WindowStartTime.Builder> windowStartTime)

      A custom start time for the off-peak window, in Coordinated Universal Time (UTC). The window length will always be 10 hours, so you can't specify an end time. For example, if you specify 11:00 P.M. UTC as a start time, the end time will automatically be set to 9:00 A.M.

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

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

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