// SPDX-License-Identifier: Apache-2.0
import { LoadImageArchiveOptions } from './load-image-archive-options.js';
export class LoadImageArchiveOptionsBuilder {
    _name;
    _nodes;
    constructor(_name, _nodes) {
        this._name = _name;
        this._nodes = _nodes;
    }
    static builder() {
        return new LoadImageArchiveOptionsBuilder();
    }
    /**
     * Set the name of the cluster (default "kind").
     * @param name
     */
    name(name) {
        this._name = name;
        return this;
    }
    /**
     * Set the nodes to load images into.
     * @param nodes
     */
    nodes(nodes) {
        this._nodes = nodes;
        return this;
    }
    /**
     * Build the ExportLogsOptions instance.
     */
    build() {
        return new LoadImageArchiveOptions(this._name, this._nodes);
    }
    static from(options) {
        if (!options) {
            return new LoadImageArchiveOptionsBuilder();
        }
        return new LoadImageArchiveOptionsBuilder(options.name, options.nodes);
    }
}
//# sourceMappingURL=load-image-archive-options-builder.js.map