Class CfnLaunchPropsMixin.ExecutionStatusObjectProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.evidently.CfnLaunchPropsMixin.ExecutionStatusObjectProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnLaunchPropsMixin.ExecutionStatusObjectProperty>
- Enclosing interface:
CfnLaunchPropsMixin.ExecutionStatusObjectProperty
@Stability(Stable)
public static final class CfnLaunchPropsMixin.ExecutionStatusObjectProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnLaunchPropsMixin.ExecutionStatusObjectProperty>
A builder for
CfnLaunchPropsMixin.ExecutionStatusObjectProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.desiredState(String desiredState) Sets the value ofCfnLaunchPropsMixin.ExecutionStatusObjectProperty.getDesiredState()Sets the value ofCfnLaunchPropsMixin.ExecutionStatusObjectProperty.getReason()Sets the value ofCfnLaunchPropsMixin.ExecutionStatusObjectProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
desiredState
@Stability(Stable) public CfnLaunchPropsMixin.ExecutionStatusObjectProperty.Builder desiredState(String desiredState) Sets the value ofCfnLaunchPropsMixin.ExecutionStatusObjectProperty.getDesiredState()- Parameters:
desiredState- If you are using CloudFormation to stop this launch, specify eitherCOMPLETEDorCANCELLEDhere to indicate how to classify this experiment. If you omit this parameter, the default ofCOMPLETEDis used.- Returns:
this
-
reason
@Stability(Stable) public CfnLaunchPropsMixin.ExecutionStatusObjectProperty.Builder reason(String reason) Sets the value ofCfnLaunchPropsMixin.ExecutionStatusObjectProperty.getReason()- Parameters:
reason- If you are using CloudFormation to stop this launch, this is an optional field that you can use to record why the launch is being stopped or cancelled.- Returns:
this
-
status
@Stability(Stable) public CfnLaunchPropsMixin.ExecutionStatusObjectProperty.Builder status(String status) Sets the value ofCfnLaunchPropsMixin.ExecutionStatusObjectProperty.getStatus()- Parameters:
status- To start the launch now, specifySTARTfor this parameter. If this launch is currently running and you want to stop it now, specifySTOP.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnLaunchPropsMixin.ExecutionStatusObjectProperty>- Returns:
- a new instance of
CfnLaunchPropsMixin.ExecutionStatusObjectProperty - Throws:
NullPointerException- if any required attribute was not provided
-