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

com.pulumi.azure.appservice.inputs.LinuxWebAppSlotStorageAccountArgs Maven / Gradle / Ivy

// *** 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.azure.appservice.inputs;

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


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

    public static final LinuxWebAppSlotStorageAccountArgs Empty = new LinuxWebAppSlotStorageAccountArgs();

    /**
     * The Access key for the storage account.
     * 
     */
    @Import(name="accessKey", required=true)
    private Output accessKey;

    /**
     * @return The Access key for the storage account.
     * 
     */
    public Output accessKey() {
        return this.accessKey;
    }

    /**
     * The Name of the Storage Account.
     * 
     */
    @Import(name="accountName", required=true)
    private Output accountName;

    /**
     * @return The Name of the Storage Account.
     * 
     */
    public Output accountName() {
        return this.accountName;
    }

    /**
     * The path at which to mount the storage share.
     * 
     */
    @Import(name="mountPath")
    private @Nullable Output mountPath;

    /**
     * @return The path at which to mount the storage share.
     * 
     */
    public Optional> mountPath() {
        return Optional.ofNullable(this.mountPath);
    }

    /**
     * The name which should be used for this Storage Account.
     * 
     */
    @Import(name="name", required=true)
    private Output name;

    /**
     * @return The name which should be used for this Storage Account.
     * 
     */
    public Output name() {
        return this.name;
    }

    /**
     * The Name of the File Share or Container Name for Blob storage.
     * 
     */
    @Import(name="shareName", required=true)
    private Output shareName;

    /**
     * @return The Name of the File Share or Container Name for Blob storage.
     * 
     */
    public Output shareName() {
        return this.shareName;
    }

    /**
     * The Azure Storage Type. Possible values include `AzureFiles` and `AzureBlob`
     * 
     */
    @Import(name="type", required=true)
    private Output type;

    /**
     * @return The Azure Storage Type. Possible values include `AzureFiles` and `AzureBlob`
     * 
     */
    public Output type() {
        return this.type;
    }

    private LinuxWebAppSlotStorageAccountArgs() {}

    private LinuxWebAppSlotStorageAccountArgs(LinuxWebAppSlotStorageAccountArgs $) {
        this.accessKey = $.accessKey;
        this.accountName = $.accountName;
        this.mountPath = $.mountPath;
        this.name = $.name;
        this.shareName = $.shareName;
        this.type = $.type;
    }

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

    public static final class Builder {
        private LinuxWebAppSlotStorageAccountArgs $;

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

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

        /**
         * @param accessKey The Access key for the storage account.
         * 
         * @return builder
         * 
         */
        public Builder accessKey(Output accessKey) {
            $.accessKey = accessKey;
            return this;
        }

        /**
         * @param accessKey The Access key for the storage account.
         * 
         * @return builder
         * 
         */
        public Builder accessKey(String accessKey) {
            return accessKey(Output.of(accessKey));
        }

        /**
         * @param accountName The Name of the Storage Account.
         * 
         * @return builder
         * 
         */
        public Builder accountName(Output accountName) {
            $.accountName = accountName;
            return this;
        }

        /**
         * @param accountName The Name of the Storage Account.
         * 
         * @return builder
         * 
         */
        public Builder accountName(String accountName) {
            return accountName(Output.of(accountName));
        }

        /**
         * @param mountPath The path at which to mount the storage share.
         * 
         * @return builder
         * 
         */
        public Builder mountPath(@Nullable Output mountPath) {
            $.mountPath = mountPath;
            return this;
        }

        /**
         * @param mountPath The path at which to mount the storage share.
         * 
         * @return builder
         * 
         */
        public Builder mountPath(String mountPath) {
            return mountPath(Output.of(mountPath));
        }

        /**
         * @param name The name which should be used for this Storage Account.
         * 
         * @return builder
         * 
         */
        public Builder name(Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name which should be used for this Storage Account.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param shareName The Name of the File Share or Container Name for Blob storage.
         * 
         * @return builder
         * 
         */
        public Builder shareName(Output shareName) {
            $.shareName = shareName;
            return this;
        }

        /**
         * @param shareName The Name of the File Share or Container Name for Blob storage.
         * 
         * @return builder
         * 
         */
        public Builder shareName(String shareName) {
            return shareName(Output.of(shareName));
        }

        /**
         * @param type The Azure Storage Type. Possible values include `AzureFiles` and `AzureBlob`
         * 
         * @return builder
         * 
         */
        public Builder type(Output type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The Azure Storage Type. Possible values include `AzureFiles` and `AzureBlob`
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

        public LinuxWebAppSlotStorageAccountArgs build() {
            if ($.accessKey == null) {
                throw new MissingRequiredPropertyException("LinuxWebAppSlotStorageAccountArgs", "accessKey");
            }
            if ($.accountName == null) {
                throw new MissingRequiredPropertyException("LinuxWebAppSlotStorageAccountArgs", "accountName");
            }
            if ($.name == null) {
                throw new MissingRequiredPropertyException("LinuxWebAppSlotStorageAccountArgs", "name");
            }
            if ($.shareName == null) {
                throw new MissingRequiredPropertyException("LinuxWebAppSlotStorageAccountArgs", "shareName");
            }
            if ($.type == null) {
                throw new MissingRequiredPropertyException("LinuxWebAppSlotStorageAccountArgs", "type");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy