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

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


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

    public static final WebAppState Empty = new WebAppState();

    /**
     * The Application Insights API Key to associate with the Web App Bot.
     * 
     */
    @Import(name="developerAppInsightsApiKey")
    private @Nullable Output<String> developerAppInsightsApiKey;

    /**
     * @return The Application Insights API Key to associate with the Web App Bot.
     * 
     */
    public Optional<Output<String>> developerAppInsightsApiKey() {
        return Optional.ofNullable(this.developerAppInsightsApiKey);
    }

    /**
     * The Application Insights Application ID to associate with the Web App Bot.
     * 
     */
    @Import(name="developerAppInsightsApplicationId")
    private @Nullable Output<String> developerAppInsightsApplicationId;

    /**
     * @return The Application Insights Application ID to associate with the Web App Bot.
     * 
     */
    public Optional<Output<String>> developerAppInsightsApplicationId() {
        return Optional.ofNullable(this.developerAppInsightsApplicationId);
    }

    /**
     * The Application Insights Key to associate with the Web App Bot.
     * 
     */
    @Import(name="developerAppInsightsKey")
    private @Nullable Output<String> developerAppInsightsKey;

    /**
     * @return The Application Insights Key to associate with the Web App Bot.
     * 
     */
    public Optional<Output<String>> developerAppInsightsKey() {
        return Optional.ofNullable(this.developerAppInsightsKey);
    }

    /**
     * The name of the Web App Bot will be displayed as. This defaults to `name` if not specified.
     * 
     */
    @Import(name="displayName")
    private @Nullable Output<String> displayName;

    /**
     * @return The name of the Web App Bot will be displayed as. This defaults to `name` if not specified.
     * 
     */
    public Optional<Output<String>> displayName() {
        return Optional.ofNullable(this.displayName);
    }

    /**
     * The Web App Bot endpoint.
     * 
     */
    @Import(name="endpoint")
    private @Nullable Output<String> endpoint;

    /**
     * @return The Web App Bot endpoint.
     * 
     */
    public Optional<Output<String>> endpoint() {
        return Optional.ofNullable(this.endpoint);
    }

    /**
     * The supported Azure location where the resource exists. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="location")
    private @Nullable Output<String> location;

    /**
     * @return The supported Azure location where the resource exists. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * A list of LUIS App IDs to associate with the Web App Bot.
     * 
     */
    @Import(name="luisAppIds")
    private @Nullable Output<List<String>> luisAppIds;

    /**
     * @return A list of LUIS App IDs to associate with the Web App Bot.
     * 
     */
    public Optional<Output<List<String>>> luisAppIds() {
        return Optional.ofNullable(this.luisAppIds);
    }

    /**
     * The LUIS key to associate with the Web App Bot.
     * 
     */
    @Import(name="luisKey")
    private @Nullable Output<String> luisKey;

    /**
     * @return The LUIS key to associate with the Web App Bot.
     * 
     */
    public Optional<Output<String>> luisKey() {
        return Optional.ofNullable(this.luisKey);
    }

    /**
     * The Microsoft Application ID for the Web App Bot. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="microsoftAppId")
    private @Nullable Output<String> microsoftAppId;

    /**
     * @return The Microsoft Application ID for the Web App Bot. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> microsoftAppId() {
        return Optional.ofNullable(this.microsoftAppId);
    }

    /**
     * Specifies the name of the Web App Bot. Changing this forces a new resource to be created. Must be globally unique.
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return Specifies the name of the Web App Bot. Changing this forces a new resource to be created. Must be globally unique.
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The name of the resource group in which to create the Web App Bot. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName")
    private @Nullable Output<String> resourceGroupName;

    /**
     * @return The name of the resource group in which to create the Web App Bot. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * The SKU of the Web App Bot. Valid values include `F0` or `S1`. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="sku")
    private @Nullable Output<String> sku;

    /**
     * @return The SKU of the Web App Bot. Valid values include `F0` or `S1`. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> sku() {
        return Optional.ofNullable(this.sku);
    }

    /**
     * A mapping of tags to assign to the resource.
     * 
     */
    @Import(name="tags")
    private @Nullable Output<Map<String,String>> tags;

    /**
     * @return A mapping of tags to assign to the resource.
     * 
     */
    public Optional<Output<Map<String,String>>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private WebAppState() {}

    private WebAppState(WebAppState $) {
        this.developerAppInsightsApiKey = $.developerAppInsightsApiKey;
        this.developerAppInsightsApplicationId = $.developerAppInsightsApplicationId;
        this.developerAppInsightsKey = $.developerAppInsightsKey;
        this.displayName = $.displayName;
        this.endpoint = $.endpoint;
        this.location = $.location;
        this.luisAppIds = $.luisAppIds;
        this.luisKey = $.luisKey;
        this.microsoftAppId = $.microsoftAppId;
        this.name = $.name;
        this.resourceGroupName = $.resourceGroupName;
        this.sku = $.sku;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private WebAppState $;

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

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

        /**
         * @param developerAppInsightsApiKey The Application Insights API Key to associate with the Web App Bot.
         * 
         * @return builder
         * 
         */
        public Builder developerAppInsightsApiKey(@Nullable Output<String> developerAppInsightsApiKey) {
            $.developerAppInsightsApiKey = developerAppInsightsApiKey;
            return this;
        }

        /**
         * @param developerAppInsightsApiKey The Application Insights API Key to associate with the Web App Bot.
         * 
         * @return builder
         * 
         */
        public Builder developerAppInsightsApiKey(String developerAppInsightsApiKey) {
            return developerAppInsightsApiKey(Output.of(developerAppInsightsApiKey));
        }

        /**
         * @param developerAppInsightsApplicationId The Application Insights Application ID to associate with the Web App Bot.
         * 
         * @return builder
         * 
         */
        public Builder developerAppInsightsApplicationId(@Nullable Output<String> developerAppInsightsApplicationId) {
            $.developerAppInsightsApplicationId = developerAppInsightsApplicationId;
            return this;
        }

        /**
         * @param developerAppInsightsApplicationId The Application Insights Application ID to associate with the Web App Bot.
         * 
         * @return builder
         * 
         */
        public Builder developerAppInsightsApplicationId(String developerAppInsightsApplicationId) {
            return developerAppInsightsApplicationId(Output.of(developerAppInsightsApplicationId));
        }

        /**
         * @param developerAppInsightsKey The Application Insights Key to associate with the Web App Bot.
         * 
         * @return builder
         * 
         */
        public Builder developerAppInsightsKey(@Nullable Output<String> developerAppInsightsKey) {
            $.developerAppInsightsKey = developerAppInsightsKey;
            return this;
        }

        /**
         * @param developerAppInsightsKey The Application Insights Key to associate with the Web App Bot.
         * 
         * @return builder
         * 
         */
        public Builder developerAppInsightsKey(String developerAppInsightsKey) {
            return developerAppInsightsKey(Output.of(developerAppInsightsKey));
        }

        /**
         * @param displayName The name of the Web App Bot will be displayed as. This defaults to `name` if not specified.
         * 
         * @return builder
         * 
         */
        public Builder displayName(@Nullable Output<String> displayName) {
            $.displayName = displayName;
            return this;
        }

        /**
         * @param displayName The name of the Web App Bot will be displayed as. This defaults to `name` if not specified.
         * 
         * @return builder
         * 
         */
        public Builder displayName(String displayName) {
            return displayName(Output.of(displayName));
        }

        /**
         * @param endpoint The Web App Bot endpoint.
         * 
         * @return builder
         * 
         */
        public Builder endpoint(@Nullable Output<String> endpoint) {
            $.endpoint = endpoint;
            return this;
        }

        /**
         * @param endpoint The Web App Bot endpoint.
         * 
         * @return builder
         * 
         */
        public Builder endpoint(String endpoint) {
            return endpoint(Output.of(endpoint));
        }

        /**
         * @param location The supported Azure location where the resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output<String> location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The supported Azure location where the resource exists. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param luisAppIds A list of LUIS App IDs to associate with the Web App Bot.
         * 
         * @return builder
         * 
         */
        public Builder luisAppIds(@Nullable Output<List<String>> luisAppIds) {
            $.luisAppIds = luisAppIds;
            return this;
        }

        /**
         * @param luisAppIds A list of LUIS App IDs to associate with the Web App Bot.
         * 
         * @return builder
         * 
         */
        public Builder luisAppIds(List<String> luisAppIds) {
            return luisAppIds(Output.of(luisAppIds));
        }

        /**
         * @param luisAppIds A list of LUIS App IDs to associate with the Web App Bot.
         * 
         * @return builder
         * 
         */
        public Builder luisAppIds(String... luisAppIds) {
            return luisAppIds(List.of(luisAppIds));
        }

        /**
         * @param luisKey The LUIS key to associate with the Web App Bot.
         * 
         * @return builder
         * 
         */
        public Builder luisKey(@Nullable Output<String> luisKey) {
            $.luisKey = luisKey;
            return this;
        }

        /**
         * @param luisKey The LUIS key to associate with the Web App Bot.
         * 
         * @return builder
         * 
         */
        public Builder luisKey(String luisKey) {
            return luisKey(Output.of(luisKey));
        }

        /**
         * @param microsoftAppId The Microsoft Application ID for the Web App Bot. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder microsoftAppId(@Nullable Output<String> microsoftAppId) {
            $.microsoftAppId = microsoftAppId;
            return this;
        }

        /**
         * @param microsoftAppId The Microsoft Application ID for the Web App Bot. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder microsoftAppId(String microsoftAppId) {
            return microsoftAppId(Output.of(microsoftAppId));
        }

        /**
         * @param name Specifies the name of the Web App Bot. Changing this forces a new resource to be created. Must be globally unique.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Specifies the name of the Web App Bot. Changing this forces a new resource to be created. Must be globally unique.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the Web App Bot. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(@Nullable Output<String> resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the Web App Bot. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param sku The SKU of the Web App Bot. Valid values include `F0` or `S1`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output<String> sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku The SKU of the Web App Bot. Valid values include `F0` or `S1`. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder sku(String sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output<Map<String,String>> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags A mapping of tags to assign to the resource.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map<String,String> tags) {
            return tags(Output.of(tags));
        }

        public WebAppState build() {
            return $;
        }
    }

}
