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

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

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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final EmailChannelPropertiesArgs Empty = new EmailChannelPropertiesArgs();

    /**
     * Email channel auth method. 0 Password (Default); 1 Graph.
     * 
     */
    @Import(name="authMethod")
    private @Nullable Output authMethod;

    /**
     * @return Email channel auth method. 0 Password (Default); 1 Graph.
     * 
     */
    public Optional> authMethod() {
        return Optional.ofNullable(this.authMethod);
    }

    /**
     * The email address
     * 
     */
    @Import(name="emailAddress", required=true)
    private Output emailAddress;

    /**
     * @return The email address
     * 
     */
    public Output emailAddress() {
        return this.emailAddress;
    }

    /**
     * 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 magic code for setting up the modern authentication.
     * 
     */
    @Import(name="magicCode")
    private @Nullable Output magicCode;

    /**
     * @return The magic code for setting up the modern authentication.
     * 
     */
    public Optional> magicCode() {
        return Optional.ofNullable(this.magicCode);
    }

    /**
     * The password for the email address. Value only returned through POST to the action Channel List API, otherwise empty.
     * 
     */
    @Import(name="password")
    private @Nullable Output password;

    /**
     * @return The password for the email address. Value only returned through POST to the action Channel List API, otherwise empty.
     * 
     */
    public Optional> password() {
        return Optional.ofNullable(this.password);
    }

    private EmailChannelPropertiesArgs() {}

    private EmailChannelPropertiesArgs(EmailChannelPropertiesArgs $) {
        this.authMethod = $.authMethod;
        this.emailAddress = $.emailAddress;
        this.isEnabled = $.isEnabled;
        this.magicCode = $.magicCode;
        this.password = $.password;
    }

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

    public static final class Builder {
        private EmailChannelPropertiesArgs $;

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

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

        /**
         * @param authMethod Email channel auth method. 0 Password (Default); 1 Graph.
         * 
         * @return builder
         * 
         */
        public Builder authMethod(@Nullable Output authMethod) {
            $.authMethod = authMethod;
            return this;
        }

        /**
         * @param authMethod Email channel auth method. 0 Password (Default); 1 Graph.
         * 
         * @return builder
         * 
         */
        public Builder authMethod(Double authMethod) {
            return authMethod(Output.of(authMethod));
        }

        /**
         * @param emailAddress The email address
         * 
         * @return builder
         * 
         */
        public Builder emailAddress(Output emailAddress) {
            $.emailAddress = emailAddress;
            return this;
        }

        /**
         * @param emailAddress The email address
         * 
         * @return builder
         * 
         */
        public Builder emailAddress(String emailAddress) {
            return emailAddress(Output.of(emailAddress));
        }

        /**
         * @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 magicCode The magic code for setting up the modern authentication.
         * 
         * @return builder
         * 
         */
        public Builder magicCode(@Nullable Output magicCode) {
            $.magicCode = magicCode;
            return this;
        }

        /**
         * @param magicCode The magic code for setting up the modern authentication.
         * 
         * @return builder
         * 
         */
        public Builder magicCode(String magicCode) {
            return magicCode(Output.of(magicCode));
        }

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

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

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy