oshi.hardware.platform.unix.UnixBaseboard Maven / Gradle / Ivy
/*
* Copyright 2021-2022 The OSHI Project Contributors
* SPDX-License-Identifier: MIT
*/
package oshi.hardware.platform.unix;
import oshi.annotation.concurrent.Immutable;
import oshi.hardware.common.AbstractBaseboard;
/**
* Baseboard data obtained by a calling class
*/
@Immutable
public final class UnixBaseboard extends AbstractBaseboard {
private final String manufacturer;
private final String model;
private final String serialNumber;
private final String version;
public UnixBaseboard(String manufacturer, String model, String serialNumber, String version) {
this.manufacturer = manufacturer;
this.model = model;
this.serialNumber = serialNumber;
this.version = version;
}
@Override
public String getManufacturer() {
return this.manufacturer;
}
@Override
public String getModel() {
return this.model;
}
@Override
public String getSerialNumber() {
return this.serialNumber;
}
@Override
public String getVersion() {
return this.version;
}
}