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

com.pulumi.azurenative.botservice.inputs.FacebookChannelPropertiesArgs Maven / Gradle / Ivy

There is a newer version: 2.89.2
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.inputs;

import com.pulumi.azurenative.botservice.inputs.FacebookPageArgs;
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;


/**
 * The parameters to provide for the Facebook channel.
 * 
 */
public final class FacebookChannelPropertiesArgs extends com.pulumi.resources.ResourceArgs {

    public static final FacebookChannelPropertiesArgs Empty = new FacebookChannelPropertiesArgs();

    /**
     * Facebook application id
     * 
     */
    @Import(name="appId", required=true)
    private Output appId;

    /**
     * @return Facebook application id
     * 
     */
    public Output appId() {
        return this.appId;
    }

    /**
     * Facebook application secret. Value only returned through POST to the action Channel List API, otherwise empty.
     * 
     */
    @Import(name="appSecret")
    private @Nullable Output appSecret;

    /**
     * @return Facebook application secret. Value only returned through POST to the action Channel List API, otherwise empty.
     * 
     */
    public Optional> appSecret() {
        return Optional.ofNullable(this.appSecret);
    }

    /**
     * Whether this channel is enabled for the bot
     * 
     */
    @Import(name="isEnabled", required=true)
    private Output isEnabled;

    /**
     * @return Whether this channel is enabled for the bot
     * 
     */
    public Output isEnabled() {
        return this.isEnabled;
    }

    /**
     * The list of Facebook pages
     * 
     */
    @Import(name="pages")
    private @Nullable Output> pages;

    /**
     * @return The list of Facebook pages
     * 
     */
    public Optional>> pages() {
        return Optional.ofNullable(this.pages);
    }

    private FacebookChannelPropertiesArgs() {}

    private FacebookChannelPropertiesArgs(FacebookChannelPropertiesArgs $) {
        this.appId = $.appId;
        this.appSecret = $.appSecret;
        this.isEnabled = $.isEnabled;
        this.pages = $.pages;
    }

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

    public static final class Builder {
        private FacebookChannelPropertiesArgs $;

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

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

        /**
         * @param appId Facebook application id
         * 
         * @return builder
         * 
         */
        public Builder appId(Output appId) {
            $.appId = appId;
            return this;
        }

        /**
         * @param appId Facebook application id
         * 
         * @return builder
         * 
         */
        public Builder appId(String appId) {
            return appId(Output.of(appId));
        }

        /**
         * @param appSecret Facebook application secret. Value only returned through POST to the action Channel List API, otherwise empty.
         * 
         * @return builder
         * 
         */
        public Builder appSecret(@Nullable Output appSecret) {
            $.appSecret = appSecret;
            return this;
        }

        /**
         * @param appSecret Facebook application secret. Value only returned through POST to the action Channel List API, otherwise empty.
         * 
         * @return builder
         * 
         */
        public Builder appSecret(String appSecret) {
            return appSecret(Output.of(appSecret));
        }

        /**
         * @param isEnabled Whether this channel is enabled for the bot
         * 
         * @return builder
         * 
         */
        public Builder isEnabled(Output isEnabled) {
            $.isEnabled = isEnabled;
            return this;
        }

        /**
         * @param isEnabled Whether this channel is enabled for the bot
         * 
         * @return builder
         * 
         */
        public Builder isEnabled(Boolean isEnabled) {
            return isEnabled(Output.of(isEnabled));
        }

        /**
         * @param pages The list of Facebook pages
         * 
         * @return builder
         * 
         */
        public Builder pages(@Nullable Output> pages) {
            $.pages = pages;
            return this;
        }

        /**
         * @param pages The list of Facebook pages
         * 
         * @return builder
         * 
         */
        public Builder pages(List pages) {
            return pages(Output.of(pages));
        }

        /**
         * @param pages The list of Facebook pages
         * 
         * @return builder
         * 
         */
        public Builder pages(FacebookPageArgs... pages) {
            return pages(List.of(pages));
        }

        public FacebookChannelPropertiesArgs build() {
            if ($.appId == null) {
                throw new MissingRequiredPropertyException("FacebookChannelPropertiesArgs", "appId");
            }
            if ($.isEnabled == null) {
                throw new MissingRequiredPropertyException("FacebookChannelPropertiesArgs", "isEnabled");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy