// SPDX-License-Identifier: Apache-2.0
import { GetNodesOptions } from './get-nodes-options.js';
export class GetNodesOptionsBuilder {
    _name;
    _allClusters;
    constructor(_name, _allClusters) {
        this._name = _name;
        this._allClusters = _allClusters;
    }
    static builder() {
        return new GetNodesOptionsBuilder();
    }
    /**
     * Set the name of the cluster (default "kind").
     * @param name
     */
    name(name) {
        this._name = name;
        return this;
    }
    /**
     * Set whether to list all nodes across all cluster contexts (default false).
     * @param allClusters
     */
    allClusters(allClusters) {
        this._allClusters = allClusters;
        return this;
    }
    /**
     * Build the ExportLogsOptions instance.
     */
    build() {
        return new GetNodesOptions(this._name, this._allClusters);
    }
    static from(options) {
        if (!options) {
            return new GetNodesOptionsBuilder();
        }
        return new GetNodesOptionsBuilder(options.name, options.allClusters);
    }
}
//# sourceMappingURL=get-nodes-options-builder.js.map