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

com.pulumi.aws.pinpoint.SmsChannelArgs 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.aws.pinpoint;

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;


public final class SmsChannelArgs extends com.pulumi.resources.ResourceArgs {

    public static final SmsChannelArgs Empty = new SmsChannelArgs();

    /**
     * ID of the application.
     * 
     */
    @Import(name="applicationId", required=true)
    private Output applicationId;

    /**
     * @return ID of the application.
     * 
     */
    public Output applicationId() {
        return this.applicationId;
    }

    /**
     * Whether the channel is enabled or disabled. By default, it is set to `true`.
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return Whether the channel is enabled or disabled. By default, it is set to `true`.
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * Identifier of the sender for your messages.
     * 
     */
    @Import(name="senderId")
    private @Nullable Output senderId;

    /**
     * @return Identifier of the sender for your messages.
     * 
     */
    public Optional> senderId() {
        return Optional.ofNullable(this.senderId);
    }

    /**
     * Short Code registered with the phone provider.
     * 
     */
    @Import(name="shortCode")
    private @Nullable Output shortCode;

    /**
     * @return Short Code registered with the phone provider.
     * 
     */
    public Optional> shortCode() {
        return Optional.ofNullable(this.shortCode);
    }

    private SmsChannelArgs() {}

    private SmsChannelArgs(SmsChannelArgs $) {
        this.applicationId = $.applicationId;
        this.enabled = $.enabled;
        this.senderId = $.senderId;
        this.shortCode = $.shortCode;
    }

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

    public static final class Builder {
        private SmsChannelArgs $;

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

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

        /**
         * @param applicationId ID of the application.
         * 
         * @return builder
         * 
         */
        public Builder applicationId(Output applicationId) {
            $.applicationId = applicationId;
            return this;
        }

        /**
         * @param applicationId ID of the application.
         * 
         * @return builder
         * 
         */
        public Builder applicationId(String applicationId) {
            return applicationId(Output.of(applicationId));
        }

        /**
         * @param enabled Whether the channel is enabled or disabled. By default, it is set to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled Whether the channel is enabled or disabled. By default, it is set to `true`.
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param senderId Identifier of the sender for your messages.
         * 
         * @return builder
         * 
         */
        public Builder senderId(@Nullable Output senderId) {
            $.senderId = senderId;
            return this;
        }

        /**
         * @param senderId Identifier of the sender for your messages.
         * 
         * @return builder
         * 
         */
        public Builder senderId(String senderId) {
            return senderId(Output.of(senderId));
        }

        /**
         * @param shortCode Short Code registered with the phone provider.
         * 
         * @return builder
         * 
         */
        public Builder shortCode(@Nullable Output shortCode) {
            $.shortCode = shortCode;
            return this;
        }

        /**
         * @param shortCode Short Code registered with the phone provider.
         * 
         * @return builder
         * 
         */
        public Builder shortCode(String shortCode) {
            return shortCode(Output.of(shortCode));
        }

        public SmsChannelArgs build() {
            if ($.applicationId == null) {
                throw new MissingRequiredPropertyException("SmsChannelArgs", "applicationId");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy