Interface MonitoringAlertSummary.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<MonitoringAlertSummary.Builder,MonitoringAlertSummary>
,SdkBuilder<MonitoringAlertSummary.Builder,MonitoringAlertSummary>
,SdkPojo
- Enclosing class:
- MonitoringAlertSummary
public static interface MonitoringAlertSummary.Builder extends SdkPojo, CopyableBuilder<MonitoringAlertSummary.Builder,MonitoringAlertSummary>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default MonitoringAlertSummary.Builder
actions(Consumer<MonitoringAlertActions.Builder> actions)
A list of alert actions taken in response to an alert going intoInAlert
status.MonitoringAlertSummary.Builder
actions(MonitoringAlertActions actions)
A list of alert actions taken in response to an alert going intoInAlert
status.MonitoringAlertSummary.Builder
alertStatus(String alertStatus)
The current status of an alert.MonitoringAlertSummary.Builder
alertStatus(MonitoringAlertStatus alertStatus)
The current status of an alert.MonitoringAlertSummary.Builder
creationTime(Instant creationTime)
A timestamp that indicates when a monitor alert was created.MonitoringAlertSummary.Builder
datapointsToAlert(Integer datapointsToAlert)
WithinEvaluationPeriod
, how many execution failures will raise an alert.MonitoringAlertSummary.Builder
evaluationPeriod(Integer evaluationPeriod)
The number of most recent monitoring executions to consider when evaluating alert status.MonitoringAlertSummary.Builder
lastModifiedTime(Instant lastModifiedTime)
A timestamp that indicates when a monitor alert was last updated.MonitoringAlertSummary.Builder
monitoringAlertName(String monitoringAlertName)
The name of a monitoring alert.-
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, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
monitoringAlertName
MonitoringAlertSummary.Builder monitoringAlertName(String monitoringAlertName)
The name of a monitoring alert.
- Parameters:
monitoringAlertName
- The name of a monitoring alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationTime
MonitoringAlertSummary.Builder creationTime(Instant creationTime)
A timestamp that indicates when a monitor alert was created.
- Parameters:
creationTime
- A timestamp that indicates when a monitor alert was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastModifiedTime
MonitoringAlertSummary.Builder lastModifiedTime(Instant lastModifiedTime)
A timestamp that indicates when a monitor alert was last updated.
- Parameters:
lastModifiedTime
- A timestamp that indicates when a monitor alert was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
alertStatus
MonitoringAlertSummary.Builder alertStatus(String alertStatus)
The current status of an alert.
- Parameters:
alertStatus
- The current status of an alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MonitoringAlertStatus
,MonitoringAlertStatus
-
alertStatus
MonitoringAlertSummary.Builder alertStatus(MonitoringAlertStatus alertStatus)
The current status of an alert.
- Parameters:
alertStatus
- The current status of an alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MonitoringAlertStatus
,MonitoringAlertStatus
-
datapointsToAlert
MonitoringAlertSummary.Builder datapointsToAlert(Integer datapointsToAlert)
Within
EvaluationPeriod
, how many execution failures will raise an alert.- Parameters:
datapointsToAlert
- WithinEvaluationPeriod
, how many execution failures will raise an alert.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
evaluationPeriod
MonitoringAlertSummary.Builder evaluationPeriod(Integer evaluationPeriod)
The number of most recent monitoring executions to consider when evaluating alert status.
- Parameters:
evaluationPeriod
- The number of most recent monitoring executions to consider when evaluating alert status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
MonitoringAlertSummary.Builder actions(MonitoringAlertActions actions)
A list of alert actions taken in response to an alert going into
InAlert
status.- Parameters:
actions
- A list of alert actions taken in response to an alert going intoInAlert
status.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actions
default MonitoringAlertSummary.Builder actions(Consumer<MonitoringAlertActions.Builder> actions)
A list of alert actions taken in response to an alert going into
This is a convenience method that creates an instance of theInAlert
status.MonitoringAlertActions.Builder
avoiding the need to create one manually viaMonitoringAlertActions.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactions(MonitoringAlertActions)
.- Parameters:
actions
- a consumer that will call methods onMonitoringAlertActions.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
actions(MonitoringAlertActions)
-
-