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

com.pulumi.azure.bot.ChannelEmailArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
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.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 ChannelEmailArgs extends com.pulumi.resources.ResourceArgs {

    public static final ChannelEmailArgs Empty = new ChannelEmailArgs();

    /**
     * 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 email address that the Bot will authenticate with.
     * 
     */
    @Import(name="emailAddress", required=true)
    private Output emailAddress;

    /**
     * @return The email address that the Bot will authenticate with.
     * 
     */
    public Output emailAddress() {
        return this.emailAddress;
    }

    /**
     * The email password that the Bot will authenticate with.
     * 
     */
    @Import(name="emailPassword")
    private @Nullable Output emailPassword;

    /**
     * @return The email password that the Bot will authenticate with.
     * 
     */
    public Optional> emailPassword() {
        return Optional.ofNullable(this.emailPassword);
    }

    /**
     * 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 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 magic code used to set up OAUTH authentication.
     * 
     */
    @Import(name="magicCode")
    private @Nullable Output magicCode;

    /**
     * @return The magic code used to set up OAUTH authentication.
     * 
     */
    public Optional> magicCode() {
        return Optional.ofNullable(this.magicCode);
    }

    /**
     * The name of the resource group in which to create the Bot Channel. Changing this forces a new resource to be created.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group in which to create the Bot Channel. Changing this forces a new resource to be created.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    private ChannelEmailArgs() {}

    private ChannelEmailArgs(ChannelEmailArgs $) {
        this.botName = $.botName;
        this.emailAddress = $.emailAddress;
        this.emailPassword = $.emailPassword;
        this.location = $.location;
        this.magicCode = $.magicCode;
        this.resourceGroupName = $.resourceGroupName;
    }

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

    public static final class Builder {
        private ChannelEmailArgs $;

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

        public Builder(ChannelEmailArgs defaults) {
            $ = new ChannelEmailArgs(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 emailAddress The email address that the Bot will authenticate with.
         * 
         * @return builder
         * 
         */
        public Builder emailAddress(Output emailAddress) {
            $.emailAddress = emailAddress;
            return this;
        }

        /**
         * @param emailAddress The email address that the Bot will authenticate with.
         * 
         * @return builder
         * 
         */
        public Builder emailAddress(String emailAddress) {
            return emailAddress(Output.of(emailAddress));
        }

        /**
         * @param emailPassword The email password that the Bot will authenticate with.
         * 
         * @return builder
         * 
         */
        public Builder emailPassword(@Nullable Output emailPassword) {
            $.emailPassword = emailPassword;
            return this;
        }

        /**
         * @param emailPassword The email password that the Bot will authenticate with.
         * 
         * @return builder
         * 
         */
        public Builder emailPassword(String emailPassword) {
            return emailPassword(Output.of(emailPassword));
        }

        /**
         * @param location 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 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 magicCode The magic code used to set up OAUTH authentication.
         * 
         * @return builder
         * 
         */
        public Builder magicCode(@Nullable Output magicCode) {
            $.magicCode = magicCode;
            return this;
        }

        /**
         * @param magicCode The magic code used to set up OAUTH authentication.
         * 
         * @return builder
         * 
         */
        public Builder magicCode(String magicCode) {
            return magicCode(Output.of(magicCode));
        }

        /**
         * @param resourceGroupName The name of the resource group in which to create the Bot Channel. 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 in which to create the Bot Channel. Changing this forces a new resource to be created.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

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

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy