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

com.pulumi.azure.appservice.inputs.WindowsWebAppSlotSiteConfigVirtualApplicationArgs 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.WindowsWebAppSlotSiteConfigVirtualApplicationVirtualDirectoryArgs;
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 WindowsWebAppSlotSiteConfigVirtualApplicationArgs extends com.pulumi.resources.ResourceArgs {

    public static final WindowsWebAppSlotSiteConfigVirtualApplicationArgs Empty = new WindowsWebAppSlotSiteConfigVirtualApplicationArgs();

    /**
     * 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 WindowsWebAppSlotSiteConfigVirtualApplicationArgs() {}

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

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

    public static final class Builder {
        private WindowsWebAppSlotSiteConfigVirtualApplicationArgs $;

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

        public Builder(WindowsWebAppSlotSiteConfigVirtualApplicationArgs defaults) {
            $ = new WindowsWebAppSlotSiteConfigVirtualApplicationArgs(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(WindowsWebAppSlotSiteConfigVirtualApplicationVirtualDirectoryArgs... 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 WindowsWebAppSlotSiteConfigVirtualApplicationArgs build() {
            if ($.physicalPath == null) {
                throw new MissingRequiredPropertyException("WindowsWebAppSlotSiteConfigVirtualApplicationArgs", "physicalPath");
            }
            if ($.preload == null) {
                throw new MissingRequiredPropertyException("WindowsWebAppSlotSiteConfigVirtualApplicationArgs", "preload");
            }
            if ($.virtualPath == null) {
                throw new MissingRequiredPropertyException("WindowsWebAppSlotSiteConfigVirtualApplicationArgs", "virtualPath");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy