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

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

import com.pulumi.azurenative.botservice.inputs.EmailChannelPropertiesArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Email channel definition
 * 
 */
public final class EmailChannelArgs extends com.pulumi.resources.ResourceArgs {

    public static final EmailChannelArgs Empty = new EmailChannelArgs();

    /**
     * The channel name
     * Expected value is 'EmailChannel'.
     * 
     */
    @Import(name="channelName", required=true)
    private Output channelName;

    /**
     * @return The channel name
     * Expected value is 'EmailChannel'.
     * 
     */
    public Output channelName() {
        return this.channelName;
    }

    /**
     * Entity Tag of the resource
     * 
     */
    @Import(name="etag")
    private @Nullable Output etag;

    /**
     * @return Entity Tag of the resource
     * 
     */
    public Optional> etag() {
        return Optional.ofNullable(this.etag);
    }

    /**
     * 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 email channel resource
     * 
     */
    @Import(name="properties")
    private @Nullable Output properties;

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

    private EmailChannelArgs() {}

    private EmailChannelArgs(EmailChannelArgs $) {
        this.channelName = $.channelName;
        this.etag = $.etag;
        this.location = $.location;
        this.properties = $.properties;
    }

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

    public static final class Builder {
        private EmailChannelArgs $;

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

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

        /**
         * @param channelName The channel name
         * Expected value is 'EmailChannel'.
         * 
         * @return builder
         * 
         */
        public Builder channelName(Output channelName) {
            $.channelName = channelName;
            return this;
        }

        /**
         * @param channelName The channel name
         * Expected value is 'EmailChannel'.
         * 
         * @return builder
         * 
         */
        public Builder channelName(String channelName) {
            return channelName(Output.of(channelName));
        }

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

        /**
         * @param etag Entity Tag of the resource
         * 
         * @return builder
         * 
         */
        public Builder etag(String etag) {
            return etag(Output.of(etag));
        }

        /**
         * @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 email channel resource
         * 
         * @return builder
         * 
         */
        public Builder properties(@Nullable Output properties) {
            $.properties = properties;
            return this;
        }

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

        public EmailChannelArgs build() {
            $.channelName = Codegen.stringProp("channelName").output().arg($.channelName).require();
            $.location = Codegen.stringProp("location").output().arg($.location).def("global").getNullable();
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy