Package io.github.cdklabs.projen.gitlab
Class CacheKeyFiles.Builder
- java.lang.Object
-
- io.github.cdklabs.projen.gitlab.CacheKeyFiles.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CacheKeyFiles>
- Enclosing interface:
- CacheKeyFiles
@Stability(Experimental) public static final class CacheKeyFiles.Builder extends Object implements software.amazon.jsii.Builder<CacheKeyFiles>
A builder forCacheKeyFiles
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheKeyFilesbuild()Builds the configured instance.CacheKeyFiles.Builderfiles(List<String> files)Sets the value ofCacheKeyFiles.getFiles()CacheKeyFiles.Builderprefix(String prefix)Sets the value ofCacheKeyFiles.getPrefix()
-
-
-
Method Detail
-
files
@Stability(Experimental) public CacheKeyFiles.Builder files(List<String> files)
Sets the value ofCacheKeyFiles.getFiles()- Parameters:
files- The files that are checked against. This parameter is required. If the SHA checksum changes, the cache becomes invalid.- Returns:
this
-
prefix
@Stability(Experimental) public CacheKeyFiles.Builder prefix(String prefix)
Sets the value ofCacheKeyFiles.getPrefix()- Parameters:
prefix- Adds a custom prefix to the checksums computed.- Returns:
this
-
build
@Stability(Experimental) public CacheKeyFiles build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CacheKeyFiles>- Returns:
- a new instance of
CacheKeyFiles - Throws:
NullPointerException- if any required attribute was not provided
-
-