Class CfnProject.ProjectFileSystemLocationProperty.Builder
java.lang.Object
software.amazon.awscdk.services.codebuild.CfnProject.ProjectFileSystemLocationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnProject.ProjectFileSystemLocationProperty>
- Enclosing interface:
CfnProject.ProjectFileSystemLocationProperty
@Stability(Stable)
public static final class CfnProject.ProjectFileSystemLocationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnProject.ProjectFileSystemLocationProperty>
A builder for
CfnProject.ProjectFileSystemLocationProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.identifier
(String identifier) Sets the value ofCfnProject.ProjectFileSystemLocationProperty.getIdentifier()
Sets the value ofCfnProject.ProjectFileSystemLocationProperty.getLocation()
mountOptions
(String mountOptions) Sets the value ofCfnProject.ProjectFileSystemLocationProperty.getMountOptions()
mountPoint
(String mountPoint) Sets the value ofCfnProject.ProjectFileSystemLocationProperty.getMountPoint()
Sets the value ofCfnProject.ProjectFileSystemLocationProperty.getType()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
identifier
@Stability(Stable) public CfnProject.ProjectFileSystemLocationProperty.Builder identifier(String identifier) Sets the value ofCfnProject.ProjectFileSystemLocationProperty.getIdentifier()
- Parameters:
identifier
- The name used to access a file system created by Amazon EFS. This parameter is required. CodeBuild creates an environment variable by appending theidentifier
in all capital letters toCODEBUILD_
. For example, if you specifymy_efs
foridentifier
, a new environment variable is create namedCODEBUILD_MY_EFS
.The
identifier
is used to mount your file system.- Returns:
this
-
location
@Stability(Stable) public CfnProject.ProjectFileSystemLocationProperty.Builder location(String location) Sets the value ofCfnProject.ProjectFileSystemLocationProperty.getLocation()
- Parameters:
location
- A string that specifies the location of the file system created by Amazon EFS. This parameter is required. Its format isefs-dns-name:/directory-path
. You can find the DNS name of file system when you view it in the Amazon EFS console. The directory path is a path to a directory in the file system that CodeBuild mounts. For example, if the DNS name of a file system isfs-abcd1234.efs.us-west-2.amazonaws.com
, and its mount directory ismy-efs-mount-directory
, then thelocation
isfs-abcd1234.efs.us-west-2.amazonaws.com:/my-efs-mount-directory
.The directory path in the format
efs-dns-name:/directory-path
is optional. If you do not specify a directory path, the location is only the DNS name and CodeBuild mounts the entire file system.- Returns:
this
-
mountPoint
@Stability(Stable) public CfnProject.ProjectFileSystemLocationProperty.Builder mountPoint(String mountPoint) Sets the value ofCfnProject.ProjectFileSystemLocationProperty.getMountPoint()
- Parameters:
mountPoint
- The location in the container where you mount the file system. This parameter is required.- Returns:
this
-
type
Sets the value ofCfnProject.ProjectFileSystemLocationProperty.getType()
- Parameters:
type
- The type of the file system. This parameter is required. The one supported type isEFS
.- Returns:
this
-
mountOptions
@Stability(Stable) public CfnProject.ProjectFileSystemLocationProperty.Builder mountOptions(String mountOptions) Sets the value ofCfnProject.ProjectFileSystemLocationProperty.getMountOptions()
- Parameters:
mountOptions
- The mount options for a file system created by Amazon EFS. The default mount options used by CodeBuild arenfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2
. For more information, see Recommended NFS Mount Options .- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnProject.ProjectFileSystemLocationProperty>
- Returns:
- a new instance of
CfnProject.ProjectFileSystemLocationProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-