Class CfnMonitoringScheduleAlertProps.Builder
java.lang.Object
software.amazon.awscdk.services.sagemaker.CfnMonitoringScheduleAlertProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnMonitoringScheduleAlertProps>
- Enclosing interface:
CfnMonitoringScheduleAlertProps
@Stability(Stable)
public static final class CfnMonitoringScheduleAlertProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnMonitoringScheduleAlertProps>
A builder for
CfnMonitoringScheduleAlertProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.datapointsToAlert(Number datapointsToAlert) Sets the value ofCfnMonitoringScheduleAlertProps.getDatapointsToAlert()evaluationPeriod(Number evaluationPeriod) Sets the value ofCfnMonitoringScheduleAlertProps.getEvaluationPeriod()monitoringAlertName(String monitoringAlertName) Sets the value ofCfnMonitoringScheduleAlertProps.getMonitoringAlertName()monitoringScheduleName(String monitoringScheduleName) Sets the value ofCfnMonitoringScheduleAlertProps.getMonitoringScheduleName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
datapointsToAlert
@Stability(Stable) public CfnMonitoringScheduleAlertProps.Builder datapointsToAlert(Number datapointsToAlert) Sets the value ofCfnMonitoringScheduleAlertProps.getDatapointsToAlert()- Parameters:
datapointsToAlert- Within EvaluationPeriod, how many execution failures will raise an alert. This parameter is required.- Returns:
this
-
evaluationPeriod
@Stability(Stable) public CfnMonitoringScheduleAlertProps.Builder evaluationPeriod(Number evaluationPeriod) Sets the value ofCfnMonitoringScheduleAlertProps.getEvaluationPeriod()- Parameters:
evaluationPeriod- The number of most recent monitoring executions to consider when evaluating alert status. This parameter is required.- Returns:
this
-
monitoringAlertName
@Stability(Stable) public CfnMonitoringScheduleAlertProps.Builder monitoringAlertName(String monitoringAlertName) Sets the value ofCfnMonitoringScheduleAlertProps.getMonitoringAlertName()- Parameters:
monitoringAlertName- The name of the monitoring alert. This parameter is required.- Returns:
this
-
monitoringScheduleName
@Stability(Stable) public CfnMonitoringScheduleAlertProps.Builder monitoringScheduleName(String monitoringScheduleName) Sets the value ofCfnMonitoringScheduleAlertProps.getMonitoringScheduleName()- Parameters:
monitoringScheduleName- The name of the monitoring schedule. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnMonitoringScheduleAlertProps>- Returns:
- a new instance of
CfnMonitoringScheduleAlertProps - Throws:
NullPointerException- if any required attribute was not provided
-