Class CfnExperiment.RunningStatusObjectProperty.Builder
java.lang.Object
software.amazon.awscdk.services.evidently.CfnExperiment.RunningStatusObjectProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnExperiment.RunningStatusObjectProperty>
- Enclosing interface:
- CfnExperiment.RunningStatusObjectProperty
@Stability(Stable)
public static final class CfnExperiment.RunningStatusObjectProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnExperiment.RunningStatusObjectProperty>
A builder for
CfnExperiment.RunningStatusObjectProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionanalysisCompleteTime(String analysisCompleteTime) Sets the value ofCfnExperiment.RunningStatusObjectProperty.getAnalysisCompleteTime()build()Builds the configured instance.desiredState(String desiredState) Sets the value ofCfnExperiment.RunningStatusObjectProperty.getDesiredState()Sets the value ofCfnExperiment.RunningStatusObjectProperty.getReason()Sets the value ofCfnExperiment.RunningStatusObjectProperty.getStatus()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
status
Sets the value ofCfnExperiment.RunningStatusObjectProperty.getStatus()- Parameters:
status- To start the experiment now, specifySTARTfor this parameter. This parameter is required. If this experiment is currently running and you want to stop it now, specifySTOP.- Returns:
this
-
analysisCompleteTime
@Stability(Stable) public CfnExperiment.RunningStatusObjectProperty.Builder analysisCompleteTime(String analysisCompleteTime) Sets the value ofCfnExperiment.RunningStatusObjectProperty.getAnalysisCompleteTime()- Parameters:
analysisCompleteTime- If you are using AWS CloudFormation to start the experiment, use this field to specify when the experiment is to end. The format is as a UNIX timestamp. For more information about this format, see The Current Epoch Unix Timestamp .- Returns:
this
-
desiredState
@Stability(Stable) public CfnExperiment.RunningStatusObjectProperty.Builder desiredState(String desiredState) Sets the value ofCfnExperiment.RunningStatusObjectProperty.getDesiredState()- Parameters:
desiredState- If you are using AWS CloudFormation to stop this experiment, specify eitherCOMPLETEDorCANCELLEDhere to indicate how to classify this experiment.- Returns:
this
-
reason
Sets the value ofCfnExperiment.RunningStatusObjectProperty.getReason()- Parameters:
reason- If you are using AWS CloudFormation to stop this experiment, this is an optional field that you can use to record why the experiment is being stopped or cancelled.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnExperiment.RunningStatusObjectProperty>- Returns:
- a new instance of
CfnExperiment.RunningStatusObjectProperty - Throws:
NullPointerException- if any required attribute was not provided
-