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

com.pulumi.azurenative.containerinstance.inputs.AzureFileVolumeArgs Maven / Gradle / Ivy

There is a newer version: 2.82.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.containerinstance.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;


/**
 * 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();

    /**
     * The flag indicating whether the Azure File shared mounted as a volume is read-only.
     * 
     */
    @Import(name="readOnly")
    private @Nullable Output readOnly;

    /**
     * @return The flag indicating whether the Azure File shared mounted as a volume is read-only.
     * 
     */
    public Optional> readOnly() {
        return Optional.ofNullable(this.readOnly);
    }

    /**
     * The name of the Azure File share to be mounted as a volume.
     * 
     */
    @Import(name="shareName", required=true)
    private Output shareName;

    /**
     * @return The name of the Azure File share to be mounted as a volume.
     * 
     */
    public Output shareName() {
        return this.shareName;
    }

    /**
     * The storage account access key used to access the Azure File share.
     * 
     */
    @Import(name="storageAccountKey")
    private @Nullable Output storageAccountKey;

    /**
     * @return The storage account access key used to access the Azure File share.
     * 
     */
    public Optional> storageAccountKey() {
        return Optional.ofNullable(this.storageAccountKey);
    }

    /**
     * The name of the storage account that contains the Azure File share.
     * 
     */
    @Import(name="storageAccountName", required=true)
    private Output storageAccountName;

    /**
     * @return The name of the storage account that contains the Azure File share.
     * 
     */
    public Output storageAccountName() {
        return this.storageAccountName;
    }

    private AzureFileVolumeArgs() {}

    private AzureFileVolumeArgs(AzureFileVolumeArgs $) {
        this.readOnly = $.readOnly;
        this.shareName = $.shareName;
        this.storageAccountKey = $.storageAccountKey;
        this.storageAccountName = $.storageAccountName;
    }

    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 readOnly The flag indicating whether the Azure File shared mounted as a volume is read-only.
         * 
         * @return builder
         * 
         */
        public Builder readOnly(@Nullable Output readOnly) {
            $.readOnly = readOnly;
            return this;
        }

        /**
         * @param readOnly The flag indicating whether the Azure File shared mounted as a volume is read-only.
         * 
         * @return builder
         * 
         */
        public Builder readOnly(Boolean readOnly) {
            return readOnly(Output.of(readOnly));
        }

        /**
         * @param shareName The name of the Azure File share to be mounted as a volume.
         * 
         * @return builder
         * 
         */
        public Builder shareName(Output shareName) {
            $.shareName = shareName;
            return this;
        }

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

        /**
         * @param storageAccountKey The storage account access key used to access the Azure File share.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountKey(@Nullable Output storageAccountKey) {
            $.storageAccountKey = storageAccountKey;
            return this;
        }

        /**
         * @param storageAccountKey The storage account access key used to access the Azure File share.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountKey(String storageAccountKey) {
            return storageAccountKey(Output.of(storageAccountKey));
        }

        /**
         * @param storageAccountName The name of the storage account that contains the Azure File share.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountName(Output storageAccountName) {
            $.storageAccountName = storageAccountName;
            return this;
        }

        /**
         * @param storageAccountName The name of the storage account that contains the Azure File share.
         * 
         * @return builder
         * 
         */
        public Builder storageAccountName(String storageAccountName) {
            return storageAccountName(Output.of(storageAccountName));
        }

        public AzureFileVolumeArgs build() {
            if ($.shareName == null) {
                throw new MissingRequiredPropertyException("AzureFileVolumeArgs", "shareName");
            }
            if ($.storageAccountName == null) {
                throw new MissingRequiredPropertyException("AzureFileVolumeArgs", "storageAccountName");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy