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

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


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

    public static final ProjectVpcConfigArgs Empty = new ProjectVpcConfigArgs();

    /**
     * Security group IDs to assign to running builds.
     * 
     */
    @Import(name="securityGroupIds", required=true)
    private Output<List<String>> securityGroupIds;

    /**
     * @return Security group IDs to assign to running builds.
     * 
     */
    public Output<List<String>> securityGroupIds() {
        return this.securityGroupIds;
    }

    /**
     * Subnet IDs within which to run builds.
     * 
     */
    @Import(name="subnets", required=true)
    private Output<List<String>> subnets;

    /**
     * @return Subnet IDs within which to run builds.
     * 
     */
    public Output<List<String>> subnets() {
        return this.subnets;
    }

    /**
     * ID of the VPC within which to run builds.
     * 
     */
    @Import(name="vpcId", required=true)
    private Output<String> vpcId;

    /**
     * @return ID of the VPC within which to run builds.
     * 
     */
    public Output<String> vpcId() {
        return this.vpcId;
    }

    private ProjectVpcConfigArgs() {}

    private ProjectVpcConfigArgs(ProjectVpcConfigArgs $) {
        this.securityGroupIds = $.securityGroupIds;
        this.subnets = $.subnets;
        this.vpcId = $.vpcId;
    }

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

    public static final class Builder {
        private ProjectVpcConfigArgs $;

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

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

        /**
         * @param securityGroupIds Security group IDs to assign to running builds.
         * 
         * @return builder
         * 
         */
        public Builder securityGroupIds(Output<List<String>> securityGroupIds) {
            $.securityGroupIds = securityGroupIds;
            return this;
        }

        /**
         * @param securityGroupIds Security group IDs to assign to running builds.
         * 
         * @return builder
         * 
         */
        public Builder securityGroupIds(List<String> securityGroupIds) {
            return securityGroupIds(Output.of(securityGroupIds));
        }

        /**
         * @param securityGroupIds Security group IDs to assign to running builds.
         * 
         * @return builder
         * 
         */
        public Builder securityGroupIds(String... securityGroupIds) {
            return securityGroupIds(List.of(securityGroupIds));
        }

        /**
         * @param subnets Subnet IDs within which to run builds.
         * 
         * @return builder
         * 
         */
        public Builder subnets(Output<List<String>> subnets) {
            $.subnets = subnets;
            return this;
        }

        /**
         * @param subnets Subnet IDs within which to run builds.
         * 
         * @return builder
         * 
         */
        public Builder subnets(List<String> subnets) {
            return subnets(Output.of(subnets));
        }

        /**
         * @param subnets Subnet IDs within which to run builds.
         * 
         * @return builder
         * 
         */
        public Builder subnets(String... subnets) {
            return subnets(List.of(subnets));
        }

        /**
         * @param vpcId ID of the VPC within which to run builds.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(Output<String> vpcId) {
            $.vpcId = vpcId;
            return this;
        }

        /**
         * @param vpcId ID of the VPC within which to run builds.
         * 
         * @return builder
         * 
         */
        public Builder vpcId(String vpcId) {
            return vpcId(Output.of(vpcId));
        }

        public ProjectVpcConfigArgs build() {
            $.securityGroupIds = Objects.requireNonNull($.securityGroupIds, "expected parameter 'securityGroupIds' to be non-null");
            $.subnets = Objects.requireNonNull($.subnets, "expected parameter 'subnets' to be non-null");
            $.vpcId = Objects.requireNonNull($.vpcId, "expected parameter 'vpcId' to be non-null");
            return $;
        }
    }

}
