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

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterControlPlaneApiServerArgArgs;
import com.pulumi.gcp.gkeonprem.inputs.BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final BareMetalClusterControlPlaneArgs Empty = new BareMetalClusterControlPlaneArgs();

    /**
     * Customizes the default API server args. Only a subset of
     * customized flags are supported. Please refer to the API server
     * documentation below to know the exact format:
     * https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
     * Structure is documented below.
     * 
     */
    @Import(name="apiServerArgs")
    private @Nullable Output<List<BareMetalClusterControlPlaneApiServerArgArgs>> apiServerArgs;

    /**
     * @return Customizes the default API server args. Only a subset of
     * customized flags are supported. Please refer to the API server
     * documentation below to know the exact format:
     * https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
     * Structure is documented below.
     * 
     */
    public Optional<Output<List<BareMetalClusterControlPlaneApiServerArgArgs>>> apiServerArgs() {
        return Optional.ofNullable(this.apiServerArgs);
    }

    /**
     * Configures the node pool running the control plane. If specified the corresponding NodePool will be created for the cluster&#39;s control plane. The NodePool will have the same name and namespace as the cluster.
     * Structure is documented below.
     * 
     */
    @Import(name="controlPlaneNodePoolConfig", required=true)
    private Output<BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs> controlPlaneNodePoolConfig;

    /**
     * @return Configures the node pool running the control plane. If specified the corresponding NodePool will be created for the cluster&#39;s control plane. The NodePool will have the same name and namespace as the cluster.
     * Structure is documented below.
     * 
     */
    public Output<BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs> controlPlaneNodePoolConfig() {
        return this.controlPlaneNodePoolConfig;
    }

    private BareMetalClusterControlPlaneArgs() {}

    private BareMetalClusterControlPlaneArgs(BareMetalClusterControlPlaneArgs $) {
        this.apiServerArgs = $.apiServerArgs;
        this.controlPlaneNodePoolConfig = $.controlPlaneNodePoolConfig;
    }

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

    public static final class Builder {
        private BareMetalClusterControlPlaneArgs $;

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

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

        /**
         * @param apiServerArgs Customizes the default API server args. Only a subset of
         * customized flags are supported. Please refer to the API server
         * documentation below to know the exact format:
         * https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder apiServerArgs(@Nullable Output<List<BareMetalClusterControlPlaneApiServerArgArgs>> apiServerArgs) {
            $.apiServerArgs = apiServerArgs;
            return this;
        }

        /**
         * @param apiServerArgs Customizes the default API server args. Only a subset of
         * customized flags are supported. Please refer to the API server
         * documentation below to know the exact format:
         * https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder apiServerArgs(List<BareMetalClusterControlPlaneApiServerArgArgs> apiServerArgs) {
            return apiServerArgs(Output.of(apiServerArgs));
        }

        /**
         * @param apiServerArgs Customizes the default API server args. Only a subset of
         * customized flags are supported. Please refer to the API server
         * documentation below to know the exact format:
         * https://kubernetes.io/docs/reference/command-line-tools-reference/kube-apiserver/
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder apiServerArgs(BareMetalClusterControlPlaneApiServerArgArgs... apiServerArgs) {
            return apiServerArgs(List.of(apiServerArgs));
        }

        /**
         * @param controlPlaneNodePoolConfig Configures the node pool running the control plane. If specified the corresponding NodePool will be created for the cluster&#39;s control plane. The NodePool will have the same name and namespace as the cluster.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder controlPlaneNodePoolConfig(Output<BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs> controlPlaneNodePoolConfig) {
            $.controlPlaneNodePoolConfig = controlPlaneNodePoolConfig;
            return this;
        }

        /**
         * @param controlPlaneNodePoolConfig Configures the node pool running the control plane. If specified the corresponding NodePool will be created for the cluster&#39;s control plane. The NodePool will have the same name and namespace as the cluster.
         * Structure is documented below.
         * 
         * @return builder
         * 
         */
        public Builder controlPlaneNodePoolConfig(BareMetalClusterControlPlaneControlPlaneNodePoolConfigArgs controlPlaneNodePoolConfig) {
            return controlPlaneNodePoolConfig(Output.of(controlPlaneNodePoolConfig));
        }

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

}
