Class CfnExperimentTemplateProps.Builder
java.lang.Object
software.amazon.awscdk.services.fis.CfnExperimentTemplateProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnExperimentTemplateProps>
- Enclosing interface:
- CfnExperimentTemplateProps
@Stability(Stable)
public static final class CfnExperimentTemplateProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnExperimentTemplateProps>
A builder for
CfnExperimentTemplateProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionSets the value ofCfnExperimentTemplateProps.getActions()
actions
(IResolvable actions) Sets the value ofCfnExperimentTemplateProps.getActions()
build()
Builds the configured instance.description
(String description) Sets the value ofCfnExperimentTemplateProps.getDescription()
logConfiguration
(IResolvable logConfiguration) Sets the value ofCfnExperimentTemplateProps.getLogConfiguration()
Sets the value ofCfnExperimentTemplateProps.getLogConfiguration()
Sets the value ofCfnExperimentTemplateProps.getRoleArn()
stopConditions
(List<? extends Object> stopConditions) Sets the value ofCfnExperimentTemplateProps.getStopConditions()
stopConditions
(IResolvable stopConditions) Sets the value ofCfnExperimentTemplateProps.getStopConditions()
Sets the value ofCfnExperimentTemplateProps.getTags()
Sets the value ofCfnExperimentTemplateProps.getTargets()
targets
(IResolvable targets) Sets the value ofCfnExperimentTemplateProps.getTargets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
description
Sets the value ofCfnExperimentTemplateProps.getDescription()
- Parameters:
description
- A description for the experiment template. This parameter is required.- Returns:
this
-
roleArn
Sets the value ofCfnExperimentTemplateProps.getRoleArn()
- Parameters:
roleArn
- The Amazon Resource Name (ARN) of an IAM role that grants the AWS FIS service permission to perform service actions on your behalf. This parameter is required.- Returns:
this
-
stopConditions
@Stability(Stable) public CfnExperimentTemplateProps.Builder stopConditions(IResolvable stopConditions) Sets the value ofCfnExperimentTemplateProps.getStopConditions()
- Parameters:
stopConditions
- The stop conditions. This parameter is required.- Returns:
this
-
stopConditions
@Stability(Stable) public CfnExperimentTemplateProps.Builder stopConditions(List<? extends Object> stopConditions) Sets the value ofCfnExperimentTemplateProps.getStopConditions()
- Parameters:
stopConditions
- The stop conditions. This parameter is required.- Returns:
this
-
tags
Sets the value ofCfnExperimentTemplateProps.getTags()
- Parameters:
tags
- The tags to apply to the experiment template. This parameter is required.- Returns:
this
-
targets
Sets the value ofCfnExperimentTemplateProps.getTargets()
- Parameters:
targets
- The targets for the experiment. This parameter is required.- Returns:
this
-
targets
@Stability(Stable) public CfnExperimentTemplateProps.Builder targets(Map<String, ? extends Object> targets) Sets the value ofCfnExperimentTemplateProps.getTargets()
- Parameters:
targets
- The targets for the experiment. This parameter is required.- Returns:
this
-
actions
Sets the value ofCfnExperimentTemplateProps.getActions()
- Parameters:
actions
- The actions for the experiment.- Returns:
this
-
actions
@Stability(Stable) public CfnExperimentTemplateProps.Builder actions(Map<String, ? extends Object> actions) Sets the value ofCfnExperimentTemplateProps.getActions()
- Parameters:
actions
- The actions for the experiment.- Returns:
this
-
logConfiguration
@Stability(Stable) public CfnExperimentTemplateProps.Builder logConfiguration(IResolvable logConfiguration) Sets the value ofCfnExperimentTemplateProps.getLogConfiguration()
- Parameters:
logConfiguration
- The configuration for experiment logging.- Returns:
this
-
logConfiguration
@Stability(Stable) public CfnExperimentTemplateProps.Builder logConfiguration(CfnExperimentTemplate.ExperimentTemplateLogConfigurationProperty logConfiguration) Sets the value ofCfnExperimentTemplateProps.getLogConfiguration()
- Parameters:
logConfiguration
- The configuration for experiment logging.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnExperimentTemplateProps>
- Returns:
- a new instance of
CfnExperimentTemplateProps
- Throws:
NullPointerException
- if any required attribute was not provided
-