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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final ReplicationSubnetGroupArgs Empty = new ReplicationSubnetGroupArgs();

    /**
     * Description for the subnet group.
     * 
     */
    @Import(name="replicationSubnetGroupDescription", required=true)
    private Output<String> replicationSubnetGroupDescription;

    /**
     * @return Description for the subnet group.
     * 
     */
    public Output<String> replicationSubnetGroupDescription() {
        return this.replicationSubnetGroupDescription;
    }

    /**
     * Name for the replication subnet group. This value is stored as a lowercase string. It must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens and cannot be `default`.
     * 
     */
    @Import(name="replicationSubnetGroupId", required=true)
    private Output<String> replicationSubnetGroupId;

    /**
     * @return Name for the replication subnet group. This value is stored as a lowercase string. It must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens and cannot be `default`.
     * 
     */
    public Output<String> replicationSubnetGroupId() {
        return this.replicationSubnetGroupId;
    }

    /**
     * List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones.
     * 
     */
    @Import(name="subnetIds", required=true)
    private Output<List<String>> subnetIds;

    /**
     * @return List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones.
     * 
     */
    public Output<List<String>> subnetIds() {
        return this.subnetIds;
    }

    /**
     * Map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output<Map<String,String>> tags;

    /**
     * @return Map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional<Output<Map<String,String>>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private ReplicationSubnetGroupArgs() {}

    private ReplicationSubnetGroupArgs(ReplicationSubnetGroupArgs $) {
        this.replicationSubnetGroupDescription = $.replicationSubnetGroupDescription;
        this.replicationSubnetGroupId = $.replicationSubnetGroupId;
        this.subnetIds = $.subnetIds;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ReplicationSubnetGroupArgs $;

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

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

        /**
         * @param replicationSubnetGroupDescription Description for the subnet group.
         * 
         * @return builder
         * 
         */
        public Builder replicationSubnetGroupDescription(Output<String> replicationSubnetGroupDescription) {
            $.replicationSubnetGroupDescription = replicationSubnetGroupDescription;
            return this;
        }

        /**
         * @param replicationSubnetGroupDescription Description for the subnet group.
         * 
         * @return builder
         * 
         */
        public Builder replicationSubnetGroupDescription(String replicationSubnetGroupDescription) {
            return replicationSubnetGroupDescription(Output.of(replicationSubnetGroupDescription));
        }

        /**
         * @param replicationSubnetGroupId Name for the replication subnet group. This value is stored as a lowercase string. It must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens and cannot be `default`.
         * 
         * @return builder
         * 
         */
        public Builder replicationSubnetGroupId(Output<String> replicationSubnetGroupId) {
            $.replicationSubnetGroupId = replicationSubnetGroupId;
            return this;
        }

        /**
         * @param replicationSubnetGroupId Name for the replication subnet group. This value is stored as a lowercase string. It must contain no more than 255 alphanumeric characters, periods, spaces, underscores, or hyphens and cannot be `default`.
         * 
         * @return builder
         * 
         */
        public Builder replicationSubnetGroupId(String replicationSubnetGroupId) {
            return replicationSubnetGroupId(Output.of(replicationSubnetGroupId));
        }

        /**
         * @param subnetIds List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(Output<List<String>> subnetIds) {
            $.subnetIds = subnetIds;
            return this;
        }

        /**
         * @param subnetIds List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(List<String> subnetIds) {
            return subnetIds(Output.of(subnetIds));
        }

        /**
         * @param subnetIds List of at least 2 EC2 subnet IDs for the subnet group. The subnets must cover at least 2 availability zones.
         * 
         * @return builder
         * 
         */
        public Builder subnetIds(String... subnetIds) {
            return subnetIds(List.of(subnetIds));
        }

        /**
         * @param tags Map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output<Map<String,String>> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Map of tags to assign to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map<String,String> tags) {
            return tags(Output.of(tags));
        }

        public ReplicationSubnetGroupArgs build() {
            $.replicationSubnetGroupDescription = Objects.requireNonNull($.replicationSubnetGroupDescription, "expected parameter 'replicationSubnetGroupDescription' to be non-null");
            $.replicationSubnetGroupId = Objects.requireNonNull($.replicationSubnetGroupId, "expected parameter 'replicationSubnetGroupId' to be non-null");
            $.subnetIds = Objects.requireNonNull($.subnetIds, "expected parameter 'subnetIds' to be non-null");
            return $;
        }
    }

}
