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

com.pulumi.aws.ses.inputs.ReceiptRuleStopActionArgs 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.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 ReceiptRuleStopActionArgs extends com.pulumi.resources.ResourceArgs {

    public static final ReceiptRuleStopActionArgs Empty = new ReceiptRuleStopActionArgs();

    /**
     * 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 scope to apply. The only acceptable value is `RuleSet`.
     * 
     */
    @Import(name="scope", required=true)
    private Output scope;

    /**
     * @return The scope to apply. The only acceptable value is `RuleSet`.
     * 
     */
    public Output scope() {
        return this.scope;
    }

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

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

    private ReceiptRuleStopActionArgs() {}

    private ReceiptRuleStopActionArgs(ReceiptRuleStopActionArgs $) {
        this.position = $.position;
        this.scope = $.scope;
        this.topicArn = $.topicArn;
    }

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

    public static final class Builder {
        private ReceiptRuleStopActionArgs $;

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

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

        /**
         * @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 scope The scope to apply. The only acceptable value is `RuleSet`.
         * 
         * @return builder
         * 
         */
        public Builder scope(Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope The scope to apply. The only acceptable value is `RuleSet`.
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        /**
         * @param topicArn The ARN of an SNS topic to notify
         * 
         * @return builder
         * 
         */
        public Builder topicArn(@Nullable 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 ReceiptRuleStopActionArgs build() {
            if ($.position == null) {
                throw new MissingRequiredPropertyException("ReceiptRuleStopActionArgs", "position");
            }
            if ($.scope == null) {
                throw new MissingRequiredPropertyException("ReceiptRuleStopActionArgs", "scope");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy