Package io.github.cdklabs.projen.gitlab
Enum CachePolicy
- java.lang.Object
-
- java.lang.Enum<CachePolicy>
-
- io.github.cdklabs.projen.gitlab.CachePolicy
-
- All Implemented Interfaces:
Serializable,Comparable<CachePolicy>
@Generated(value="jsii-pacmak/1.96.0 (build 921e240)", date="2024-03-28T21:16:43.116Z") @Stability(Experimental) public enum CachePolicy extends Enum<CachePolicy>
(experimental) Configure the upload and download behaviour of a cache.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PULL(experimental) Only download the cache when the job starts, but never upload changes when the job finishes.PULL_PUSH(experimental) The job downloads the cache when the job starts, and uploads changes to the cache when the job ends.PUSH(experimental) Only upload a cache when the job finishes, but never download the cache when the job starts.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CachePolicyvalueOf(String name)Returns the enum constant of this type with the specified name.static CachePolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PULL
@Stability(Experimental) public static final CachePolicy PULL
(experimental) Only download the cache when the job starts, but never upload changes when the job finishes.
-
PUSH
@Stability(Experimental) public static final CachePolicy PUSH
(experimental) Only upload a cache when the job finishes, but never download the cache when the job starts.
-
PULL_PUSH
@Stability(Experimental) public static final CachePolicy PULL_PUSH
(experimental) The job downloads the cache when the job starts, and uploads changes to the cache when the job ends.
-
-
Method Detail
-
values
public static CachePolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CachePolicy c : CachePolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CachePolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-