Interface AlarmEventActions.Builder

  • Method Details

    • alarmActions

      AlarmEventActions.Builder alarmActions(Collection<AlarmAction> alarmActions)

      Specifies one or more supported actions to receive notifications when the alarm state changes.

      Parameters:
      alarmActions - Specifies one or more supported actions to receive notifications when the alarm state changes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • alarmActions

      AlarmEventActions.Builder alarmActions(AlarmAction... alarmActions)

      Specifies one or more supported actions to receive notifications when the alarm state changes.

      Parameters:
      alarmActions - Specifies one or more supported actions to receive notifications when the alarm state changes.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • alarmActions

      AlarmEventActions.Builder alarmActions(Consumer<AlarmAction.Builder>... alarmActions)

      Specifies one or more supported actions to receive notifications when the alarm state changes.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to alarmActions(List<AlarmAction>).

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