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 Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Alarm.BuilderalarmModelName(String alarmModelName)The name of the alarm model.Alarm.BuilderalarmModelVersion(String alarmModelVersion)The version of the alarm model.default Alarm.BuilderalarmState(Consumer<AlarmState.Builder> alarmState)Contains information about the current state of the alarm.Alarm.BuilderalarmState(AlarmState alarmState)Contains information about the current state of the alarm.Alarm.BuildercreationTime(Instant creationTime)The time the alarm was created, in the Unix epoch format.Alarm.BuilderkeyValue(String keyValue)The value of the key used as a filter to select only the alarms associated with the key.Alarm.BuilderlastUpdateTime(Instant lastUpdateTime)The time the alarm was last updated, in the Unix epoch format.Alarm.Builderseverity(Integer severity)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 Detail
-
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 theAlarmState.Builderavoiding the need to create one manually viaAlarmState.builder().When the
Consumercompletes,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:
alarmState(AlarmState)
-
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.
-
-