// SPDX-License-Identifier: Apache-2.0
export class ConsensusNode {
    name;
    nodeId;
    namespace;
    cluster;
    context;
    dnsBaseDomain;
    dnsConsensusNodePattern;
    fullyQualifiedDomainName;
    constructor(name, nodeId, namespace, cluster, context, dnsBaseDomain, dnsConsensusNodePattern, fullyQualifiedDomainName) {
        this.name = name;
        this.nodeId = nodeId;
        this.namespace = namespace;
        this.cluster = cluster;
        this.context = context;
        this.dnsBaseDomain = dnsBaseDomain;
        this.dnsConsensusNodePattern = dnsConsensusNodePattern;
        this.fullyQualifiedDomainName = fullyQualifiedDomainName;
        if (!context) {
            throw new Error(`ConsensusNode context cannot be empty or null. Call stack: ${new Error().stack}`);
        }
    }
}
//# sourceMappingURL=consensus-node.js.map