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

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class DirectoryVpcSettings {
    private @Nullable List<String> availabilityZones;
    /**
     * @return The identifiers of the subnets for the directory servers (2 subnets in 2 different AZs).
     * 
     */
    private List<String> subnetIds;
    /**
     * @return The identifier of the VPC that the directory is in.
     * 
     */
    private String vpcId;

    private DirectoryVpcSettings() {}
    public List<String> availabilityZones() {
        return this.availabilityZones == null ? List.of() : this.availabilityZones;
    }
    /**
     * @return The identifiers of the subnets for the directory servers (2 subnets in 2 different AZs).
     * 
     */
    public List<String> subnetIds() {
        return this.subnetIds;
    }
    /**
     * @return The identifier of the VPC that the directory is in.
     * 
     */
    public String vpcId() {
        return this.vpcId;
    }

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

    public static Builder builder(DirectoryVpcSettings defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List<String> availabilityZones;
        private List<String> subnetIds;
        private String vpcId;
        public Builder() {}
        public Builder(DirectoryVpcSettings defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.availabilityZones = defaults.availabilityZones;
    	      this.subnetIds = defaults.subnetIds;
    	      this.vpcId = defaults.vpcId;
        }

        @CustomType.Setter
        public Builder availabilityZones(@Nullable List<String> availabilityZones) {
            this.availabilityZones = availabilityZones;
            return this;
        }
        public Builder availabilityZones(String... availabilityZones) {
            return availabilityZones(List.of(availabilityZones));
        }
        @CustomType.Setter
        public Builder subnetIds(List<String> subnetIds) {
            this.subnetIds = Objects.requireNonNull(subnetIds);
            return this;
        }
        public Builder subnetIds(String... subnetIds) {
            return subnetIds(List.of(subnetIds));
        }
        @CustomType.Setter
        public Builder vpcId(String vpcId) {
            this.vpcId = Objects.requireNonNull(vpcId);
            return this;
        }
        public DirectoryVpcSettings build() {
            final var o = new DirectoryVpcSettings();
            o.availabilityZones = availabilityZones;
            o.subnetIds = subnetIds;
            o.vpcId = vpcId;
            return o;
        }
    }
}
