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

com.pulumi.aws.ses.inputs.ReceiptRuleSnsActionArgs 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.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ReceiptRuleSnsActionArgs Empty = new ReceiptRuleSnsActionArgs();

    /**
     * The encoding to use for the email within the Amazon SNS notification. Default value is `UTF-8`.
     * 
     */
    @Import(name="encoding")
    private @Nullable Output encoding;

    /**
     * @return The encoding to use for the email within the Amazon SNS notification. Default value is `UTF-8`.
     * 
     */
    public Optional> encoding() {
        return Optional.ofNullable(this.encoding);
    }

    /**
     * The position of the action in the receipt rule
     * 
     */
    @Import(name="position", required=true)
    private Output position;

    /**
     * @return The position of the action in the receipt rule
     * 
     */
    public Output position() {
        return this.position;
    }

    /**
     * The ARN of an SNS topic to notify
     * 
     */
    @Import(name="topicArn", required=true)
    private Output topicArn;

    /**
     * @return The ARN of an SNS topic to notify
     * 
     */
    public Output topicArn() {
        return this.topicArn;
    }

    private ReceiptRuleSnsActionArgs() {}

    private ReceiptRuleSnsActionArgs(ReceiptRuleSnsActionArgs $) {
        this.encoding = $.encoding;
        this.position = $.position;
        this.topicArn = $.topicArn;
    }

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

    public static final class Builder {
        private ReceiptRuleSnsActionArgs $;

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

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

        /**
         * @param encoding The encoding to use for the email within the Amazon SNS notification. Default value is `UTF-8`.
         * 
         * @return builder
         * 
         */
        public Builder encoding(@Nullable Output encoding) {
            $.encoding = encoding;
            return this;
        }

        /**
         * @param encoding The encoding to use for the email within the Amazon SNS notification. Default value is `UTF-8`.
         * 
         * @return builder
         * 
         */
        public Builder encoding(String encoding) {
            return encoding(Output.of(encoding));
        }

        /**
         * @param position The position of the action in the receipt rule
         * 
         * @return builder
         * 
         */
        public Builder position(Output position) {
            $.position = position;
            return this;
        }

        /**
         * @param position The position of the action in the receipt rule
         * 
         * @return builder
         * 
         */
        public Builder position(Integer position) {
            return position(Output.of(position));
        }

        /**
         * @param topicArn The ARN of an SNS topic to notify
         * 
         * @return builder
         * 
         */
        public Builder topicArn(Output topicArn) {
            $.topicArn = topicArn;
            return this;
        }

        /**
         * @param topicArn The ARN of an SNS topic to notify
         * 
         * @return builder
         * 
         */
        public Builder topicArn(String topicArn) {
            return topicArn(Output.of(topicArn));
        }

        public ReceiptRuleSnsActionArgs build() {
            if ($.position == null) {
                throw new MissingRequiredPropertyException("ReceiptRuleSnsActionArgs", "position");
            }
            if ($.topicArn == null) {
                throw new MissingRequiredPropertyException("ReceiptRuleSnsActionArgs", "topicArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy