Class BucketCacheOptions.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.BucketCacheOptions.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<BucketCacheOptions>
- Enclosing interface:
BucketCacheOptions
@Stability(Stable)
public static final class BucketCacheOptions.Builder
extends Object
implements software.amazon.jsii.Builder<BucketCacheOptions>
A builder for
BucketCacheOptions-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.cacheNamespace(String cacheNamespace) Sets the value ofBucketCacheOptions.getCacheNamespace()Sets the value ofBucketCacheOptions.getPrefix()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cacheNamespace
Sets the value ofBucketCacheOptions.getCacheNamespace()- Parameters:
cacheNamespace- Defines the scope of the cache. You can use this namespace to share a cache across multiple projects.- Returns:
this
-
prefix
Sets the value ofBucketCacheOptions.getPrefix()- Parameters:
prefix- The prefix to use to store the cache in the bucket.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<BucketCacheOptions>- Returns:
- a new instance of
BucketCacheOptions - Throws:
NullPointerException- if any required attribute was not provided
-