Class CfnExperimentTemplate.ExperimentTemplateTargetProperty.Builder
java.lang.Object
software.amazon.awscdk.services.fis.CfnExperimentTemplate.ExperimentTemplateTargetProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnExperimentTemplate.ExperimentTemplateTargetProperty>
- Enclosing interface:
- CfnExperimentTemplate.ExperimentTemplateTargetProperty
@Stability(Stable)
public static final class CfnExperimentTemplate.ExperimentTemplateTargetProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnExperimentTemplate.ExperimentTemplateTargetProperty>
A builder for
CfnExperimentTemplate.ExperimentTemplateTargetProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.Sets the value ofCfnExperimentTemplate.ExperimentTemplateTargetProperty.getFilters()
filters
(IResolvable filters) Sets the value ofCfnExperimentTemplate.ExperimentTemplateTargetProperty.getFilters()
parameters
(Map<String, String> parameters) Sets the value ofCfnExperimentTemplate.ExperimentTemplateTargetProperty.getParameters()
parameters
(IResolvable parameters) Sets the value ofCfnExperimentTemplate.ExperimentTemplateTargetProperty.getParameters()
resourceArns
(List<String> resourceArns) Sets the value ofCfnExperimentTemplate.ExperimentTemplateTargetProperty.getResourceArns()
resourceTags
(Map<String, String> resourceTags) Sets the value ofCfnExperimentTemplate.ExperimentTemplateTargetProperty.getResourceTags()
resourceTags
(IResolvable resourceTags) Sets the value ofCfnExperimentTemplate.ExperimentTemplateTargetProperty.getResourceTags()
resourceType
(String resourceType) Sets the value ofCfnExperimentTemplate.ExperimentTemplateTargetProperty.getResourceType()
selectionMode
(String selectionMode)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
resourceType
@Stability(Stable) public CfnExperimentTemplate.ExperimentTemplateTargetProperty.Builder resourceType(String resourceType) Sets the value ofCfnExperimentTemplate.ExperimentTemplateTargetProperty.getResourceType()
- Parameters:
resourceType
- The resource type. This parameter is required. The resource type must be supported for the specified action.- Returns:
this
-
selectionMode
@Stability(Stable) public CfnExperimentTemplate.ExperimentTemplateTargetProperty.Builder selectionMode(String selectionMode) - Parameters:
selectionMode
- Scopes the identified resources to a specific count of the resources at random, or a percentage of the resources. This parameter is required. All identified resources are included in the target.- ALL - Run the action on all identified targets. This is the default.
- COUNT(n) - Run the action on the specified number of targets, chosen from the identified targets at random. For example, COUNT(1) selects one of the targets.
- PERCENT(n) - Run the action on the specified percentage of targets, chosen from the identified targets at random. For example, PERCENT(25) selects 25% of the targets.
- Returns:
this
-
filters
@Stability(Stable) public CfnExperimentTemplate.ExperimentTemplateTargetProperty.Builder filters(IResolvable filters) Sets the value ofCfnExperimentTemplate.ExperimentTemplateTargetProperty.getFilters()
- Parameters:
filters
- The filters to apply to identify target resources using specific attributes.- Returns:
this
-
filters
@Stability(Stable) public CfnExperimentTemplate.ExperimentTemplateTargetProperty.Builder filters(List<? extends Object> filters) Sets the value ofCfnExperimentTemplate.ExperimentTemplateTargetProperty.getFilters()
- Parameters:
filters
- The filters to apply to identify target resources using specific attributes.- Returns:
this
-
parameters
@Stability(Stable) public CfnExperimentTemplate.ExperimentTemplateTargetProperty.Builder parameters(IResolvable parameters) Sets the value ofCfnExperimentTemplate.ExperimentTemplateTargetProperty.getParameters()
- Parameters:
parameters
- The parameters for the resource type.- Returns:
this
-
parameters
@Stability(Stable) public CfnExperimentTemplate.ExperimentTemplateTargetProperty.Builder parameters(Map<String, String> parameters) Sets the value ofCfnExperimentTemplate.ExperimentTemplateTargetProperty.getParameters()
- Parameters:
parameters
- The parameters for the resource type.- Returns:
this
-
resourceArns
@Stability(Stable) public CfnExperimentTemplate.ExperimentTemplateTargetProperty.Builder resourceArns(List<String> resourceArns) Sets the value ofCfnExperimentTemplate.ExperimentTemplateTargetProperty.getResourceArns()
- Parameters:
resourceArns
- The Amazon Resource Names (ARNs) of the resources.- Returns:
this
-
resourceTags
@Stability(Stable) public CfnExperimentTemplate.ExperimentTemplateTargetProperty.Builder resourceTags(IResolvable resourceTags) Sets the value ofCfnExperimentTemplate.ExperimentTemplateTargetProperty.getResourceTags()
- Parameters:
resourceTags
- The tags for the target resources.- Returns:
this
-
resourceTags
@Stability(Stable) public CfnExperimentTemplate.ExperimentTemplateTargetProperty.Builder resourceTags(Map<String, String> resourceTags) Sets the value ofCfnExperimentTemplate.ExperimentTemplateTargetProperty.getResourceTags()
- Parameters:
resourceTags
- The tags for the target resources.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnExperimentTemplate.ExperimentTemplateTargetProperty>
- Returns:
- a new instance of
CfnExperimentTemplate.ExperimentTemplateTargetProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-