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

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

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.azure.appservice.inputs;

import com.pulumi.azure.appservice.inputs.WindowsWebAppSiteConfigVirtualApplicationVirtualDirectoryArgs;
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.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final WindowsWebAppSiteConfigVirtualApplicationArgs Empty = new WindowsWebAppSiteConfigVirtualApplicationArgs();

    /**
     * The physical path for the Virtual Application.
     * 
     */
    @Import(name="physicalPath", required=true)
    private Output physicalPath;

    /**
     * @return The physical path for the Virtual Application.
     * 
     */
    public Output physicalPath() {
        return this.physicalPath;
    }

    /**
     * Should pre-loading be enabled.
     * 
     */
    @Import(name="preload", required=true)
    private Output preload;

    /**
     * @return Should pre-loading be enabled.
     * 
     */
    public Output preload() {
        return this.preload;
    }

    /**
     * One or more `virtual_directory` blocks as defined below.
     * 
     */
    @Import(name="virtualDirectories")
    private @Nullable Output> virtualDirectories;

    /**
     * @return One or more `virtual_directory` blocks as defined below.
     * 
     */
    public Optional>> virtualDirectories() {
        return Optional.ofNullable(this.virtualDirectories);
    }

    /**
     * The Virtual Path for the Virtual Application.
     * 
     */
    @Import(name="virtualPath", required=true)
    private Output virtualPath;

    /**
     * @return The Virtual Path for the Virtual Application.
     * 
     */
    public Output virtualPath() {
        return this.virtualPath;
    }

    private WindowsWebAppSiteConfigVirtualApplicationArgs() {}

    private WindowsWebAppSiteConfigVirtualApplicationArgs(WindowsWebAppSiteConfigVirtualApplicationArgs $) {
        this.physicalPath = $.physicalPath;
        this.preload = $.preload;
        this.virtualDirectories = $.virtualDirectories;
        this.virtualPath = $.virtualPath;
    }

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

    public static final class Builder {
        private WindowsWebAppSiteConfigVirtualApplicationArgs $;

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

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

        /**
         * @param physicalPath The physical path for the Virtual Application.
         * 
         * @return builder
         * 
         */
        public Builder physicalPath(Output physicalPath) {
            $.physicalPath = physicalPath;
            return this;
        }

        /**
         * @param physicalPath The physical path for the Virtual Application.
         * 
         * @return builder
         * 
         */
        public Builder physicalPath(String physicalPath) {
            return physicalPath(Output.of(physicalPath));
        }

        /**
         * @param preload Should pre-loading be enabled.
         * 
         * @return builder
         * 
         */
        public Builder preload(Output preload) {
            $.preload = preload;
            return this;
        }

        /**
         * @param preload Should pre-loading be enabled.
         * 
         * @return builder
         * 
         */
        public Builder preload(Boolean preload) {
            return preload(Output.of(preload));
        }

        /**
         * @param virtualDirectories One or more `virtual_directory` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder virtualDirectories(@Nullable Output> virtualDirectories) {
            $.virtualDirectories = virtualDirectories;
            return this;
        }

        /**
         * @param virtualDirectories One or more `virtual_directory` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder virtualDirectories(List virtualDirectories) {
            return virtualDirectories(Output.of(virtualDirectories));
        }

        /**
         * @param virtualDirectories One or more `virtual_directory` blocks as defined below.
         * 
         * @return builder
         * 
         */
        public Builder virtualDirectories(WindowsWebAppSiteConfigVirtualApplicationVirtualDirectoryArgs... virtualDirectories) {
            return virtualDirectories(List.of(virtualDirectories));
        }

        /**
         * @param virtualPath The Virtual Path for the Virtual Application.
         * 
         * @return builder
         * 
         */
        public Builder virtualPath(Output virtualPath) {
            $.virtualPath = virtualPath;
            return this;
        }

        /**
         * @param virtualPath The Virtual Path for the Virtual Application.
         * 
         * @return builder
         * 
         */
        public Builder virtualPath(String virtualPath) {
            return virtualPath(Output.of(virtualPath));
        }

        public WindowsWebAppSiteConfigVirtualApplicationArgs build() {
            if ($.physicalPath == null) {
                throw new MissingRequiredPropertyException("WindowsWebAppSiteConfigVirtualApplicationArgs", "physicalPath");
            }
            if ($.preload == null) {
                throw new MissingRequiredPropertyException("WindowsWebAppSiteConfigVirtualApplicationArgs", "preload");
            }
            if ($.virtualPath == null) {
                throw new MissingRequiredPropertyException("WindowsWebAppSiteConfigVirtualApplicationArgs", "virtualPath");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy