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

com.pulumi.aws.sesv2.EmailIdentityMailFromAttributesArgs 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.sesv2;

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


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

    public static final EmailIdentityMailFromAttributesArgs Empty = new EmailIdentityMailFromAttributesArgs();

    /**
     * The action to take if the required MX record isn't found when you send an email. Valid values: `USE_DEFAULT_VALUE`, `REJECT_MESSAGE`.
     * 
     */
    @Import(name="behaviorOnMxFailure")
    private @Nullable Output behaviorOnMxFailure;

    /**
     * @return The action to take if the required MX record isn't found when you send an email. Valid values: `USE_DEFAULT_VALUE`, `REJECT_MESSAGE`.
     * 
     */
    public Optional> behaviorOnMxFailure() {
        return Optional.ofNullable(this.behaviorOnMxFailure);
    }

    /**
     * The verified email identity.
     * 
     */
    @Import(name="emailIdentity", required=true)
    private Output emailIdentity;

    /**
     * @return The verified email identity.
     * 
     */
    public Output emailIdentity() {
        return this.emailIdentity;
    }

    /**
     * The custom MAIL FROM domain that you want the verified identity to use. Required if `behavior_on_mx_failure` is `REJECT_MESSAGE`.
     * 
     */
    @Import(name="mailFromDomain")
    private @Nullable Output mailFromDomain;

    /**
     * @return The custom MAIL FROM domain that you want the verified identity to use. Required if `behavior_on_mx_failure` is `REJECT_MESSAGE`.
     * 
     */
    public Optional> mailFromDomain() {
        return Optional.ofNullable(this.mailFromDomain);
    }

    private EmailIdentityMailFromAttributesArgs() {}

    private EmailIdentityMailFromAttributesArgs(EmailIdentityMailFromAttributesArgs $) {
        this.behaviorOnMxFailure = $.behaviorOnMxFailure;
        this.emailIdentity = $.emailIdentity;
        this.mailFromDomain = $.mailFromDomain;
    }

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

    public static final class Builder {
        private EmailIdentityMailFromAttributesArgs $;

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

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

        /**
         * @param behaviorOnMxFailure The action to take if the required MX record isn't found when you send an email. Valid values: `USE_DEFAULT_VALUE`, `REJECT_MESSAGE`.
         * 
         * @return builder
         * 
         */
        public Builder behaviorOnMxFailure(@Nullable Output behaviorOnMxFailure) {
            $.behaviorOnMxFailure = behaviorOnMxFailure;
            return this;
        }

        /**
         * @param behaviorOnMxFailure The action to take if the required MX record isn't found when you send an email. Valid values: `USE_DEFAULT_VALUE`, `REJECT_MESSAGE`.
         * 
         * @return builder
         * 
         */
        public Builder behaviorOnMxFailure(String behaviorOnMxFailure) {
            return behaviorOnMxFailure(Output.of(behaviorOnMxFailure));
        }

        /**
         * @param emailIdentity The verified email identity.
         * 
         * @return builder
         * 
         */
        public Builder emailIdentity(Output emailIdentity) {
            $.emailIdentity = emailIdentity;
            return this;
        }

        /**
         * @param emailIdentity The verified email identity.
         * 
         * @return builder
         * 
         */
        public Builder emailIdentity(String emailIdentity) {
            return emailIdentity(Output.of(emailIdentity));
        }

        /**
         * @param mailFromDomain The custom MAIL FROM domain that you want the verified identity to use. Required if `behavior_on_mx_failure` is `REJECT_MESSAGE`.
         * 
         * @return builder
         * 
         */
        public Builder mailFromDomain(@Nullable Output mailFromDomain) {
            $.mailFromDomain = mailFromDomain;
            return this;
        }

        /**
         * @param mailFromDomain The custom MAIL FROM domain that you want the verified identity to use. Required if `behavior_on_mx_failure` is `REJECT_MESSAGE`.
         * 
         * @return builder
         * 
         */
        public Builder mailFromDomain(String mailFromDomain) {
            return mailFromDomain(Output.of(mailFromDomain));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy