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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.compute.inputs.NetworkEndpointListNetworkEndpointArgs;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final NetworkEndpointListState Empty = new NetworkEndpointListState();

    /**
     * The network endpoint group these endpoints are part of.
     * 
     * ***
     * 
     */
    @Import(name="networkEndpointGroup")
    private @Nullable Output<String> networkEndpointGroup;

    /**
     * @return The network endpoint group these endpoints are part of.
     * 
     * ***
     * 
     */
    public Optional<Output<String>> networkEndpointGroup() {
        return Optional.ofNullable(this.networkEndpointGroup);
    }

    /**
     * The network endpoints to be added to the enclosing network endpoint group
     * (NEG). Each endpoint specifies an IP address and port, along with
     * additional information depending on the NEG type.
     * Structure is documented below.
     * 
     */
    @Import(name="networkEndpoints")
    private @Nullable Output<List<NetworkEndpointListNetworkEndpointArgs>> networkEndpoints;

    /**
     * @return The network endpoints to be added to the enclosing network endpoint group
     * (NEG). Each endpoint specifies an IP address and port, along with
     * additional information depending on the NEG type.
     * Structure is documented below.
     * 
     */
    public Optional<Output<List<NetworkEndpointListNetworkEndpointArgs>>> networkEndpoints() {
        return Optional.ofNullable(this.networkEndpoints);
    }

    /**
     * The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     * 
     */
    @Import(name="project")
    private @Nullable Output<String> project;

    /**
     * @return The ID of the project in which the resource belongs.
     * If it is not provided, the provider project is used.
     * 
     */
    public Optional<Output<String>> project() {
        return Optional.ofNullable(this.project);
    }

    /**
     * Zone where the containing network endpoint group is located.
     * 
     */
    @Import(name="zone")
    private @Nullable Output<String> zone;

    /**
     * @return Zone where the containing network endpoint group is located.
     * 
     */
    public Optional<Output<String>> zone() {
        return Optional.ofNullable(this.zone);
    }

    private NetworkEndpointListState() {}

    private NetworkEndpointListState(NetworkEndpointListState $) {
        this.networkEndpointGroup = $.networkEndpointGroup;
        this.networkEndpoints = $.networkEndpoints;
        this.project = $.project;
        this.zone = $.zone;
    }

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

    public static final class Builder {
        private NetworkEndpointListState $;

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

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

        /**
         * @param networkEndpointGroup The network endpoint group these endpoints are part of.
         * 
         * ***
         * 
         * @return builder
         * 
         */
        public Builder networkEndpointGroup(@Nullable Output<String> networkEndpointGroup) {
            $.networkEndpointGroup = networkEndpointGroup;
            return this;
        }

        /**
         * @param networkEndpointGroup The network endpoint group these endpoints are part of.
         * 
         * ***
         * 
         * @return builder
         * 
         */
        public Builder networkEndpointGroup(String networkEndpointGroup) {
            return networkEndpointGroup(Output.of(networkEndpointGroup));
        }

        /**
         * @param networkEndpoints The network endpoints to be added to the enclosing network endpoint group
         * (NEG). Each endpoint specifies an IP address and port, along with
         * additional information depending on the NEG type.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder networkEndpoints(@Nullable Output<List<NetworkEndpointListNetworkEndpointArgs>> networkEndpoints) {
            $.networkEndpoints = networkEndpoints;
            return this;
        }

        /**
         * @param networkEndpoints The network endpoints to be added to the enclosing network endpoint group
         * (NEG). Each endpoint specifies an IP address and port, along with
         * additional information depending on the NEG type.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder networkEndpoints(List<NetworkEndpointListNetworkEndpointArgs> networkEndpoints) {
            return networkEndpoints(Output.of(networkEndpoints));
        }

        /**
         * @param networkEndpoints The network endpoints to be added to the enclosing network endpoint group
         * (NEG). Each endpoint specifies an IP address and port, along with
         * additional information depending on the NEG type.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder networkEndpoints(NetworkEndpointListNetworkEndpointArgs... networkEndpoints) {
            return networkEndpoints(List.of(networkEndpoints));
        }

        /**
         * @param project The ID of the project in which the resource belongs.
         * If it is not provided, the provider project is used.
         * 
         * @return builder
         * 
         */
        public Builder project(@Nullable Output<String> project) {
            $.project = project;
            return this;
        }

        /**
         * @param project The ID of the project in which the resource belongs.
         * If it is not provided, the provider project is used.
         * 
         * @return builder
         * 
         */
        public Builder project(String project) {
            return project(Output.of(project));
        }

        /**
         * @param zone Zone where the containing network endpoint group is located.
         * 
         * @return builder
         * 
         */
        public Builder zone(@Nullable Output<String> zone) {
            $.zone = zone;
            return this;
        }

        /**
         * @param zone Zone where the containing network endpoint group is located.
         * 
         * @return builder
         * 
         */
        public Builder zone(String zone) {
            return zone(Output.of(zone));
        }

        public NetworkEndpointListState build() {
            return $;
        }
    }

}
