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

com.pulumi.aws.cognito.inputs.UserPoolVerificationMessageTemplateArgs 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.cognito.inputs;

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


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

    public static final UserPoolVerificationMessageTemplateArgs Empty = new UserPoolVerificationMessageTemplateArgs();

    /**
     * Default email option. Must be either `CONFIRM_WITH_CODE` or `CONFIRM_WITH_LINK`. Defaults to `CONFIRM_WITH_CODE`.
     * 
     */
    @Import(name="defaultEmailOption")
    private @Nullable Output defaultEmailOption;

    /**
     * @return Default email option. Must be either `CONFIRM_WITH_CODE` or `CONFIRM_WITH_LINK`. Defaults to `CONFIRM_WITH_CODE`.
     * 
     */
    public Optional> defaultEmailOption() {
        return Optional.ofNullable(this.defaultEmailOption);
    }

    /**
     * Email message template. Must contain the `{####}` placeholder. Conflicts with `email_verification_message` argument.
     * 
     */
    @Import(name="emailMessage")
    private @Nullable Output emailMessage;

    /**
     * @return Email message template. Must contain the `{####}` placeholder. Conflicts with `email_verification_message` argument.
     * 
     */
    public Optional> emailMessage() {
        return Optional.ofNullable(this.emailMessage);
    }

    /**
     * Email message template for sending a confirmation link to the user, it must contain the `{##Click Here##}` placeholder.
     * 
     */
    @Import(name="emailMessageByLink")
    private @Nullable Output emailMessageByLink;

    /**
     * @return Email message template for sending a confirmation link to the user, it must contain the `{##Click Here##}` placeholder.
     * 
     */
    public Optional> emailMessageByLink() {
        return Optional.ofNullable(this.emailMessageByLink);
    }

    /**
     * Subject line for the email message template. Conflicts with `email_verification_subject` argument.
     * 
     */
    @Import(name="emailSubject")
    private @Nullable Output emailSubject;

    /**
     * @return Subject line for the email message template. Conflicts with `email_verification_subject` argument.
     * 
     */
    public Optional> emailSubject() {
        return Optional.ofNullable(this.emailSubject);
    }

    /**
     * Subject line for the email message template for sending a confirmation link to the user.
     * 
     */
    @Import(name="emailSubjectByLink")
    private @Nullable Output emailSubjectByLink;

    /**
     * @return Subject line for the email message template for sending a confirmation link to the user.
     * 
     */
    public Optional> emailSubjectByLink() {
        return Optional.ofNullable(this.emailSubjectByLink);
    }

    /**
     * SMS message template. Must contain the `{####}` placeholder. Conflicts with `sms_verification_message` argument.
     * 
     */
    @Import(name="smsMessage")
    private @Nullable Output smsMessage;

    /**
     * @return SMS message template. Must contain the `{####}` placeholder. Conflicts with `sms_verification_message` argument.
     * 
     */
    public Optional> smsMessage() {
        return Optional.ofNullable(this.smsMessage);
    }

    private UserPoolVerificationMessageTemplateArgs() {}

    private UserPoolVerificationMessageTemplateArgs(UserPoolVerificationMessageTemplateArgs $) {
        this.defaultEmailOption = $.defaultEmailOption;
        this.emailMessage = $.emailMessage;
        this.emailMessageByLink = $.emailMessageByLink;
        this.emailSubject = $.emailSubject;
        this.emailSubjectByLink = $.emailSubjectByLink;
        this.smsMessage = $.smsMessage;
    }

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

    public static final class Builder {
        private UserPoolVerificationMessageTemplateArgs $;

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

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

        /**
         * @param defaultEmailOption Default email option. Must be either `CONFIRM_WITH_CODE` or `CONFIRM_WITH_LINK`. Defaults to `CONFIRM_WITH_CODE`.
         * 
         * @return builder
         * 
         */
        public Builder defaultEmailOption(@Nullable Output defaultEmailOption) {
            $.defaultEmailOption = defaultEmailOption;
            return this;
        }

        /**
         * @param defaultEmailOption Default email option. Must be either `CONFIRM_WITH_CODE` or `CONFIRM_WITH_LINK`. Defaults to `CONFIRM_WITH_CODE`.
         * 
         * @return builder
         * 
         */
        public Builder defaultEmailOption(String defaultEmailOption) {
            return defaultEmailOption(Output.of(defaultEmailOption));
        }

        /**
         * @param emailMessage Email message template. Must contain the `{####}` placeholder. Conflicts with `email_verification_message` argument.
         * 
         * @return builder
         * 
         */
        public Builder emailMessage(@Nullable Output emailMessage) {
            $.emailMessage = emailMessage;
            return this;
        }

        /**
         * @param emailMessage Email message template. Must contain the `{####}` placeholder. Conflicts with `email_verification_message` argument.
         * 
         * @return builder
         * 
         */
        public Builder emailMessage(String emailMessage) {
            return emailMessage(Output.of(emailMessage));
        }

        /**
         * @param emailMessageByLink Email message template for sending a confirmation link to the user, it must contain the `{##Click Here##}` placeholder.
         * 
         * @return builder
         * 
         */
        public Builder emailMessageByLink(@Nullable Output emailMessageByLink) {
            $.emailMessageByLink = emailMessageByLink;
            return this;
        }

        /**
         * @param emailMessageByLink Email message template for sending a confirmation link to the user, it must contain the `{##Click Here##}` placeholder.
         * 
         * @return builder
         * 
         */
        public Builder emailMessageByLink(String emailMessageByLink) {
            return emailMessageByLink(Output.of(emailMessageByLink));
        }

        /**
         * @param emailSubject Subject line for the email message template. Conflicts with `email_verification_subject` argument.
         * 
         * @return builder
         * 
         */
        public Builder emailSubject(@Nullable Output emailSubject) {
            $.emailSubject = emailSubject;
            return this;
        }

        /**
         * @param emailSubject Subject line for the email message template. Conflicts with `email_verification_subject` argument.
         * 
         * @return builder
         * 
         */
        public Builder emailSubject(String emailSubject) {
            return emailSubject(Output.of(emailSubject));
        }

        /**
         * @param emailSubjectByLink Subject line for the email message template for sending a confirmation link to the user.
         * 
         * @return builder
         * 
         */
        public Builder emailSubjectByLink(@Nullable Output emailSubjectByLink) {
            $.emailSubjectByLink = emailSubjectByLink;
            return this;
        }

        /**
         * @param emailSubjectByLink Subject line for the email message template for sending a confirmation link to the user.
         * 
         * @return builder
         * 
         */
        public Builder emailSubjectByLink(String emailSubjectByLink) {
            return emailSubjectByLink(Output.of(emailSubjectByLink));
        }

        /**
         * @param smsMessage SMS message template. Must contain the `{####}` placeholder. Conflicts with `sms_verification_message` argument.
         * 
         * @return builder
         * 
         */
        public Builder smsMessage(@Nullable Output smsMessage) {
            $.smsMessage = smsMessage;
            return this;
        }

        /**
         * @param smsMessage SMS message template. Must contain the `{####}` placeholder. Conflicts with `sms_verification_message` argument.
         * 
         * @return builder
         * 
         */
        public Builder smsMessage(String smsMessage) {
            return smsMessage(Output.of(smsMessage));
        }

        public UserPoolVerificationMessageTemplateArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy