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

com.pulumi.aws.pinpoint.EmailChannelArgs Maven / Gradle / Ivy

Go to download

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

There is a newer version: 6.60.0-alpha.1731982519
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.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 EmailChannelArgs extends com.pulumi.resources.ResourceArgs {

    public static final EmailChannelArgs Empty = new EmailChannelArgs();

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

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

    /**
     * The ARN of the Amazon SES configuration set that you want to apply to messages that you send through the channel.
     * 
     */
    @Import(name="configurationSet")
    private @Nullable Output configurationSet;

    /**
     * @return The ARN of the Amazon SES configuration set that you want to apply to messages that you send through the channel.
     * 
     */
    public Optional> configurationSet() {
        return Optional.ofNullable(this.configurationSet);
    }

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

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

    /**
     * The email address used to send emails from. You can use email only (`user{@literal @}example.com`) or friendly address (`User <user{@literal @}example.com>`). This field comply with [RFC 5322](https://www.ietf.org/rfc/rfc5322.txt).
     * 
     */
    @Import(name="fromAddress", required=true)
    private Output fromAddress;

    /**
     * @return The email address used to send emails from. You can use email only (`user{@literal @}example.com`) or friendly address (`User <user{@literal @}example.com>`). This field comply with [RFC 5322](https://www.ietf.org/rfc/rfc5322.txt).
     * 
     */
    public Output fromAddress() {
        return this.fromAddress;
    }

    /**
     * The ARN of an identity verified with SES.
     * 
     */
    @Import(name="identity", required=true)
    private Output identity;

    /**
     * @return The ARN of an identity verified with SES.
     * 
     */
    public Output identity() {
        return this.identity;
    }

    /**
     * The ARN of an IAM Role used to submit events to Mobile Analytics' event ingestion service.
     * 
     */
    @Import(name="roleArn")
    private @Nullable Output roleArn;

    /**
     * @return The ARN of an IAM Role used to submit events to Mobile Analytics' event ingestion service.
     * 
     */
    public Optional> roleArn() {
        return Optional.ofNullable(this.roleArn);
    }

    private EmailChannelArgs() {}

    private EmailChannelArgs(EmailChannelArgs $) {
        this.applicationId = $.applicationId;
        this.configurationSet = $.configurationSet;
        this.enabled = $.enabled;
        this.fromAddress = $.fromAddress;
        this.identity = $.identity;
        this.roleArn = $.roleArn;
    }

    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 applicationId The application ID.
         * 
         * @return builder
         * 
         */
        public Builder applicationId(Output applicationId) {
            $.applicationId = applicationId;
            return this;
        }

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

        /**
         * @param configurationSet The ARN of the Amazon SES configuration set that you want to apply to messages that you send through the channel.
         * 
         * @return builder
         * 
         */
        public Builder configurationSet(@Nullable Output configurationSet) {
            $.configurationSet = configurationSet;
            return this;
        }

        /**
         * @param configurationSet The ARN of the Amazon SES configuration set that you want to apply to messages that you send through the channel.
         * 
         * @return builder
         * 
         */
        public Builder configurationSet(String configurationSet) {
            return configurationSet(Output.of(configurationSet));
        }

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

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

        /**
         * @param fromAddress The email address used to send emails from. You can use email only (`user{@literal @}example.com`) or friendly address (`User <user{@literal @}example.com>`). This field comply with [RFC 5322](https://www.ietf.org/rfc/rfc5322.txt).
         * 
         * @return builder
         * 
         */
        public Builder fromAddress(Output fromAddress) {
            $.fromAddress = fromAddress;
            return this;
        }

        /**
         * @param fromAddress The email address used to send emails from. You can use email only (`user{@literal @}example.com`) or friendly address (`User <user{@literal @}example.com>`). This field comply with [RFC 5322](https://www.ietf.org/rfc/rfc5322.txt).
         * 
         * @return builder
         * 
         */
        public Builder fromAddress(String fromAddress) {
            return fromAddress(Output.of(fromAddress));
        }

        /**
         * @param identity The ARN of an identity verified with SES.
         * 
         * @return builder
         * 
         */
        public Builder identity(Output identity) {
            $.identity = identity;
            return this;
        }

        /**
         * @param identity The ARN of an identity verified with SES.
         * 
         * @return builder
         * 
         */
        public Builder identity(String identity) {
            return identity(Output.of(identity));
        }

        /**
         * @param roleArn The ARN of an IAM Role used to submit events to Mobile Analytics' event ingestion service.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(@Nullable Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn The ARN of an IAM Role used to submit events to Mobile Analytics' event ingestion service.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy