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

com.pulumi.azurenative.botservice.ChannelArgs Maven / Gradle / Ivy

There is a newer version: 2.78.0
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.azurenative.botservice;

import com.pulumi.azurenative.botservice.enums.Kind;
import com.pulumi.azurenative.botservice.inputs.AcsChatChannelArgs;
import com.pulumi.azurenative.botservice.inputs.AlexaChannelArgs;
import com.pulumi.azurenative.botservice.inputs.DirectLineChannelArgs;
import com.pulumi.azurenative.botservice.inputs.DirectLineSpeechChannelArgs;
import com.pulumi.azurenative.botservice.inputs.EmailChannelArgs;
import com.pulumi.azurenative.botservice.inputs.FacebookChannelArgs;
import com.pulumi.azurenative.botservice.inputs.KikChannelArgs;
import com.pulumi.azurenative.botservice.inputs.LineChannelArgs;
import com.pulumi.azurenative.botservice.inputs.M365ExtensionsArgs;
import com.pulumi.azurenative.botservice.inputs.MsTeamsChannelArgs;
import com.pulumi.azurenative.botservice.inputs.OmnichannelArgs;
import com.pulumi.azurenative.botservice.inputs.OutlookChannelArgs;
import com.pulumi.azurenative.botservice.inputs.SearchAssistantArgs;
import com.pulumi.azurenative.botservice.inputs.SkuArgs;
import com.pulumi.azurenative.botservice.inputs.SkypeChannelArgs;
import com.pulumi.azurenative.botservice.inputs.SlackChannelArgs;
import com.pulumi.azurenative.botservice.inputs.SmsChannelArgs;
import com.pulumi.azurenative.botservice.inputs.TelegramChannelArgs;
import com.pulumi.azurenative.botservice.inputs.TelephonyChannelArgs;
import com.pulumi.azurenative.botservice.inputs.WebChatChannelArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Object;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ChannelArgs Empty = new ChannelArgs();

    /**
     * The name of the Channel resource.
     * 
     */
    @Import(name="channelName")
    private @Nullable Output channelName;

    /**
     * @return The name of the Channel resource.
     * 
     */
    public Optional> channelName() {
        return Optional.ofNullable(this.channelName);
    }

    /**
     * Required. Gets or sets the Kind of the resource.
     * 
     */
    @Import(name="kind")
    private @Nullable Output> kind;

    /**
     * @return Required. Gets or sets the Kind of the resource.
     * 
     */
    public Optional>> kind() {
        return Optional.ofNullable(this.kind);
    }

    /**
     * Specifies the location of the resource.
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return Specifies the location of the resource.
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The set of properties specific to bot channel resource
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

    /**
     * @return The set of properties specific to bot channel resource
     * 
     */
    public Optional> properties() {
        return Optional.ofNullable(this.properties);
    }

    /**
     * The name of the Bot resource group in the user subscription.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the Bot resource group in the user subscription.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the Bot resource.
     * 
     */
    @Import(name="resourceName", required=true)
    private Output resourceName;

    /**
     * @return The name of the Bot resource.
     * 
     */
    public Output resourceName() {
        return this.resourceName;
    }

    /**
     * Gets or sets the SKU of the resource.
     * 
     */
    @Import(name="sku")
    private @Nullable Output sku;

    /**
     * @return Gets or sets the SKU of the resource.
     * 
     */
    public Optional> sku() {
        return Optional.ofNullable(this.sku);
    }

    /**
     * Contains resource tags defined as key/value pairs.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Contains resource tags defined as key/value pairs.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private ChannelArgs() {}

    private ChannelArgs(ChannelArgs $) {
        this.channelName = $.channelName;
        this.kind = $.kind;
        this.location = $.location;
        this.properties = $.properties;
        this.resourceGroupName = $.resourceGroupName;
        this.resourceName = $.resourceName;
        this.sku = $.sku;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ChannelArgs $;

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

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

        /**
         * @param channelName The name of the Channel resource.
         * 
         * @return builder
         * 
         */
        public Builder channelName(@Nullable Output channelName) {
            $.channelName = channelName;
            return this;
        }

        /**
         * @param channelName The name of the Channel resource.
         * 
         * @return builder
         * 
         */
        public Builder channelName(String channelName) {
            return channelName(Output.of(channelName));
        }

        /**
         * @param kind Required. Gets or sets the Kind of the resource.
         * 
         * @return builder
         * 
         */
        public Builder kind(@Nullable Output> kind) {
            $.kind = kind;
            return this;
        }

        /**
         * @param kind Required. Gets or sets the Kind of the resource.
         * 
         * @return builder
         * 
         */
        public Builder kind(Either kind) {
            return kind(Output.of(kind));
        }

        /**
         * @param kind Required. Gets or sets the Kind of the resource.
         * 
         * @return builder
         * 
         */
        public Builder kind(String kind) {
            return kind(Either.ofLeft(kind));
        }

        /**
         * @param kind Required. Gets or sets the Kind of the resource.
         * 
         * @return builder
         * 
         */
        public Builder kind(Kind kind) {
            return kind(Either.ofRight(kind));
        }

        /**
         * @param location Specifies the location of the resource.
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location Specifies the location of the resource.
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param properties The set of properties specific to bot channel resource
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

        /**
         * @param properties The set of properties specific to bot channel resource
         * 
         * @return builder
         * 
         */
        public Builder properties(Object properties) {
            return properties(Output.of(properties));
        }

        /**
         * @param resourceGroupName The name of the Bot resource group in the user subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the Bot resource group in the user subscription.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param resourceName The name of the Bot resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceName(Output resourceName) {
            $.resourceName = resourceName;
            return this;
        }

        /**
         * @param resourceName The name of the Bot resource.
         * 
         * @return builder
         * 
         */
        public Builder resourceName(String resourceName) {
            return resourceName(Output.of(resourceName));
        }

        /**
         * @param sku Gets or sets the SKU of the resource.
         * 
         * @return builder
         * 
         */
        public Builder sku(@Nullable Output sku) {
            $.sku = sku;
            return this;
        }

        /**
         * @param sku Gets or sets the SKU of the resource.
         * 
         * @return builder
         * 
         */
        public Builder sku(SkuArgs sku) {
            return sku(Output.of(sku));
        }

        /**
         * @param tags Contains resource tags defined as key/value pairs.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Contains resource tags defined as key/value pairs.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public ChannelArgs build() {
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ChannelArgs", "resourceGroupName");
            }
            if ($.resourceName == null) {
                throw new MissingRequiredPropertyException("ChannelArgs", "resourceName");
            }
            return $;
        }
    }

}