@Stability(value=Experimental) public static final class DockerVolumeConfiguration.Builder extends Object implements software.amazon.jsii.Builder<DockerVolumeConfiguration>
DockerVolumeConfiguration| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
DockerVolumeConfiguration.Builder |
autoprovision(Boolean autoprovision)
Sets the value of
DockerVolumeConfiguration.getAutoprovision() |
DockerVolumeConfiguration |
build()
Builds the configured instance.
|
DockerVolumeConfiguration.Builder |
driver(String driver)
Sets the value of
DockerVolumeConfiguration.getDriver() |
DockerVolumeConfiguration.Builder |
driverOpts(Map<String,String> driverOpts)
Sets the value of
DockerVolumeConfiguration.getDriverOpts() |
DockerVolumeConfiguration.Builder |
labels(Map<String,String> labels)
Sets the value of
DockerVolumeConfiguration.getLabels() |
DockerVolumeConfiguration.Builder |
scope(Scope scope)
Sets the value of
DockerVolumeConfiguration.getScope() |
@Stability(value=Experimental) public DockerVolumeConfiguration.Builder driver(String driver)
DockerVolumeConfiguration.getDriver()driver - The Docker volume driver to use. This parameter is required.this@Stability(value=Experimental) public DockerVolumeConfiguration.Builder scope(Scope scope)
DockerVolumeConfiguration.getScope()scope - The scope for the Docker volume that determines its lifecycle. This parameter is required.this@Stability(value=Experimental) public DockerVolumeConfiguration.Builder autoprovision(Boolean autoprovision)
DockerVolumeConfiguration.getAutoprovision()autoprovision - Specifies whether the Docker volume should be created if it does not already exist.
If true is specified, the Docker volume will be created for you.this@Stability(value=Experimental) public DockerVolumeConfiguration.Builder driverOpts(Map<String,String> driverOpts)
DockerVolumeConfiguration.getDriverOpts()driverOpts - A map of Docker driver-specific options passed through.this@Stability(value=Experimental) public DockerVolumeConfiguration.Builder labels(Map<String,String> labels)
DockerVolumeConfiguration.getLabels()labels - Custom metadata to add to your Docker volume.this@Stability(value=Experimental) public DockerVolumeConfiguration build()
build in interface software.amazon.jsii.Builder<DockerVolumeConfiguration>DockerVolumeConfigurationNullPointerException - if any required attribute was not providedCopyright © 2021. All rights reserved.