Package io.github.cdklabs.projen.gitlab
Class Retry.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.gitlab.Retry.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Retrybuild()Builds the configured instance.Retry.Buildermax(Number max)Sets the value ofRetry.getMax()Retry.Builderwhen(Object when)Sets the value ofRetry.getWhen()
-
-
-
Method Detail
-
max
@Stability(Experimental) public Retry.Builder max(Number max)
Sets the value ofRetry.getMax()- Parameters:
max- 0 (default), 1, or 2.- Returns:
this
-
when
@Stability(Experimental) public Retry.Builder when(Object when)
Sets the value ofRetry.getWhen()- Parameters:
when- Either a single or array of error types to trigger job retry.- Returns:
this
-
build
@Stability(Experimental) public Retry build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<Retry>- Returns:
- a new instance of
Retry - Throws:
NullPointerException- if any required attribute was not provided
-
-