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

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


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

    public static final AnomalySubscriptionSubscriberArgs Empty = new AnomalySubscriptionSubscriberArgs();

    /**
     * The address of the subscriber. If type is `SNS`, this will be the arn of the sns topic. If type is `EMAIL`, this will be the destination email address.
     * 
     */
    @Import(name="address", required=true)
    private Output<String> address;

    /**
     * @return The address of the subscriber. If type is `SNS`, this will be the arn of the sns topic. If type is `EMAIL`, this will be the destination email address.
     * 
     */
    public Output<String> address() {
        return this.address;
    }

    /**
     * The type of subscription. Valid Values: `SNS` | `EMAIL`.
     * 
     */
    @Import(name="type", required=true)
    private Output<String> type;

    /**
     * @return The type of subscription. Valid Values: `SNS` | `EMAIL`.
     * 
     */
    public Output<String> type() {
        return this.type;
    }

    private AnomalySubscriptionSubscriberArgs() {}

    private AnomalySubscriptionSubscriberArgs(AnomalySubscriptionSubscriberArgs $) {
        this.address = $.address;
        this.type = $.type;
    }

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

    public static final class Builder {
        private AnomalySubscriptionSubscriberArgs $;

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

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

        /**
         * @param address The address of the subscriber. If type is `SNS`, this will be the arn of the sns topic. If type is `EMAIL`, this will be the destination email address.
         * 
         * @return builder
         * 
         */
        public Builder address(Output<String> address) {
            $.address = address;
            return this;
        }

        /**
         * @param address The address of the subscriber. If type is `SNS`, this will be the arn of the sns topic. If type is `EMAIL`, this will be the destination email address.
         * 
         * @return builder
         * 
         */
        public Builder address(String address) {
            return address(Output.of(address));
        }

        /**
         * @param type The type of subscription. Valid Values: `SNS` | `EMAIL`.
         * 
         * @return builder
         * 
         */
        public Builder type(Output<String> type) {
            $.type = type;
            return this;
        }

        /**
         * @param type The type of subscription. Valid Values: `SNS` | `EMAIL`.
         * 
         * @return builder
         * 
         */
        public Builder type(String type) {
            return type(Output.of(type));
        }

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

}
