| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
TaskSpec |
build()
Builds the configured instance.
|
TaskSpec.Builder |
condition(String condition)
Sets the value of
TaskCommonOptions.getCondition() |
TaskSpec.Builder |
cwd(String cwd)
Sets the value of
TaskCommonOptions.getCwd() |
TaskSpec.Builder |
description(String description)
Sets the value of
TaskCommonOptions.getDescription() |
TaskSpec.Builder |
env(Map<String,String> env)
Sets the value of
TaskCommonOptions.getEnv() |
TaskSpec.Builder |
name(String name)
Sets the value of
TaskSpec.getName() |
TaskSpec.Builder |
requiredEnv(List<String> requiredEnv)
Sets the value of
TaskCommonOptions.getRequiredEnv() |
TaskSpec.Builder |
steps(List<? extends TaskStep> steps)
Sets the value of
TaskSpec.getSteps() |
@Stability(value=Experimental) public TaskSpec.Builder name(String name)
TaskSpec.getName()name - Task name. This parameter is required.this@Stability(value=Experimental) public TaskSpec.Builder steps(List<? extends TaskStep> steps)
TaskSpec.getSteps()steps - Task steps.this@Stability(value=Experimental) public TaskSpec.Builder condition(String condition)
TaskCommonOptions.getCondition()condition - A shell command which determines if the this task should be executed.
If
the program exits with a zero exit code, steps will be executed. A non-zero
code means that task will be skipped.this@Stability(value=Experimental) public TaskSpec.Builder cwd(String cwd)
TaskCommonOptions.getCwd()cwd - The working directory for all steps in this task (unless overridden by the step).this@Stability(value=Experimental) public TaskSpec.Builder description(String description)
TaskCommonOptions.getDescription()description - The description of this build command.this@Stability(value=Experimental) public TaskSpec.Builder env(Map<String,String> env)
TaskCommonOptions.getEnv()env - Defines environment variables for the execution of this task.
Values in this map will be evaluated in a shell, so you can do stuff like $(echo "foo").this@Stability(value=Experimental) public TaskSpec.Builder requiredEnv(List<String> requiredEnv)
TaskCommonOptions.getRequiredEnv()requiredEnv - A set of environment variables that must be defined in order to execute this task.
Task execution will fail if one of these is not defined.this@Stability(value=Experimental) public TaskSpec build()
build in interface software.amazon.jsii.Builder<TaskSpec>TaskSpecNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.