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

com.pulumi.azurenative.app.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.app.inputs;

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


/**
 * Volume mount for the Container App.
 * 
 */
public final class VolumeMountArgs extends com.pulumi.resources.ResourceArgs {

    public static final VolumeMountArgs Empty = new VolumeMountArgs();

    /**
     * Path within the container at which the volume should be mounted.Must not contain ':'.
     * 
     */
    @Import(name="mountPath")
    private @Nullable Output mountPath;

    /**
     * @return Path within the container at which the volume should be mounted.Must not contain ':'.
     * 
     */
    public Optional> mountPath() {
        return Optional.ofNullable(this.mountPath);
    }

    /**
     * Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
     * 
     */
    @Import(name="subPath")
    private @Nullable Output subPath;

    /**
     * @return Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
     * 
     */
    public Optional> subPath() {
        return Optional.ofNullable(this.subPath);
    }

    /**
     * This must match the Name of a Volume.
     * 
     */
    @Import(name="volumeName")
    private @Nullable Output volumeName;

    /**
     * @return This must match the Name of a Volume.
     * 
     */
    public Optional> volumeName() {
        return Optional.ofNullable(this.volumeName);
    }

    private VolumeMountArgs() {}

    private VolumeMountArgs(VolumeMountArgs $) {
        this.mountPath = $.mountPath;
        this.subPath = $.subPath;
        this.volumeName = $.volumeName;
    }

    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 mountPath Path within the container at which the volume should be mounted.Must not contain ':'.
         * 
         * @return builder
         * 
         */
        public Builder mountPath(@Nullable Output mountPath) {
            $.mountPath = mountPath;
            return this;
        }

        /**
         * @param mountPath Path within the container at which the volume should be mounted.Must not contain ':'.
         * 
         * @return builder
         * 
         */
        public Builder mountPath(String mountPath) {
            return mountPath(Output.of(mountPath));
        }

        /**
         * @param subPath Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
         * 
         * @return builder
         * 
         */
        public Builder subPath(@Nullable Output subPath) {
            $.subPath = subPath;
            return this;
        }

        /**
         * @param subPath Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).
         * 
         * @return builder
         * 
         */
        public Builder subPath(String subPath) {
            return subPath(Output.of(subPath));
        }

        /**
         * @param volumeName This must match the Name of a Volume.
         * 
         * @return builder
         * 
         */
        public Builder volumeName(@Nullable Output volumeName) {
            $.volumeName = volumeName;
            return this;
        }

        /**
         * @param volumeName This must match the Name of a Volume.
         * 
         * @return builder
         * 
         */
        public Builder volumeName(String volumeName) {
            return volumeName(Output.of(volumeName));
        }

        public VolumeMountArgs build() {
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy