// SPDX-License-Identifier: Apache-2.0
import { LoadDockerImageOptions } from './load-docker-image-options.js';
export class LoadDockerImageOptionsBuilder {
    _name;
    _nodes;
    _imageName;
    constructor(_name, _nodes, _imageName) {
        this._name = _name;
        this._nodes = _nodes;
        this._imageName = _imageName;
    }
    static builder() {
        return new LoadDockerImageOptionsBuilder();
    }
    /**
     * 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;
    }
    /**
     * Set the image name to load.
     * @param imageName
     */
    imageName(imageName) {
        this._imageName = imageName;
        return this;
    }
    /**
     * Build the ExportLogsOptions instance.
     */
    build() {
        return new LoadDockerImageOptions(this._imageName, this._name, this._nodes);
    }
    static from(options) {
        if (!options) {
            return new LoadDockerImageOptionsBuilder();
        }
        return new LoadDockerImageOptionsBuilder(options.name, options.nodes);
    }
}
//# sourceMappingURL=load-docker-image-options-builder.js.map