All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.docker.outputs.ContainerMountVolumeOptions Maven / Gradle / Ivy

There is a newer version: 4.7.0-alpha.1705607229+34a07055
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.docker.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.docker.outputs.ContainerMountVolumeOptionsLabel;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ContainerMountVolumeOptions {
    /**
     * @return Name of the driver to use to create the volume.
     * 
     */
    private @Nullable String driverName;
    /**
     * @return key/value map of driver specific options.
     * 
     */
    private @Nullable Map driverOptions;
    /**
     * @return User-defined key/value metadata.
     * 
     */
    private @Nullable List labels;
    /**
     * @return Populate volume with data from the target.
     * 
     */
    private @Nullable Boolean noCopy;

    private ContainerMountVolumeOptions() {}
    /**
     * @return Name of the driver to use to create the volume.
     * 
     */
    public Optional driverName() {
        return Optional.ofNullable(this.driverName);
    }
    /**
     * @return key/value map of driver specific options.
     * 
     */
    public Map driverOptions() {
        return this.driverOptions == null ? Map.of() : this.driverOptions;
    }
    /**
     * @return User-defined key/value metadata.
     * 
     */
    public List labels() {
        return this.labels == null ? List.of() : this.labels;
    }
    /**
     * @return Populate volume with data from the target.
     * 
     */
    public Optional noCopy() {
        return Optional.ofNullable(this.noCopy);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(ContainerMountVolumeOptions defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String driverName;
        private @Nullable Map driverOptions;
        private @Nullable List labels;
        private @Nullable Boolean noCopy;
        public Builder() {}
        public Builder(ContainerMountVolumeOptions defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.driverName = defaults.driverName;
    	      this.driverOptions = defaults.driverOptions;
    	      this.labels = defaults.labels;
    	      this.noCopy = defaults.noCopy;
        }

        @CustomType.Setter
        public Builder driverName(@Nullable String driverName) {

            this.driverName = driverName;
            return this;
        }
        @CustomType.Setter
        public Builder driverOptions(@Nullable Map driverOptions) {

            this.driverOptions = driverOptions;
            return this;
        }
        @CustomType.Setter
        public Builder labels(@Nullable List labels) {

            this.labels = labels;
            return this;
        }
        public Builder labels(ContainerMountVolumeOptionsLabel... labels) {
            return labels(List.of(labels));
        }
        @CustomType.Setter
        public Builder noCopy(@Nullable Boolean noCopy) {

            this.noCopy = noCopy;
            return this;
        }
        public ContainerMountVolumeOptions build() {
            final var _resultValue = new ContainerMountVolumeOptions();
            _resultValue.driverName = driverName;
            _resultValue.driverOptions = driverOptions;
            _resultValue.labels = labels;
            _resultValue.noCopy = noCopy;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy