Interface Alarm.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Alarm.Builder,
,Alarm> SdkBuilder<Alarm.Builder,
,Alarm> SdkPojo
- Enclosing class:
Alarm
-
Method Summary
Modifier and TypeMethodDescriptionalarmModelName
(String alarmModelName) The name of the alarm model.alarmModelVersion
(String alarmModelVersion) The version of the alarm model.default Alarm.Builder
alarmState
(Consumer<AlarmState.Builder> alarmState) Contains information about the current state of the alarm.alarmState
(AlarmState alarmState) Contains information about the current state of the alarm.creationTime
(Instant creationTime) The time the alarm was created, in the Unix epoch format.The value of the key used as a filter to select only the alarms associated with the key.lastUpdateTime
(Instant lastUpdateTime) The time the alarm was last updated, in the Unix epoch format.A non-negative integer that reflects the severity level of the alarm.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
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
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
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
Contains information about the current state of the alarm.
This is a convenience method that creates an instance of theAlarmState.Builder
avoiding the need to create one manually viaAlarmState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toalarmState(AlarmState)
.- Parameters:
alarmState
- a consumer that will call methods onAlarmState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
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
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
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.
-