// *** 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.azure.bot.inputs.ChannelDirectLineSiteArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ChannelDirectLineState Empty = new ChannelDirectLineState();

    /**
     * The name of the Bot Resource this channel will be associated with. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="botName")
    private @Nullable Output<String> botName;

    /**
     * @return The name of the Bot Resource this channel will be associated with. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> botName() {
        return Optional.ofNullable(this.botName);
    }

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

    /**
     * The name of the resource group in which to create the Bot Channel. 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 Bot Channel. Changing this forces a new resource to be created.
     * 
     */
    public Optional<Output<String>> resourceGroupName() {
        return Optional.ofNullable(this.resourceGroupName);
    }

    /**
     * A site represents a client application that you want to connect to your bot. Multiple `site` blocks may be defined as below
     * 
     */
    @Import(name="sites")
    private @Nullable Output<List<ChannelDirectLineSiteArgs>> sites;

    /**
     * @return A site represents a client application that you want to connect to your bot. Multiple `site` blocks may be defined as below
     * 
     */
    public Optional<Output<List<ChannelDirectLineSiteArgs>>> sites() {
        return Optional.ofNullable(this.sites);
    }

    private ChannelDirectLineState() {}

    private ChannelDirectLineState(ChannelDirectLineState $) {
        this.botName = $.botName;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
        this.sites = $.sites;
    }

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

    public static final class Builder {
        private ChannelDirectLineState $;

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

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

        /**
         * @param botName The name of the Bot Resource this channel will be associated with. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder botName(@Nullable Output<String> botName) {
            $.botName = botName;
            return this;
        }

        /**
         * @param botName The name of the Bot Resource this channel will be associated with. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder botName(String botName) {
            return botName(Output.of(botName));
        }

        /**
         * @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 resourceGroupName The name of the resource group in which to create the Bot Channel. 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 Bot Channel. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param sites A site represents a client application that you want to connect to your bot. Multiple `site` blocks may be defined as below
         * 
         * @return builder
         * 
         */
        public Builder sites(@Nullable Output<List<ChannelDirectLineSiteArgs>> sites) {
            $.sites = sites;
            return this;
        }

        /**
         * @param sites A site represents a client application that you want to connect to your bot. Multiple `site` blocks may be defined as below
         * 
         * @return builder
         * 
         */
        public Builder sites(List<ChannelDirectLineSiteArgs> sites) {
            return sites(Output.of(sites));
        }

        /**
         * @param sites A site represents a client application that you want to connect to your bot. Multiple `site` blocks may be defined as below
         * 
         * @return builder
         * 
         */
        public Builder sites(ChannelDirectLineSiteArgs... sites) {
            return sites(List.of(sites));
        }

        public ChannelDirectLineState build() {
            return $;
        }
    }

}
