Class JobStrategy.Jsii$Proxy

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

    @Stability(Experimental)
    @Internal
    public static final class JobStrategy.Jsii$Proxy
    extends software.amazon.jsii.JsiiObject
    implements JobStrategy
    An implementation for JobStrategy
    • 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​(JobStrategy.Builder builder)
      Constructor that initializes the object based on literal property values passed by the JobStrategy.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

      • getFailFast

        public final Boolean getFailFast()
        Description copied from interface: JobStrategy
        (experimental) When set to true, GitHub cancels all in-progress jobs if any matrix job fails.

        Default: true

        Specified by:
        getFailFast in interface JobStrategy
      • getMatrix

        public final JobMatrix getMatrix()
        Description copied from interface: JobStrategy
        (experimental) You can define a matrix of different job configurations.

        A matrix allows you to create multiple jobs by performing variable substitution in a single job definition. For example, you can use a matrix to create jobs for more than one supported version of a programming language, operating system, or tool. A matrix reuses the job's configuration and creates a job for each matrix you configure.

        A job matrix can generate a maximum of 256 jobs per workflow run. This limit also applies to self-hosted runners.

        Specified by:
        getMatrix in interface JobStrategy
      • getMaxParallel

        public final Number getMaxParallel()
        Description copied from interface: JobStrategy
        (experimental) The maximum number of jobs that can run simultaneously when using a matrix job strategy.

        By default, GitHub will maximize the number of jobs run in parallel depending on the available runners on GitHub-hosted virtual machines.

        Specified by:
        getMaxParallel in interface JobStrategy
      • $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