Interface Alarm.Builder

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

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

    • alarmModelName

      Alarm.Builder alarmModelName(String alarmModelName)

      The name of the alarm model.

      Parameters:
      alarmModelName - The name of the alarm model.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • alarmModelVersion

      Alarm.Builder alarmModelVersion(String alarmModelVersion)

      The version of the alarm model.

      Parameters:
      alarmModelVersion - The version of the alarm model.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • keyValue

      Alarm.Builder keyValue(String keyValue)

      The value of the key used as a filter to select only the alarms associated with the key.

      Parameters:
      keyValue - The value of the key used as a filter to select only the alarms associated with the key.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • alarmState

      Alarm.Builder alarmState(AlarmState alarmState)

      Contains information about the current state of the alarm.

      Parameters:
      alarmState - Contains information about the current state of the alarm.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • alarmState

      default Alarm.Builder alarmState(Consumer<AlarmState.Builder> alarmState)

      Contains information about the current state of the alarm.

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

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

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

      Alarm.Builder severity(Integer severity)

      A non-negative integer that reflects the severity level of the alarm.

      Parameters:
      severity - A non-negative integer that reflects the severity level of the alarm.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • creationTime

      Alarm.Builder creationTime(Instant creationTime)

      The time the alarm was created, in the Unix epoch format.

      Parameters:
      creationTime - The time the alarm was created, in the Unix epoch format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdateTime

      Alarm.Builder lastUpdateTime(Instant lastUpdateTime)

      The time the alarm was last updated, in the Unix epoch format.

      Parameters:
      lastUpdateTime - The time the alarm was last updated, in the Unix epoch format.
      Returns:
      Returns a reference to this object so that method calls can be chained together.