// *** 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.appstream.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 StackAccessEndpointArgs extends com.pulumi.resources.ResourceArgs {

    public static final StackAccessEndpointArgs Empty = new StackAccessEndpointArgs();

    /**
     * Type of the interface endpoint.
     * See the [`AccessEndpoint` AWS API documentation](https://docs.aws.amazon.com/appstream2/latest/APIReference/API_AccessEndpoint.html) for valid values.
     * 
     */
    @Import(name="endpointType", required=true)
    private Output<String> endpointType;

    /**
     * @return Type of the interface endpoint.
     * See the [`AccessEndpoint` AWS API documentation](https://docs.aws.amazon.com/appstream2/latest/APIReference/API_AccessEndpoint.html) for valid values.
     * 
     */
    public Output<String> endpointType() {
        return this.endpointType;
    }

    /**
     * ID of the VPC in which the interface endpoint is used.
     * 
     */
    @Import(name="vpceId")
    private @Nullable Output<String> vpceId;

    /**
     * @return ID of the VPC in which the interface endpoint is used.
     * 
     */
    public Optional<Output<String>> vpceId() {
        return Optional.ofNullable(this.vpceId);
    }

    private StackAccessEndpointArgs() {}

    private StackAccessEndpointArgs(StackAccessEndpointArgs $) {
        this.endpointType = $.endpointType;
        this.vpceId = $.vpceId;
    }

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

    public static final class Builder {
        private StackAccessEndpointArgs $;

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

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

        /**
         * @param endpointType Type of the interface endpoint.
         * See the [`AccessEndpoint` AWS API documentation](https://docs.aws.amazon.com/appstream2/latest/APIReference/API_AccessEndpoint.html) for valid values.
         * 
         * @return builder
         * 
         */
        public Builder endpointType(Output<String> endpointType) {
            $.endpointType = endpointType;
            return this;
        }

        /**
         * @param endpointType Type of the interface endpoint.
         * See the [`AccessEndpoint` AWS API documentation](https://docs.aws.amazon.com/appstream2/latest/APIReference/API_AccessEndpoint.html) for valid values.
         * 
         * @return builder
         * 
         */
        public Builder endpointType(String endpointType) {
            return endpointType(Output.of(endpointType));
        }

        /**
         * @param vpceId ID of the VPC in which the interface endpoint is used.
         * 
         * @return builder
         * 
         */
        public Builder vpceId(@Nullable Output<String> vpceId) {
            $.vpceId = vpceId;
            return this;
        }

        /**
         * @param vpceId ID of the VPC in which the interface endpoint is used.
         * 
         * @return builder
         * 
         */
        public Builder vpceId(String vpceId) {
            return vpceId(Output.of(vpceId));
        }

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

}
