Class CfnRule.RunCommandParametersProperty.Builder
java.lang.Object
software.amazon.awscdk.services.events.CfnRule.RunCommandParametersProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnRule.RunCommandParametersProperty>
- Enclosing interface:
CfnRule.RunCommandParametersProperty
@Stability(Stable)
public static final class CfnRule.RunCommandParametersProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnRule.RunCommandParametersProperty>
A builder for
CfnRule.RunCommandParametersProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.runCommandTargets
(List<? extends Object> runCommandTargets) Sets the value ofCfnRule.RunCommandParametersProperty.getRunCommandTargets()
runCommandTargets
(IResolvable runCommandTargets) Sets the value ofCfnRule.RunCommandParametersProperty.getRunCommandTargets()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
runCommandTargets
@Stability(Stable) public CfnRule.RunCommandParametersProperty.Builder runCommandTargets(IResolvable runCommandTargets) Sets the value ofCfnRule.RunCommandParametersProperty.getRunCommandTargets()
- Parameters:
runCommandTargets
- Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag. This parameter is required.- Returns:
this
-
runCommandTargets
@Stability(Stable) public CfnRule.RunCommandParametersProperty.Builder runCommandTargets(List<? extends Object> runCommandTargets) Sets the value ofCfnRule.RunCommandParametersProperty.getRunCommandTargets()
- Parameters:
runCommandTargets
- Currently, we support including only one RunCommandTarget block, which specifies either an array of InstanceIds or a tag. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnRule.RunCommandParametersProperty>
- Returns:
- a new instance of
CfnRule.RunCommandParametersProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-