Interface OffPeakWindowOptions.Builder

  • Method Details

    • enabled

      Whether to enable an off-peak window.

      This option is only available when modifying a domain created prior to February 16, 2023, not when creating a new domain. All domains created after this date have the off-peak window enabled by default. You can't disable the off-peak window after it's enabled for a domain.

      Parameters:
      enabled - Whether to enable an off-peak window.

      This option is only available when modifying a domain created prior to February 16, 2023, not when creating a new domain. All domains created after this date have the off-peak window enabled by default. You can't disable the off-peak window after it's enabled for a domain.

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

      OffPeakWindowOptions.Builder offPeakWindow(OffPeakWindow offPeakWindow)

      Off-peak window settings for the domain.

      Parameters:
      offPeakWindow - Off-peak window settings for the domain.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • offPeakWindow

      default OffPeakWindowOptions.Builder offPeakWindow(Consumer<OffPeakWindow.Builder> offPeakWindow)

      Off-peak window settings for the domain.

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

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

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