Class CfnComponentVersion.LambdaVolumeMountProperty.Builder
java.lang.Object
software.amazon.awscdk.services.greengrassv2.CfnComponentVersion.LambdaVolumeMountProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnComponentVersion.LambdaVolumeMountProperty>
- Enclosing interface:
CfnComponentVersion.LambdaVolumeMountProperty
@Stability(Stable)
public static final class CfnComponentVersion.LambdaVolumeMountProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnComponentVersion.LambdaVolumeMountProperty>
A builder for
CfnComponentVersion.LambdaVolumeMountProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddGroupOwner(Boolean addGroupOwner) Sets the value ofCfnComponentVersion.LambdaVolumeMountProperty.getAddGroupOwner()addGroupOwner(IResolvable addGroupOwner) Sets the value ofCfnComponentVersion.LambdaVolumeMountProperty.getAddGroupOwner()build()Builds the configured instance.destinationPath(String destinationPath) Sets the value ofCfnComponentVersion.LambdaVolumeMountProperty.getDestinationPath()permission(String permission) Sets the value ofCfnComponentVersion.LambdaVolumeMountProperty.getPermission()sourcePath(String sourcePath) Sets the value ofCfnComponentVersion.LambdaVolumeMountProperty.getSourcePath()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addGroupOwner
@Stability(Stable) public CfnComponentVersion.LambdaVolumeMountProperty.Builder addGroupOwner(Boolean addGroupOwner) Sets the value ofCfnComponentVersion.LambdaVolumeMountProperty.getAddGroupOwner()- Parameters:
addGroupOwner- Whether or not to add the AWS IoT Greengrass user group as an owner of the volume. Default:false- Returns:
this
-
addGroupOwner
@Stability(Stable) public CfnComponentVersion.LambdaVolumeMountProperty.Builder addGroupOwner(IResolvable addGroupOwner) Sets the value ofCfnComponentVersion.LambdaVolumeMountProperty.getAddGroupOwner()- Parameters:
addGroupOwner- Whether or not to add the AWS IoT Greengrass user group as an owner of the volume. Default:false- Returns:
this
-
destinationPath
@Stability(Stable) public CfnComponentVersion.LambdaVolumeMountProperty.Builder destinationPath(String destinationPath) Sets the value ofCfnComponentVersion.LambdaVolumeMountProperty.getDestinationPath()- Parameters:
destinationPath- The path to the logical volume in the file system.- Returns:
this
-
permission
@Stability(Stable) public CfnComponentVersion.LambdaVolumeMountProperty.Builder permission(String permission) Sets the value ofCfnComponentVersion.LambdaVolumeMountProperty.getPermission()- Parameters:
permission- The permission to access the volume: read/only (ro) or read/write (rw). Default:ro- Returns:
this
-
sourcePath
@Stability(Stable) public CfnComponentVersion.LambdaVolumeMountProperty.Builder sourcePath(String sourcePath) Sets the value ofCfnComponentVersion.LambdaVolumeMountProperty.getSourcePath()- Parameters:
sourcePath- The path to the physical volume in the file system.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnComponentVersion.LambdaVolumeMountProperty>- Returns:
- a new instance of
CfnComponentVersion.LambdaVolumeMountProperty - Throws:
NullPointerException- if any required attribute was not provided
-