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

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

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


/**
 * The properties of the Azure File volume. Azure File shares are mounted as volumes.
 * 
 */
public final class AzureFileVolumeArgs extends com.pulumi.resources.ResourceArgs {

    public static final AzureFileVolumeArgs Empty = new AzureFileVolumeArgs();

    /**
     * If set to true, it will create and mount a dedicated directory for every individual app instance.
     * 
     */
    @Import(name="enableSubPath")
    private @Nullable Output enableSubPath;

    /**
     * @return If set to true, it will create and mount a dedicated directory for every individual app instance.
     * 
     */
    public Optional> enableSubPath() {
        return Optional.ofNullable(this.enableSubPath);
    }

    /**
     * These are the mount options for a persistent disk.
     * 
     */
    @Import(name="mountOptions")
    private @Nullable Output> mountOptions;

    /**
     * @return These are the mount options for a persistent disk.
     * 
     */
    public Optional>> mountOptions() {
        return Optional.ofNullable(this.mountOptions);
    }

    /**
     * The mount path of the persistent disk.
     * 
     */
    @Import(name="mountPath", required=true)
    private Output mountPath;

    /**
     * @return The mount path of the persistent disk.
     * 
     */
    public Output mountPath() {
        return this.mountPath;
    }

    /**
     * Indicates whether the persistent disk is a readOnly one.
     * 
     */
    @Import(name="readOnly")
    private @Nullable Output readOnly;

    /**
     * @return Indicates whether the persistent disk is a readOnly one.
     * 
     */
    public Optional> readOnly() {
        return Optional.ofNullable(this.readOnly);
    }

    /**
     * The share name of the Azure File share.
     * 
     */
    @Import(name="shareName")
    private @Nullable Output shareName;

    /**
     * @return The share name of the Azure File share.
     * 
     */
    public Optional> shareName() {
        return Optional.ofNullable(this.shareName);
    }

    /**
     * The type of the underlying resource to mount as a persistent disk.
     * Expected value is 'AzureFileVolume'.
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The type of the underlying resource to mount as a persistent disk.
     * Expected value is 'AzureFileVolume'.
     * 
     */
    public Output type() {
        return this.type;
    }

    private AzureFileVolumeArgs() {}

    private AzureFileVolumeArgs(AzureFileVolumeArgs $) {
        this.enableSubPath = $.enableSubPath;
        this.mountOptions = $.mountOptions;
        this.mountPath = $.mountPath;
        this.readOnly = $.readOnly;
        this.shareName = $.shareName;
        this.type = $.type;
    }

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

    public static final class Builder {
        private AzureFileVolumeArgs $;

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

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

        /**
         * @param enableSubPath If set to true, it will create and mount a dedicated directory for every individual app instance.
         * 
         * @return builder
         * 
         */
        public Builder enableSubPath(@Nullable Output enableSubPath) {
            $.enableSubPath = enableSubPath;
            return this;
        }

        /**
         * @param enableSubPath If set to true, it will create and mount a dedicated directory for every individual app instance.
         * 
         * @return builder
         * 
         */
        public Builder enableSubPath(Boolean enableSubPath) {
            return enableSubPath(Output.of(enableSubPath));
        }

        /**
         * @param mountOptions These are the mount options for a persistent disk.
         * 
         * @return builder
         * 
         */
        public Builder mountOptions(@Nullable Output> mountOptions) {
            $.mountOptions = mountOptions;
            return this;
        }

        /**
         * @param mountOptions These are the mount options for a persistent disk.
         * 
         * @return builder
         * 
         */
        public Builder mountOptions(List mountOptions) {
            return mountOptions(Output.of(mountOptions));
        }

        /**
         * @param mountOptions These are the mount options for a persistent disk.
         * 
         * @return builder
         * 
         */
        public Builder mountOptions(String... mountOptions) {
            return mountOptions(List.of(mountOptions));
        }

        /**
         * @param mountPath The mount path of the persistent disk.
         * 
         * @return builder
         * 
         */
        public Builder mountPath(Output mountPath) {
            $.mountPath = mountPath;
            return this;
        }

        /**
         * @param mountPath The mount path of the persistent disk.
         * 
         * @return builder
         * 
         */
        public Builder mountPath(String mountPath) {
            return mountPath(Output.of(mountPath));
        }

        /**
         * @param readOnly Indicates whether the persistent disk is a readOnly one.
         * 
         * @return builder
         * 
         */
        public Builder readOnly(@Nullable Output readOnly) {
            $.readOnly = readOnly;
            return this;
        }

        /**
         * @param readOnly Indicates whether the persistent disk is a readOnly one.
         * 
         * @return builder
         * 
         */
        public Builder readOnly(Boolean readOnly) {
            return readOnly(Output.of(readOnly));
        }

        /**
         * @param shareName The share name of the Azure File share.
         * 
         * @return builder
         * 
         */
        public Builder shareName(@Nullable Output shareName) {
            $.shareName = shareName;
            return this;
        }

        /**
         * @param shareName The share name of the Azure File share.
         * 
         * @return builder
         * 
         */
        public Builder shareName(String shareName) {
            return shareName(Output.of(shareName));
        }

        /**
         * @param type The type of the underlying resource to mount as a persistent disk.
         * Expected value is 'AzureFileVolume'.
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of the underlying resource to mount as a persistent disk.
         * Expected value is 'AzureFileVolume'.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public AzureFileVolumeArgs build() {
            $.enableSubPath = Codegen.booleanProp("enableSubPath").output().arg($.enableSubPath).def(false).getNullable();
            if ($.mountPath == null) {
                throw new MissingRequiredPropertyException("AzureFileVolumeArgs", "mountPath");
            }
            $.type = Codegen.stringProp("type").output().arg($.type).require();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy