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

com.pulumi.aws.ses.inputs.ReceiptRuleState 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.ses.inputs;

import com.pulumi.aws.ses.inputs.ReceiptRuleAddHeaderActionArgs;
import com.pulumi.aws.ses.inputs.ReceiptRuleBounceActionArgs;
import com.pulumi.aws.ses.inputs.ReceiptRuleLambdaActionArgs;
import com.pulumi.aws.ses.inputs.ReceiptRuleS3ActionArgs;
import com.pulumi.aws.ses.inputs.ReceiptRuleSnsActionArgs;
import com.pulumi.aws.ses.inputs.ReceiptRuleStopActionArgs;
import com.pulumi.aws.ses.inputs.ReceiptRuleWorkmailActionArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ReceiptRuleState Empty = new ReceiptRuleState();

    /**
     * A list of Add Header Action blocks. Documented below.
     * 
     */
    @Import(name="addHeaderActions")
    private @Nullable Output> addHeaderActions;

    /**
     * @return A list of Add Header Action blocks. Documented below.
     * 
     */
    public Optional>> addHeaderActions() {
        return Optional.ofNullable(this.addHeaderActions);
    }

    /**
     * The name of the rule to place this rule after
     * 
     */
    @Import(name="after")
    private @Nullable Output after;

    /**
     * @return The name of the rule to place this rule after
     * 
     */
    public Optional> after() {
        return Optional.ofNullable(this.after);
    }

    /**
     * The SES receipt rule ARN.
     * 
     */
    @Import(name="arn")
    private @Nullable Output arn;

    /**
     * @return The SES receipt rule ARN.
     * 
     */
    public Optional> arn() {
        return Optional.ofNullable(this.arn);
    }

    /**
     * A list of Bounce Action blocks. Documented below.
     * 
     */
    @Import(name="bounceActions")
    private @Nullable Output> bounceActions;

    /**
     * @return A list of Bounce Action blocks. Documented below.
     * 
     */
    public Optional>> bounceActions() {
        return Optional.ofNullable(this.bounceActions);
    }

    /**
     * If true, the rule will be enabled
     * 
     */
    @Import(name="enabled")
    private @Nullable Output enabled;

    /**
     * @return If true, the rule will be enabled
     * 
     */
    public Optional> enabled() {
        return Optional.ofNullable(this.enabled);
    }

    /**
     * A list of Lambda Action blocks. Documented below.
     * 
     */
    @Import(name="lambdaActions")
    private @Nullable Output> lambdaActions;

    /**
     * @return A list of Lambda Action blocks. Documented below.
     * 
     */
    public Optional>> lambdaActions() {
        return Optional.ofNullable(this.lambdaActions);
    }

    /**
     * The name of the rule
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return The name of the rule
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * A list of email addresses
     * 
     */
    @Import(name="recipients")
    private @Nullable Output> recipients;

    /**
     * @return A list of email addresses
     * 
     */
    public Optional>> recipients() {
        return Optional.ofNullable(this.recipients);
    }

    /**
     * The name of the rule set
     * 
     */
    @Import(name="ruleSetName")
    private @Nullable Output ruleSetName;

    /**
     * @return The name of the rule set
     * 
     */
    public Optional> ruleSetName() {
        return Optional.ofNullable(this.ruleSetName);
    }

    /**
     * A list of S3 Action blocks. Documented below.
     * 
     */
    @Import(name="s3Actions")
    private @Nullable Output> s3Actions;

    /**
     * @return A list of S3 Action blocks. Documented below.
     * 
     */
    public Optional>> s3Actions() {
        return Optional.ofNullable(this.s3Actions);
    }

    /**
     * If true, incoming emails will be scanned for spam and viruses
     * 
     */
    @Import(name="scanEnabled")
    private @Nullable Output scanEnabled;

    /**
     * @return If true, incoming emails will be scanned for spam and viruses
     * 
     */
    public Optional> scanEnabled() {
        return Optional.ofNullable(this.scanEnabled);
    }

    /**
     * A list of SNS Action blocks. Documented below.
     * 
     */
    @Import(name="snsActions")
    private @Nullable Output> snsActions;

    /**
     * @return A list of SNS Action blocks. Documented below.
     * 
     */
    public Optional>> snsActions() {
        return Optional.ofNullable(this.snsActions);
    }

    /**
     * A list of Stop Action blocks. Documented below.
     * 
     */
    @Import(name="stopActions")
    private @Nullable Output> stopActions;

    /**
     * @return A list of Stop Action blocks. Documented below.
     * 
     */
    public Optional>> stopActions() {
        return Optional.ofNullable(this.stopActions);
    }

    /**
     * `Require` or `Optional`
     * 
     */
    @Import(name="tlsPolicy")
    private @Nullable Output tlsPolicy;

    /**
     * @return `Require` or `Optional`
     * 
     */
    public Optional> tlsPolicy() {
        return Optional.ofNullable(this.tlsPolicy);
    }

    /**
     * A list of WorkMail Action blocks. Documented below.
     * 
     */
    @Import(name="workmailActions")
    private @Nullable Output> workmailActions;

    /**
     * @return A list of WorkMail Action blocks. Documented below.
     * 
     */
    public Optional>> workmailActions() {
        return Optional.ofNullable(this.workmailActions);
    }

    private ReceiptRuleState() {}

    private ReceiptRuleState(ReceiptRuleState $) {
        this.addHeaderActions = $.addHeaderActions;
        this.after = $.after;
        this.arn = $.arn;
        this.bounceActions = $.bounceActions;
        this.enabled = $.enabled;
        this.lambdaActions = $.lambdaActions;
        this.name = $.name;
        this.recipients = $.recipients;
        this.ruleSetName = $.ruleSetName;
        this.s3Actions = $.s3Actions;
        this.scanEnabled = $.scanEnabled;
        this.snsActions = $.snsActions;
        this.stopActions = $.stopActions;
        this.tlsPolicy = $.tlsPolicy;
        this.workmailActions = $.workmailActions;
    }

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

    public static final class Builder {
        private ReceiptRuleState $;

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

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

        /**
         * @param addHeaderActions A list of Add Header Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder addHeaderActions(@Nullable Output> addHeaderActions) {
            $.addHeaderActions = addHeaderActions;
            return this;
        }

        /**
         * @param addHeaderActions A list of Add Header Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder addHeaderActions(List addHeaderActions) {
            return addHeaderActions(Output.of(addHeaderActions));
        }

        /**
         * @param addHeaderActions A list of Add Header Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder addHeaderActions(ReceiptRuleAddHeaderActionArgs... addHeaderActions) {
            return addHeaderActions(List.of(addHeaderActions));
        }

        /**
         * @param after The name of the rule to place this rule after
         * 
         * @return builder
         * 
         */
        public Builder after(@Nullable Output after) {
            $.after = after;
            return this;
        }

        /**
         * @param after The name of the rule to place this rule after
         * 
         * @return builder
         * 
         */
        public Builder after(String after) {
            return after(Output.of(after));
        }

        /**
         * @param arn The SES receipt rule ARN.
         * 
         * @return builder
         * 
         */
        public Builder arn(@Nullable Output arn) {
            $.arn = arn;
            return this;
        }

        /**
         * @param arn The SES receipt rule ARN.
         * 
         * @return builder
         * 
         */
        public Builder arn(String arn) {
            return arn(Output.of(arn));
        }

        /**
         * @param bounceActions A list of Bounce Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder bounceActions(@Nullable Output> bounceActions) {
            $.bounceActions = bounceActions;
            return this;
        }

        /**
         * @param bounceActions A list of Bounce Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder bounceActions(List bounceActions) {
            return bounceActions(Output.of(bounceActions));
        }

        /**
         * @param bounceActions A list of Bounce Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder bounceActions(ReceiptRuleBounceActionArgs... bounceActions) {
            return bounceActions(List.of(bounceActions));
        }

        /**
         * @param enabled If true, the rule will be enabled
         * 
         * @return builder
         * 
         */
        public Builder enabled(@Nullable Output enabled) {
            $.enabled = enabled;
            return this;
        }

        /**
         * @param enabled If true, the rule will be enabled
         * 
         * @return builder
         * 
         */
        public Builder enabled(Boolean enabled) {
            return enabled(Output.of(enabled));
        }

        /**
         * @param lambdaActions A list of Lambda Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder lambdaActions(@Nullable Output> lambdaActions) {
            $.lambdaActions = lambdaActions;
            return this;
        }

        /**
         * @param lambdaActions A list of Lambda Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder lambdaActions(List lambdaActions) {
            return lambdaActions(Output.of(lambdaActions));
        }

        /**
         * @param lambdaActions A list of Lambda Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder lambdaActions(ReceiptRuleLambdaActionArgs... lambdaActions) {
            return lambdaActions(List.of(lambdaActions));
        }

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

        /**
         * @param name The name of the rule
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param recipients A list of email addresses
         * 
         * @return builder
         * 
         */
        public Builder recipients(@Nullable Output> recipients) {
            $.recipients = recipients;
            return this;
        }

        /**
         * @param recipients A list of email addresses
         * 
         * @return builder
         * 
         */
        public Builder recipients(List recipients) {
            return recipients(Output.of(recipients));
        }

        /**
         * @param recipients A list of email addresses
         * 
         * @return builder
         * 
         */
        public Builder recipients(String... recipients) {
            return recipients(List.of(recipients));
        }

        /**
         * @param ruleSetName The name of the rule set
         * 
         * @return builder
         * 
         */
        public Builder ruleSetName(@Nullable Output ruleSetName) {
            $.ruleSetName = ruleSetName;
            return this;
        }

        /**
         * @param ruleSetName The name of the rule set
         * 
         * @return builder
         * 
         */
        public Builder ruleSetName(String ruleSetName) {
            return ruleSetName(Output.of(ruleSetName));
        }

        /**
         * @param s3Actions A list of S3 Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder s3Actions(@Nullable Output> s3Actions) {
            $.s3Actions = s3Actions;
            return this;
        }

        /**
         * @param s3Actions A list of S3 Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder s3Actions(List s3Actions) {
            return s3Actions(Output.of(s3Actions));
        }

        /**
         * @param s3Actions A list of S3 Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder s3Actions(ReceiptRuleS3ActionArgs... s3Actions) {
            return s3Actions(List.of(s3Actions));
        }

        /**
         * @param scanEnabled If true, incoming emails will be scanned for spam and viruses
         * 
         * @return builder
         * 
         */
        public Builder scanEnabled(@Nullable Output scanEnabled) {
            $.scanEnabled = scanEnabled;
            return this;
        }

        /**
         * @param scanEnabled If true, incoming emails will be scanned for spam and viruses
         * 
         * @return builder
         * 
         */
        public Builder scanEnabled(Boolean scanEnabled) {
            return scanEnabled(Output.of(scanEnabled));
        }

        /**
         * @param snsActions A list of SNS Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder snsActions(@Nullable Output> snsActions) {
            $.snsActions = snsActions;
            return this;
        }

        /**
         * @param snsActions A list of SNS Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder snsActions(List snsActions) {
            return snsActions(Output.of(snsActions));
        }

        /**
         * @param snsActions A list of SNS Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder snsActions(ReceiptRuleSnsActionArgs... snsActions) {
            return snsActions(List.of(snsActions));
        }

        /**
         * @param stopActions A list of Stop Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder stopActions(@Nullable Output> stopActions) {
            $.stopActions = stopActions;
            return this;
        }

        /**
         * @param stopActions A list of Stop Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder stopActions(List stopActions) {
            return stopActions(Output.of(stopActions));
        }

        /**
         * @param stopActions A list of Stop Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder stopActions(ReceiptRuleStopActionArgs... stopActions) {
            return stopActions(List.of(stopActions));
        }

        /**
         * @param tlsPolicy `Require` or `Optional`
         * 
         * @return builder
         * 
         */
        public Builder tlsPolicy(@Nullable Output tlsPolicy) {
            $.tlsPolicy = tlsPolicy;
            return this;
        }

        /**
         * @param tlsPolicy `Require` or `Optional`
         * 
         * @return builder
         * 
         */
        public Builder tlsPolicy(String tlsPolicy) {
            return tlsPolicy(Output.of(tlsPolicy));
        }

        /**
         * @param workmailActions A list of WorkMail Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder workmailActions(@Nullable Output> workmailActions) {
            $.workmailActions = workmailActions;
            return this;
        }

        /**
         * @param workmailActions A list of WorkMail Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder workmailActions(List workmailActions) {
            return workmailActions(Output.of(workmailActions));
        }

        /**
         * @param workmailActions A list of WorkMail Action blocks. Documented below.
         * 
         * @return builder
         * 
         */
        public Builder workmailActions(ReceiptRuleWorkmailActionArgs... workmailActions) {
            return workmailActions(List.of(workmailActions));
        }

        public ReceiptRuleState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy