// SPDX-License-Identifier: Apache-2.0
import { ClusterDeleteOptions } from './cluster-delete-options.js';
export class ClusterDeleteOptionsBuilder {
    _name;
    _kubeconfig;
    constructor(_name, _kubeconfig) {
        this._name = _name;
        this._kubeconfig = _kubeconfig;
    }
    static builder() {
        return new ClusterDeleteOptionsBuilder();
    }
    /**
     * Set the name of the cluster (default "kind").
     * @param name
     */
    name(name) {
        this._name = name;
        return this;
    }
    /**
     * Set the kubeconfig path.
     * sets kubeconfig path instead of $KUBECONFIG or $HOME/.kube/config
     * @param kubeconfig
     */
    kubeconfig(kubeconfig) {
        this._kubeconfig = kubeconfig;
        return this;
    }
    /**
     * Build the ClusterDeleteOptions instance.
     */
    build() {
        return new ClusterDeleteOptions(this._name, this._kubeconfig);
    }
    static from(options) {
        if (!options) {
            return new ClusterDeleteOptionsBuilder();
        }
        return new ClusterDeleteOptionsBuilder(options.name, options.kubeconfig);
    }
}
//# sourceMappingURL=cluster-delete-options-builder.js.map