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

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


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

    public static final VpcEndpointSubnetAssociationState Empty = new VpcEndpointSubnetAssociationState();

    /**
     * The ID of the subnet to be associated with the VPC endpoint.
     * 
     */
    @Import(name="subnetId")
    private @Nullable Output<String> subnetId;

    /**
     * @return The ID of the subnet to be associated with the VPC endpoint.
     * 
     */
    public Optional<Output<String>> subnetId() {
        return Optional.ofNullable(this.subnetId);
    }

    /**
     * The ID of the VPC endpoint with which the subnet will be associated.
     * 
     */
    @Import(name="vpcEndpointId")
    private @Nullable Output<String> vpcEndpointId;

    /**
     * @return The ID of the VPC endpoint with which the subnet will be associated.
     * 
     */
    public Optional<Output<String>> vpcEndpointId() {
        return Optional.ofNullable(this.vpcEndpointId);
    }

    private VpcEndpointSubnetAssociationState() {}

    private VpcEndpointSubnetAssociationState(VpcEndpointSubnetAssociationState $) {
        this.subnetId = $.subnetId;
        this.vpcEndpointId = $.vpcEndpointId;
    }

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

    public static final class Builder {
        private VpcEndpointSubnetAssociationState $;

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

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

        /**
         * @param subnetId The ID of the subnet to be associated with the VPC endpoint.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(@Nullable Output<String> subnetId) {
            $.subnetId = subnetId;
            return this;
        }

        /**
         * @param subnetId The ID of the subnet to be associated with the VPC endpoint.
         * 
         * @return builder
         * 
         */
        public Builder subnetId(String subnetId) {
            return subnetId(Output.of(subnetId));
        }

        /**
         * @param vpcEndpointId The ID of the VPC endpoint with which the subnet will be associated.
         * 
         * @return builder
         * 
         */
        public Builder vpcEndpointId(@Nullable Output<String> vpcEndpointId) {
            $.vpcEndpointId = vpcEndpointId;
            return this;
        }

        /**
         * @param vpcEndpointId The ID of the VPC endpoint with which the subnet will be associated.
         * 
         * @return builder
         * 
         */
        public Builder vpcEndpointId(String vpcEndpointId) {
            return vpcEndpointId(Output.of(vpcEndpointId));
        }

        public VpcEndpointSubnetAssociationState build() {
            return $;
        }
    }

}
