Class TaskOptions.Jsii$Proxy

  • All Implemented Interfaces:
    TaskCommonOptions, TaskOptions, software.amazon.jsii.JsiiSerializable
    Enclosing interface:
    TaskOptions

    @Stability(Experimental)
    @Internal
    public static final class TaskOptions.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements TaskOptions
    An implementation for TaskOptions
    • Nested Class Summary

      • Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

        software.amazon.jsii.JsiiObject.InitializationMode
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Jsii$Proxy​(TaskOptions.Builder builder)
      Constructor that initializes the object based on literal property values passed by the TaskOptions.Builder.
      protected Jsii$Proxy​(software.amazon.jsii.JsiiObjectRef objRef)
      Constructor that initializes the object based on values retrieved from the JsiiObject.
    • 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.
    • Method Detail

      • getArgs

        public final List<String> getArgs()
        Description copied from interface: TaskOptions
        (experimental) Should the provided exec shell command receive fixed args.

        Default: - no arguments are passed to the step

        Specified by:
        getArgs in interface TaskOptions
        See Also:
        TaskStepOptions.args
      • getExec

        public final String getExec()
        Description copied from interface: TaskOptions
        (experimental) Shell command to execute as the first command of the task.

        Default: - add steps using `task.exec(command)` or `task.spawn(subtask)`

        Specified by:
        getExec in interface TaskOptions
      • 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:
        getCondition in interface TaskCommonOptions
      • 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:
        getCwd in interface TaskCommonOptions
      • 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:
        getEnv in interface TaskCommonOptions
      • 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:
        getRequiredEnv in interface TaskCommonOptions
      • $jsii$toJson

        @Internal
        public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
        Specified by:
        $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object