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

com.pulumi.azure.bot.ChannelDirectLineSpeechArgs 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.bot;

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 ChannelDirectLineSpeechArgs extends com.pulumi.resources.ResourceArgs {

    public static final ChannelDirectLineSpeechArgs Empty = new ChannelDirectLineSpeechArgs();

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

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

    /**
     * The ID of the Cognitive Account this Bot Channel should be associated with.
     * 
     */
    @Import(name="cognitiveAccountId")
    private @Nullable Output cognitiveAccountId;

    /**
     * @return The ID of the Cognitive Account this Bot Channel should be associated with.
     * 
     */
    public Optional> cognitiveAccountId() {
        return Optional.ofNullable(this.cognitiveAccountId);
    }

    /**
     * The access key to access the Cognitive Service.
     * 
     */
    @Import(name="cognitiveServiceAccessKey", required=true)
    private Output cognitiveServiceAccessKey;

    /**
     * @return The access key to access the Cognitive Service.
     * 
     */
    public Output cognitiveServiceAccessKey() {
        return this.cognitiveServiceAccessKey;
    }

    /**
     * Specifies the supported Azure location where the Cognitive Service resource exists.
     * 
     */
    @Import(name="cognitiveServiceLocation", required=true)
    private Output cognitiveServiceLocation;

    /**
     * @return Specifies the supported Azure location where the Cognitive Service resource exists.
     * 
     */
    public Output cognitiveServiceLocation() {
        return this.cognitiveServiceLocation;
    }

    /**
     * The custom speech model id for the Direct Line Speech Channel.
     * 
     */
    @Import(name="customSpeechModelId")
    private @Nullable Output customSpeechModelId;

    /**
     * @return The custom speech model id for the Direct Line Speech Channel.
     * 
     */
    public Optional> customSpeechModelId() {
        return Optional.ofNullable(this.customSpeechModelId);
    }

    /**
     * The custom voice deployment id for the Direct Line Speech Channel.
     * 
     */
    @Import(name="customVoiceDeploymentId")
    private @Nullable Output customVoiceDeploymentId;

    /**
     * @return The custom voice deployment id for the Direct Line Speech Channel.
     * 
     */
    public Optional> customVoiceDeploymentId() {
        return Optional.ofNullable(this.customVoiceDeploymentId);
    }

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

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

    /**
     * The name of the resource group where the Direct Line Speech Channel should be created. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group where the Direct Line Speech Channel should be created. Changing this forces a new resource to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private ChannelDirectLineSpeechArgs() {}

    private ChannelDirectLineSpeechArgs(ChannelDirectLineSpeechArgs $) {
        this.botName = $.botName;
        this.cognitiveAccountId = $.cognitiveAccountId;
        this.cognitiveServiceAccessKey = $.cognitiveServiceAccessKey;
        this.cognitiveServiceLocation = $.cognitiveServiceLocation;
        this.customSpeechModelId = $.customSpeechModelId;
        this.customVoiceDeploymentId = $.customVoiceDeploymentId;
        this.location = $.location;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private ChannelDirectLineSpeechArgs $;

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

        public Builder(ChannelDirectLineSpeechArgs defaults) {
            $ = new ChannelDirectLineSpeechArgs(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(Output 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 cognitiveAccountId The ID of the Cognitive Account this Bot Channel should be associated with.
         * 
         * @return builder
         * 
         */
        public Builder cognitiveAccountId(@Nullable Output cognitiveAccountId) {
            $.cognitiveAccountId = cognitiveAccountId;
            return this;
        }

        /**
         * @param cognitiveAccountId The ID of the Cognitive Account this Bot Channel should be associated with.
         * 
         * @return builder
         * 
         */
        public Builder cognitiveAccountId(String cognitiveAccountId) {
            return cognitiveAccountId(Output.of(cognitiveAccountId));
        }

        /**
         * @param cognitiveServiceAccessKey The access key to access the Cognitive Service.
         * 
         * @return builder
         * 
         */
        public Builder cognitiveServiceAccessKey(Output cognitiveServiceAccessKey) {
            $.cognitiveServiceAccessKey = cognitiveServiceAccessKey;
            return this;
        }

        /**
         * @param cognitiveServiceAccessKey The access key to access the Cognitive Service.
         * 
         * @return builder
         * 
         */
        public Builder cognitiveServiceAccessKey(String cognitiveServiceAccessKey) {
            return cognitiveServiceAccessKey(Output.of(cognitiveServiceAccessKey));
        }

        /**
         * @param cognitiveServiceLocation Specifies the supported Azure location where the Cognitive Service resource exists.
         * 
         * @return builder
         * 
         */
        public Builder cognitiveServiceLocation(Output cognitiveServiceLocation) {
            $.cognitiveServiceLocation = cognitiveServiceLocation;
            return this;
        }

        /**
         * @param cognitiveServiceLocation Specifies the supported Azure location where the Cognitive Service resource exists.
         * 
         * @return builder
         * 
         */
        public Builder cognitiveServiceLocation(String cognitiveServiceLocation) {
            return cognitiveServiceLocation(Output.of(cognitiveServiceLocation));
        }

        /**
         * @param customSpeechModelId The custom speech model id for the Direct Line Speech Channel.
         * 
         * @return builder
         * 
         */
        public Builder customSpeechModelId(@Nullable Output customSpeechModelId) {
            $.customSpeechModelId = customSpeechModelId;
            return this;
        }

        /**
         * @param customSpeechModelId The custom speech model id for the Direct Line Speech Channel.
         * 
         * @return builder
         * 
         */
        public Builder customSpeechModelId(String customSpeechModelId) {
            return customSpeechModelId(Output.of(customSpeechModelId));
        }

        /**
         * @param customVoiceDeploymentId The custom voice deployment id for the Direct Line Speech Channel.
         * 
         * @return builder
         * 
         */
        public Builder customVoiceDeploymentId(@Nullable Output customVoiceDeploymentId) {
            $.customVoiceDeploymentId = customVoiceDeploymentId;
            return this;
        }

        /**
         * @param customVoiceDeploymentId The custom voice deployment id for the Direct Line Speech Channel.
         * 
         * @return builder
         * 
         */
        public Builder customVoiceDeploymentId(String customVoiceDeploymentId) {
            return customVoiceDeploymentId(Output.of(customVoiceDeploymentId));
        }

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

        /**
         * @param location Specifies 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 where the Direct Line Speech Channel should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group where the Direct Line Speech Channel should be created. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        public ChannelDirectLineSpeechArgs build() {
            if ($.botName == null) {
                throw new MissingRequiredPropertyException("ChannelDirectLineSpeechArgs", "botName");
            }
            if ($.cognitiveServiceAccessKey == null) {
                throw new MissingRequiredPropertyException("ChannelDirectLineSpeechArgs", "cognitiveServiceAccessKey");
            }
            if ($.cognitiveServiceLocation == null) {
                throw new MissingRequiredPropertyException("ChannelDirectLineSpeechArgs", "cognitiveServiceLocation");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ChannelDirectLineSpeechArgs", "resourceGroupName");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy