@hashgraph/solo
Version:
An opinionated CLI tool to deploy and manage private Hedera Networks.
52 lines • 1.38 kB
JavaScript
// SPDX-License-Identifier: Apache-2.0
import { LoadImageArchiveOptions } from './load-image-archive-options.js';
export class LoadImageArchiveOptionsBuilder {
_archivePath;
_name;
_nodes;
constructor(_archivePath, _name, _nodes) {
this._archivePath = _archivePath;
this._name = _name;
this._nodes = _nodes;
}
static builder() {
return new LoadImageArchiveOptionsBuilder();
}
/**
* Set the archive path.
* @param archivePath
*/
archivePath(archivePath) {
this._archivePath = archivePath;
return this;
}
/**
* 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 LoadImageArchiveOptions instance.
*/
build() {
return new LoadImageArchiveOptions(this._archivePath, this._name, this._nodes);
}
static from(options) {
if (!options) {
return new LoadImageArchiveOptionsBuilder();
}
return new LoadImageArchiveOptionsBuilder(options.archivePath, options.name, options.nodes);
}
}
//# sourceMappingURL=load-image-archive-options-builder.js.map