Class CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.arczonalshift.CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty>
- Enclosing interface:
CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty
@Stability(Stable)
public static final class CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionblockedDates(List<String> blockedDates) blockedWindows(List<String> blockedWindows) blockingAlarms(List<? extends Object> blockingAlarms) blockingAlarms(IResolvable blockingAlarms) build()Builds the configured instance.outcomeAlarms(List<? extends Object> outcomeAlarms) outcomeAlarms(IResolvable outcomeAlarms)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
blockedDates
@Stability(Stable) public CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty.Builder blockedDates(List<String> blockedDates) Sets the value ofCfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty.getBlockedDates()- Parameters:
blockedDates- An array of one or more dates that you can specify when AWS does not start practice runs for a resource. Dates are in UTC.Specify blocked dates in the format
YYYY-MM-DD, separated by spaces.- Returns:
this
-
blockedWindows
@Stability(Stable) public CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty.Builder blockedWindows(List<String> blockedWindows) Sets the value ofCfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty.getBlockedWindows()- Parameters:
blockedWindows- An array of one or more days and times that you can specify when ARC does not start practice runs for a resource. Days and times are in UTC.Specify blocked windows in the format
DAY:HH:MM-DAY:HH:MM, separated by spaces. For example,MON:18:30-MON:19:30 TUE:18:30-TUE:19:30.Blocked windows have to start and end on the same day. Windows that span multiple days aren't supported.
- Returns:
this
-
blockingAlarms
@Stability(Stable) public CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty.Builder blockingAlarms(IResolvable blockingAlarms) Sets the value ofCfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty.getBlockingAlarms()- Parameters:
blockingAlarms- An optional alarm that you can specify that blocks practice runs when the alarm is in anALARMstate. When a blocking alarm goes into anALARMstate, it prevents practice runs from being started, and ends practice runs that are in progress.- Returns:
this
-
blockingAlarms
@Stability(Stable) public CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty.Builder blockingAlarms(List<? extends Object> blockingAlarms) Sets the value ofCfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty.getBlockingAlarms()- Parameters:
blockingAlarms- An optional alarm that you can specify that blocks practice runs when the alarm is in anALARMstate. When a blocking alarm goes into anALARMstate, it prevents practice runs from being started, and ends practice runs that are in progress.- Returns:
this
-
outcomeAlarms
@Stability(Stable) public CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty.Builder outcomeAlarms(IResolvable outcomeAlarms) Sets the value ofCfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty.getOutcomeAlarms()- Parameters:
outcomeAlarms- The alarm that you specify to monitor the health of your application during practice runs. When the outcome alarm goes into anALARMstate, the practice run is ended and the outcome is set toFAILED.- Returns:
this
-
outcomeAlarms
@Stability(Stable) public CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty.Builder outcomeAlarms(List<? extends Object> outcomeAlarms) Sets the value ofCfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty.getOutcomeAlarms()- Parameters:
outcomeAlarms- The alarm that you specify to monitor the health of your application during practice runs. When the outcome alarm goes into anALARMstate, the practice run is ended and the outcome is set toFAILED.- Returns:
this
-
build
@Stability(Stable) public CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty>- Returns:
- a new instance of
CfnZonalAutoshiftConfigurationPropsMixin.PracticeRunConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-