Interface RotationShift.Builder

  • Method Details

    • contactIds

      RotationShift.Builder contactIds(Collection<String> contactIds)

      The Amazon Resource Names (ARNs) of the contacts who are part of the shift rotation.

      Parameters:
      contactIds - The Amazon Resource Names (ARNs) of the contacts who are part of the shift rotation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • contactIds

      RotationShift.Builder contactIds(String... contactIds)

      The Amazon Resource Names (ARNs) of the contacts who are part of the shift rotation.

      Parameters:
      contactIds - The Amazon Resource Names (ARNs) of the contacts who are part of the shift rotation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • startTime

      RotationShift.Builder startTime(Instant startTime)

      The time a shift rotation begins.

      Parameters:
      startTime - The time a shift rotation begins.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endTime

      RotationShift.Builder endTime(Instant endTime)

      The time a shift rotation ends.

      Parameters:
      endTime - The time a shift rotation ends.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The type of shift rotation.

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

      The type of shift rotation.

      Parameters:
      type - The type of shift rotation.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • shiftDetails

      RotationShift.Builder shiftDetails(ShiftDetails shiftDetails)

      Additional information about an on-call rotation shift.

      Parameters:
      shiftDetails - Additional information about an on-call rotation shift.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • shiftDetails

      default RotationShift.Builder shiftDetails(Consumer<ShiftDetails.Builder> shiftDetails)

      Additional information about an on-call rotation shift.

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

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

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