Package io.github.cdklabs.projen.github
Class CheckoutOptions.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.github.CheckoutOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CheckoutOptions>
- Enclosing interface:
- CheckoutOptions
@Stability(Experimental) public static final class CheckoutOptions.Builder extends Object implements software.amazon.jsii.Builder<CheckoutOptions>
A builder forCheckoutOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CheckoutOptionsbuild()Builds the configured instance.CheckoutOptions.BuildercontinueOnError(Boolean continueOnError)Sets the value ofJobStepConfiguration.getContinueOnError()CheckoutOptions.Builderenv(Map<String,String> env)Sets the value ofStepConfiguration.getEnv()CheckoutOptions.Builderid(String id)Sets the value ofStepConfiguration.getId()CheckoutOptions.BuilderifValue(String ifValue)Sets the value ofStepConfiguration.getIfValue()CheckoutOptions.Buildername(String name)Sets the value ofStepConfiguration.getName()CheckoutOptions.BuildertimeoutMinutes(Number timeoutMinutes)Sets the value ofJobStepConfiguration.getTimeoutMinutes()CheckoutOptions.Builderwith(CheckoutWith with)Sets the value ofCheckoutOptions.getWith()CheckoutOptions.BuilderworkingDirectory(String workingDirectory)Sets the value ofStepConfiguration.getWorkingDirectory()
-
-
-
Method Detail
-
with
@Stability(Experimental) public CheckoutOptions.Builder with(CheckoutWith with)
Sets the value ofCheckoutOptions.getWith()- Parameters:
with- Options forcheckout.- Returns:
this
-
continueOnError
@Stability(Experimental) public CheckoutOptions.Builder continueOnError(Boolean continueOnError)
Sets the value ofJobStepConfiguration.getContinueOnError()- Parameters:
continueOnError- Prevents a job from failing when a step fails. Set to true to allow a job to pass when this step fails.- Returns:
this
-
timeoutMinutes
@Stability(Experimental) public CheckoutOptions.Builder timeoutMinutes(Number timeoutMinutes)
Sets the value ofJobStepConfiguration.getTimeoutMinutes()- Parameters:
timeoutMinutes- The maximum number of minutes to run the step before killing the process.- Returns:
this
-
env
@Stability(Experimental) public CheckoutOptions.Builder env(Map<String,String> env)
Sets the value ofStepConfiguration.getEnv()- Parameters:
env- Sets environment variables for steps to use in the runner environment. You can also set environment variables for the entire workflow or a job.- Returns:
this
-
id
@Stability(Experimental) public CheckoutOptions.Builder id(String id)
Sets the value ofStepConfiguration.getId()- Parameters:
id- A unique identifier for the step. You can use the id to reference the step in contexts.- Returns:
this
-
ifValue
@Stability(Experimental) public CheckoutOptions.Builder ifValue(String ifValue)
Sets the value ofStepConfiguration.getIfValue()- Parameters:
ifValue- You can use the if conditional to prevent a job from running unless a condition is met. You can use any supported context and expression to create a conditional.- Returns:
this
-
name
@Stability(Experimental) public CheckoutOptions.Builder name(String name)
Sets the value ofStepConfiguration.getName()- Parameters:
name- A name for your step to display on GitHub.- Returns:
this
-
workingDirectory
@Stability(Experimental) public CheckoutOptions.Builder workingDirectory(String workingDirectory)
Sets the value ofStepConfiguration.getWorkingDirectory()- Parameters:
workingDirectory- Specifies a working directory for a step. Overrides a job's working directory.- Returns:
this
-
build
@Stability(Experimental) public CheckoutOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CheckoutOptions>- Returns:
- a new instance of
CheckoutOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-