Package io.github.cdklabs.projen
Class TaskSpec.Jsii$Proxy
- java.lang.Object
-
- software.amazon.jsii.JsiiObject
-
- io.github.cdklabs.projen.TaskSpec.Jsii$Proxy
-
- All Implemented Interfaces:
TaskCommonOptions,TaskSpec,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- TaskSpec
@Stability(Experimental) @Internal public static final class TaskSpec.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements TaskSpec
An implementation forTaskSpec
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Nested classes/interfaces inherited from interface io.github.cdklabs.projen.TaskSpec
TaskSpec.Builder, TaskSpec.Jsii$Proxy
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedJsii$Proxy(TaskSpec.Builder builder)Constructor that initializes the object based on literal property values passed by theTaskSpec.Builder.protectedJsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)Constructor that initializes the object based on values retrieved from the JsiiObject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNode$jsii$toJson()booleanequals(Object o)StringgetCondition()(experimental) A shell command which determines if the this task should be executed.StringgetCwd()(experimental) The working directory for all steps in this task (unless overridden by the step).StringgetDescription()(experimental) The description of this build command.Map<String,String>getEnv()(experimental) Defines environment variables for the execution of this task.StringgetName()(experimental) Task name.List<String>getRequiredEnv()(experimental) A set of environment variables that must be defined in order to execute this task.List<TaskStep>getSteps()(experimental) Task steps.inthashCode()
-
-
-
Constructor Detail
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef- Reference to the JSII managed object.
-
Jsii$Proxy
protected Jsii$Proxy(TaskSpec.Builder builder)
Constructor that initializes the object based on literal property values passed by theTaskSpec.Builder.
-
-
Method Detail
-
getName
public final String getName()
Description copied from interface:TaskSpec(experimental) Task name.
-
getSteps
public final List<TaskStep> getSteps()
Description copied from interface:TaskSpec(experimental) Task steps.
-
getCondition
public final String getCondition()
Description copied from interface:TaskCommonOptions(experimental) 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.
- Specified by:
getConditionin interfaceTaskCommonOptions
-
getCwd
public final String getCwd()
Description copied from interface:TaskCommonOptions(experimental) The working directory for all steps in this task (unless overridden by the step).Default: - process.cwd()
- Specified by:
getCwdin interfaceTaskCommonOptions
-
getDescription
public final String getDescription()
Description copied from interface:TaskCommonOptions(experimental) The description of this build command.Default: - the task name
- Specified by:
getDescriptionin interfaceTaskCommonOptions
-
getEnv
public final Map<String,String> getEnv()
Description copied from interface:TaskCommonOptions(experimental) 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").Default: {}
- Specified by:
getEnvin interfaceTaskCommonOptions
-
getRequiredEnv
public final List<String> getRequiredEnv()
Description copied from interface:TaskCommonOptions(experimental) 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.
- Specified by:
getRequiredEnvin interfaceTaskCommonOptions
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
- Specified by:
$jsii$toJsonin interfacesoftware.amazon.jsii.JsiiSerializable
-
-