// *** 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.budgets.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;


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

    public static final BudgetActionSubscriberArgs Empty = new BudgetActionSubscriberArgs();

    /**
     * The address that AWS sends budget notifications to, either an SNS topic or an email.
     * 
     */
    @Import(name="address", required=true)
    private Output<String> address;

    /**
     * @return The address that AWS sends budget notifications to, either an SNS topic or an email.
     * 
     */
    public Output<String> address() {
        return this.address;
    }

    /**
     * The type of notification that AWS sends to a subscriber. Valid values are `SNS` or `EMAIL`.
     * 
     */
    @Import(name="subscriptionType", required=true)
    private Output<String> subscriptionType;

    /**
     * @return The type of notification that AWS sends to a subscriber. Valid values are `SNS` or `EMAIL`.
     * 
     */
    public Output<String> subscriptionType() {
        return this.subscriptionType;
    }

    private BudgetActionSubscriberArgs() {}

    private BudgetActionSubscriberArgs(BudgetActionSubscriberArgs $) {
        this.address = $.address;
        this.subscriptionType = $.subscriptionType;
    }

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

    public static final class Builder {
        private BudgetActionSubscriberArgs $;

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

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

        /**
         * @param address The address that AWS sends budget notifications to, either an SNS topic or an email.
         * 
         * @return builder
         * 
         */
        public Builder address(Output<String> address) {
            $.address = address;
            return this;
        }

        /**
         * @param address The address that AWS sends budget notifications to, either an SNS topic or an email.
         * 
         * @return builder
         * 
         */
        public Builder address(String address) {
            return address(Output.of(address));
        }

        /**
         * @param subscriptionType The type of notification that AWS sends to a subscriber. Valid values are `SNS` or `EMAIL`.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionType(Output<String> subscriptionType) {
            $.subscriptionType = subscriptionType;
            return this;
        }

        /**
         * @param subscriptionType The type of notification that AWS sends to a subscriber. Valid values are `SNS` or `EMAIL`.
         * 
         * @return builder
         * 
         */
        public Builder subscriptionType(String subscriptionType) {
            return subscriptionType(Output.of(subscriptionType));
        }

        public BudgetActionSubscriberArgs build() {
            $.address = Objects.requireNonNull($.address, "expected parameter 'address' to be non-null");
            $.subscriptionType = Objects.requireNonNull($.subscriptionType, "expected parameter 'subscriptionType' to be non-null");
            return $;
        }
    }

}
