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

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


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

    public static final ClusterArgs Empty = new ClusterArgs();

    /**
     * The ID of the Cluster.
     * 
     * ***
     * 
     */
    @Import(name="name")
    private @Nullable Output<String> name;

    /**
     * @return The ID of the Cluster.
     * 
     * ***
     * 
     */
    public Optional<Output<String>> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * The map of cluster node types in this cluster,
     * where the key is canonical identifier of the node type (corresponds to the NodeType).
     * Structure is documented below.
     * 
     */
    @Import(name="nodeTypeConfigs")
    private @Nullable Output<List<ClusterNodeTypeConfigArgs>> nodeTypeConfigs;

    /**
     * @return The map of cluster node types in this cluster,
     * where the key is canonical identifier of the node type (corresponds to the NodeType).
     * Structure is documented below.
     * 
     */
    public Optional<Output<List<ClusterNodeTypeConfigArgs>>> nodeTypeConfigs() {
        return Optional.ofNullable(this.nodeTypeConfigs);
    }

    /**
     * The resource name of the private cloud to create a new cluster in.
     * Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.
     * For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
     * 
     */
    @Import(name="parent", required=true)
    private Output<String> parent;

    /**
     * @return The resource name of the private cloud to create a new cluster in.
     * Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.
     * For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
     * 
     */
    public Output<String> parent() {
        return this.parent;
    }

    private ClusterArgs() {}

    private ClusterArgs(ClusterArgs $) {
        this.name = $.name;
        this.nodeTypeConfigs = $.nodeTypeConfigs;
        this.parent = $.parent;
    }

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

    public static final class Builder {
        private ClusterArgs $;

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

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

        /**
         * @param name The ID of the Cluster.
         * 
         * ***
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output<String> name) {
            $.name = name;
            return this;
        }

        /**
         * @param name The ID of the Cluster.
         * 
         * ***
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param nodeTypeConfigs The map of cluster node types in this cluster,
         * where the key is canonical identifier of the node type (corresponds to the NodeType).
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder nodeTypeConfigs(@Nullable Output<List<ClusterNodeTypeConfigArgs>> nodeTypeConfigs) {
            $.nodeTypeConfigs = nodeTypeConfigs;
            return this;
        }

        /**
         * @param nodeTypeConfigs The map of cluster node types in this cluster,
         * where the key is canonical identifier of the node type (corresponds to the NodeType).
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder nodeTypeConfigs(List<ClusterNodeTypeConfigArgs> nodeTypeConfigs) {
            return nodeTypeConfigs(Output.of(nodeTypeConfigs));
        }

        /**
         * @param nodeTypeConfigs The map of cluster node types in this cluster,
         * where the key is canonical identifier of the node type (corresponds to the NodeType).
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder nodeTypeConfigs(ClusterNodeTypeConfigArgs... nodeTypeConfigs) {
            return nodeTypeConfigs(List.of(nodeTypeConfigs));
        }

        /**
         * @param parent The resource name of the private cloud to create a new cluster in.
         * Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.
         * For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
         * 
         * @return builder
         * 
         */
        public Builder parent(Output<String> parent) {
            $.parent = parent;
            return this;
        }

        /**
         * @param parent The resource name of the private cloud to create a new cluster in.
         * Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names.
         * For example: projects/my-project/locations/us-west1-a/privateClouds/my-cloud
         * 
         * @return builder
         * 
         */
        public Builder parent(String parent) {
            return parent(Output.of(parent));
        }

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

}
