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

com.pulumi.azurenative.web.inputs.VolumeMountArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.web.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class VolumeMountArgs extends com.pulumi.resources.ResourceArgs {

    public static final VolumeMountArgs Empty = new VolumeMountArgs();

    /**
     * Target path on the container where volume is mounted on
     * 
     */
    @Import(name="containerMountPath", required=true)
    private Output containerMountPath;

    /**
     * @return Target path on the container where volume is mounted on
     * 
     */
    public Output containerMountPath() {
        return this.containerMountPath;
    }

    /**
     * Config Data to be mounted on the volume
     * 
     */
    @Import(name="data")
    private @Nullable Output data;

    /**
     * @return Config Data to be mounted on the volume
     * 
     */
    public Optional> data() {
        return Optional.ofNullable(this.data);
    }

    /**
     * Boolean to specify if the mount is read only on the container
     * 
     */
    @Import(name="readOnly")
    private @Nullable Output readOnly;

    /**
     * @return Boolean to specify if the mount is read only on the container
     * 
     */
    public Optional> readOnly() {
        return Optional.ofNullable(this.readOnly);
    }

    /**
     * Sub path in the volume where volume is mounted from.
     * 
     */
    @Import(name="volumeSubPath", required=true)
    private Output volumeSubPath;

    /**
     * @return Sub path in the volume where volume is mounted from.
     * 
     */
    public Output volumeSubPath() {
        return this.volumeSubPath;
    }

    private VolumeMountArgs() {}

    private VolumeMountArgs(VolumeMountArgs $) {
        this.containerMountPath = $.containerMountPath;
        this.data = $.data;
        this.readOnly = $.readOnly;
        this.volumeSubPath = $.volumeSubPath;
    }

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

    public static final class Builder {
        private VolumeMountArgs $;

        public Builder() {
            $ = new VolumeMountArgs();
        }

        public Builder(VolumeMountArgs defaults) {
            $ = new VolumeMountArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param containerMountPath Target path on the container where volume is mounted on
         * 
         * @return builder
         * 
         */
        public Builder containerMountPath(Output containerMountPath) {
            $.containerMountPath = containerMountPath;
            return this;
        }

        /**
         * @param containerMountPath Target path on the container where volume is mounted on
         * 
         * @return builder
         * 
         */
        public Builder containerMountPath(String containerMountPath) {
            return containerMountPath(Output.of(containerMountPath));
        }

        /**
         * @param data Config Data to be mounted on the volume
         * 
         * @return builder
         * 
         */
        public Builder data(@Nullable Output data) {
            $.data = data;
            return this;
        }

        /**
         * @param data Config Data to be mounted on the volume
         * 
         * @return builder
         * 
         */
        public Builder data(String data) {
            return data(Output.of(data));
        }

        /**
         * @param readOnly Boolean to specify if the mount is read only on the container
         * 
         * @return builder
         * 
         */
        public Builder readOnly(@Nullable Output readOnly) {
            $.readOnly = readOnly;
            return this;
        }

        /**
         * @param readOnly Boolean to specify if the mount is read only on the container
         * 
         * @return builder
         * 
         */
        public Builder readOnly(Boolean readOnly) {
            return readOnly(Output.of(readOnly));
        }

        /**
         * @param volumeSubPath Sub path in the volume where volume is mounted from.
         * 
         * @return builder
         * 
         */
        public Builder volumeSubPath(Output volumeSubPath) {
            $.volumeSubPath = volumeSubPath;
            return this;
        }

        /**
         * @param volumeSubPath Sub path in the volume where volume is mounted from.
         * 
         * @return builder
         * 
         */
        public Builder volumeSubPath(String volumeSubPath) {
            return volumeSubPath(Output.of(volumeSubPath));
        }

        public VolumeMountArgs build() {
            if ($.containerMountPath == null) {
                throw new MissingRequiredPropertyException("VolumeMountArgs", "containerMountPath");
            }
            if ($.volumeSubPath == null) {
                throw new MissingRequiredPropertyException("VolumeMountArgs", "volumeSubPath");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy