@Stability(value=Stable) public static final class DockerVolume.Builder extends Object implements software.amazon.jsii.Builder<DockerVolume>
DockerVolume
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
DockerVolume |
build()
Builds the configured instance.
|
DockerVolume.Builder |
consistency(DockerVolumeConsistency consistency)
Sets the value of
DockerVolume.getConsistency() |
DockerVolume.Builder |
containerPath(String containerPath)
Sets the value of
DockerVolume.getContainerPath() |
DockerVolume.Builder |
hostPath(String hostPath)
Sets the value of
DockerVolume.getHostPath() |
@Stability(value=Stable) public DockerVolume.Builder containerPath(String containerPath)
DockerVolume.getContainerPath()
containerPath
- The path where the file or directory is mounted in the container. This parameter is required.this
@Stability(value=Stable) public DockerVolume.Builder hostPath(String hostPath)
DockerVolume.getHostPath()
hostPath
- The path to the file or directory on the host machine. This parameter is required.this
@Stability(value=Stable) public DockerVolume.Builder consistency(DockerVolumeConsistency consistency)
DockerVolume.getConsistency()
consistency
- Mount consistency.
Only applicable for macOSthis
@Stability(value=Stable) public DockerVolume build()
build
in interface software.amazon.jsii.Builder<DockerVolume>
DockerVolume
NullPointerException
- if any required attribute was not providedCopyright © 2022. All rights reserved.