// SPDX-License-Identifier: Apache-2.0
import { GetKubeConfigOptions } from './get-kubeconfig-options.js';
export class GetKubeConfigOptionsBuilder {
    _name;
    _internal;
    constructor(_name, _internal) {
        this._name = _name;
        this._internal = _internal;
    }
    static builder() {
        return new GetKubeConfigOptionsBuilder();
    }
    /**
     * Set the name of the cluster (default "kind").
     * @param name
     */
    name(name) {
        this._name = name;
        return this;
    }
    /**
     * Set whether to use internal or external address (default false).
     * @param internal
     */
    internal(internal) {
        this._internal = internal;
        return this;
    }
    /**
     * Build the ExportLogsOptions instance.
     */
    build() {
        return new GetKubeConfigOptions(this._name, this._internal);
    }
    static from(options) {
        if (!options) {
            return new GetKubeConfigOptionsBuilder();
        }
        return new GetKubeConfigOptionsBuilder(options.name, options.internal);
    }
}
//# sourceMappingURL=get-kubeconfig-options-builder.js.map