@Stability(value=Stable) public static final class CfnProject.ProjectCacheProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnProject.ProjectCacheProperty>
CfnProject.ProjectCacheProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnProject.ProjectCacheProperty |
build()
Builds the configured instance.
|
CfnProject.ProjectCacheProperty.Builder |
location(String location)
Sets the value of
CfnProject.ProjectCacheProperty.getLocation() |
CfnProject.ProjectCacheProperty.Builder |
modes(List<String> modes)
Sets the value of
CfnProject.ProjectCacheProperty.getModes() |
CfnProject.ProjectCacheProperty.Builder |
type(String type)
Sets the value of
CfnProject.ProjectCacheProperty.getType() |
@Stability(value=Stable) public CfnProject.ProjectCacheProperty.Builder type(String type)
CfnProject.ProjectCacheProperty.getType()type - The type of cache used by the build project. Valid values include:. This parameter is required.
NO_CACHE : The build project does not use any cache.S3 : The build project reads and writes from and to S3.LOCAL : The build project stores a cache locally on a build host that is only available to that build host.this@Stability(value=Stable) public CfnProject.ProjectCacheProperty.Builder location(String location)
CfnProject.ProjectCacheProperty.getLocation()location - Information about the cache location:.
NO_CACHE or LOCAL : This value is ignored.S3 : This is the S3 bucket name/prefix.this@Stability(value=Stable) public CfnProject.ProjectCacheProperty.Builder modes(List<String> modes)
CfnProject.ProjectCacheProperty.getModes()modes - An array of strings that specify the local cache modes.
You can use one or more local cache modes at the same time. This is only used for LOCAL cache types.
Possible values are:
- You can use a Docker layer cache in the Linux environment only.
- The
privilegedflag must be set so that your project has the required Docker permissions.- You should consider the security implications before you use a Docker layer cache.
this@Stability(value=Stable) public CfnProject.ProjectCacheProperty build()
build in interface software.amazon.jsii.Builder<CfnProject.ProjectCacheProperty>CfnProject.ProjectCachePropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.