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

com.pulumi.aws.ses.TemplateArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The 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.aws.ses;

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 TemplateArgs extends com.pulumi.resources.ResourceArgs {

    public static final TemplateArgs Empty = new TemplateArgs();

    /**
     * The HTML body of the email. Must be less than 500KB in size, including both the text and HTML parts.
     * 
     */
    @Import(name="html")
    private @Nullable Output html;

    /**
     * @return The HTML body of the email. Must be less than 500KB in size, including both the text and HTML parts.
     * 
     */
    public Optional> html() {
        return Optional.ofNullable(this.html);
    }

    /**
     * The name of the template. Cannot exceed 64 characters. You will refer to this name when you send email.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the template. Cannot exceed 64 characters. You will refer to this name when you send email.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The subject line of the email.
     * 
     */
    @Import(name="subject")
    private @Nullable Output subject;

    /**
     * @return The subject line of the email.
     * 
     */
    public Optional> subject() {
        return Optional.ofNullable(this.subject);
    }

    /**
     * The email body that will be visible to recipients whose email clients do not display HTML. Must be less than 500KB in size, including both the text and HTML parts.
     * 
     */
    @Import(name="text")
    private @Nullable Output text;

    /**
     * @return The email body that will be visible to recipients whose email clients do not display HTML. Must be less than 500KB in size, including both the text and HTML parts.
     * 
     */
    public Optional> text() {
        return Optional.ofNullable(this.text);
    }

    private TemplateArgs() {}

    private TemplateArgs(TemplateArgs $) {
        this.html = $.html;
        this.name = $.name;
        this.subject = $.subject;
        this.text = $.text;
    }

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

    public static final class Builder {
        private TemplateArgs $;

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

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

        /**
         * @param html The HTML body of the email. Must be less than 500KB in size, including both the text and HTML parts.
         * 
         * @return builder
         * 
         */
        public Builder html(@Nullable Output html) {
            $.html = html;
            return this;
        }

        /**
         * @param html The HTML body of the email. Must be less than 500KB in size, including both the text and HTML parts.
         * 
         * @return builder
         * 
         */
        public Builder html(String html) {
            return html(Output.of(html));
        }

        /**
         * @param name The name of the template. Cannot exceed 64 characters. You will refer to this name when you send email.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The name of the template. Cannot exceed 64 characters. You will refer to this name when you send email.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param subject The subject line of the email.
         * 
         * @return builder
         * 
         */
        public Builder subject(@Nullable Output subject) {
            $.subject = subject;
            return this;
        }

        /**
         * @param subject The subject line of the email.
         * 
         * @return builder
         * 
         */
        public Builder subject(String subject) {
            return subject(Output.of(subject));
        }

        /**
         * @param text The email body that will be visible to recipients whose email clients do not display HTML. Must be less than 500KB in size, including both the text and HTML parts.
         * 
         * @return builder
         * 
         */
        public Builder text(@Nullable Output text) {
            $.text = text;
            return this;
        }

        /**
         * @param text The email body that will be visible to recipients whose email clients do not display HTML. Must be less than 500KB in size, including both the text and HTML parts.
         * 
         * @return builder
         * 
         */
        public Builder text(String text) {
            return text(Output.of(text));
        }

        public TemplateArgs build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy