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

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

@CustomType
public final class BudgetActionSubscriber {
    /**
     * @return The address that AWS sends budget notifications to, either an SNS topic or an email.
     * 
     */
    private String address;
    /**
     * @return The type of notification that AWS sends to a subscriber. Valid values are `SNS` or `EMAIL`.
     * 
     */
    private String subscriptionType;

    private BudgetActionSubscriber() {}
    /**
     * @return The address that AWS sends budget notifications to, either an SNS topic or an email.
     * 
     */
    public String address() {
        return this.address;
    }
    /**
     * @return The type of notification that AWS sends to a subscriber. Valid values are `SNS` or `EMAIL`.
     * 
     */
    public String subscriptionType() {
        return this.subscriptionType;
    }

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

    public static Builder builder(BudgetActionSubscriber defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String address;
        private String subscriptionType;
        public Builder() {}
        public Builder(BudgetActionSubscriber defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.address = defaults.address;
    	      this.subscriptionType = defaults.subscriptionType;
        }

        @CustomType.Setter
        public Builder address(String address) {
            this.address = Objects.requireNonNull(address);
            return this;
        }
        @CustomType.Setter
        public Builder subscriptionType(String subscriptionType) {
            this.subscriptionType = Objects.requireNonNull(subscriptionType);
            return this;
        }
        public BudgetActionSubscriber build() {
            final var o = new BudgetActionSubscriber();
            o.address = address;
            o.subscriptionType = subscriptionType;
            return o;
        }
    }
}
