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

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

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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final SmsChannelPropertiesArgs Empty = new SmsChannelPropertiesArgs();

    /**
     * The Sms account SID. Value only returned through POST to the action Channel List API, otherwise empty.
     * 
     */
    @Import(name="accountSID", required=true)
    private Output accountSID;

    /**
     * @return The Sms account SID. Value only returned through POST to the action Channel List API, otherwise empty.
     * 
     */
    public Output accountSID() {
        return this.accountSID;
    }

    /**
     * The Sms auth token. Value only returned through POST to the action Channel List API, otherwise empty.
     * 
     */
    @Import(name="authToken")
    private @Nullable Output authToken;

    /**
     * @return The Sms auth token. Value only returned through POST to the action Channel List API, otherwise empty.
     * 
     */
    public Optional> authToken() {
        return Optional.ofNullable(this.authToken);
    }

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

    /**
     * Whether this channel is validated for the bot
     * 
     */
    @Import(name="isValidated")
    private @Nullable Output isValidated;

    /**
     * @return Whether this channel is validated for the bot
     * 
     */
    public Optional> isValidated() {
        return Optional.ofNullable(this.isValidated);
    }

    /**
     * The Sms phone
     * 
     */
    @Import(name="phone", required=true)
    private Output phone;

    /**
     * @return The Sms phone
     * 
     */
    public Output phone() {
        return this.phone;
    }

    private SmsChannelPropertiesArgs() {}

    private SmsChannelPropertiesArgs(SmsChannelPropertiesArgs $) {
        this.accountSID = $.accountSID;
        this.authToken = $.authToken;
        this.isEnabled = $.isEnabled;
        this.isValidated = $.isValidated;
        this.phone = $.phone;
    }

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

    public static final class Builder {
        private SmsChannelPropertiesArgs $;

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

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

        /**
         * @param accountSID The Sms account SID. Value only returned through POST to the action Channel List API, otherwise empty.
         * 
         * @return builder
         * 
         */
        public Builder accountSID(Output accountSID) {
            $.accountSID = accountSID;
            return this;
        }

        /**
         * @param accountSID The Sms account SID. Value only returned through POST to the action Channel List API, otherwise empty.
         * 
         * @return builder
         * 
         */
        public Builder accountSID(String accountSID) {
            return accountSID(Output.of(accountSID));
        }

        /**
         * @param authToken The Sms auth token. Value only returned through POST to the action Channel List API, otherwise empty.
         * 
         * @return builder
         * 
         */
        public Builder authToken(@Nullable Output authToken) {
            $.authToken = authToken;
            return this;
        }

        /**
         * @param authToken The Sms auth token. Value only returned through POST to the action Channel List API, otherwise empty.
         * 
         * @return builder
         * 
         */
        public Builder authToken(String authToken) {
            return authToken(Output.of(authToken));
        }

        /**
         * @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 isValidated Whether this channel is validated for the bot
         * 
         * @return builder
         * 
         */
        public Builder isValidated(@Nullable Output isValidated) {
            $.isValidated = isValidated;
            return this;
        }

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

        /**
         * @param phone The Sms phone
         * 
         * @return builder
         * 
         */
        public Builder phone(Output phone) {
            $.phone = phone;
            return this;
        }

        /**
         * @param phone The Sms phone
         * 
         * @return builder
         * 
         */
        public Builder phone(String phone) {
            return phone(Output.of(phone));
        }

        public SmsChannelPropertiesArgs build() {
            if ($.accountSID == null) {
                throw new MissingRequiredPropertyException("SmsChannelPropertiesArgs", "accountSID");
            }
            if ($.isEnabled == null) {
                throw new MissingRequiredPropertyException("SmsChannelPropertiesArgs", "isEnabled");
            }
            if ($.phone == null) {
                throw new MissingRequiredPropertyException("SmsChannelPropertiesArgs", "phone");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy