2 * Copyright (c) 2010-2023 Contributors to the openHAB project
4 * See the NOTICE file(s) distributed with this work for additional
7 * This program and the accompanying materials are made available under the
8 * terms of the Eclipse Public License 2.0 which is available at
9 * http://www.eclipse.org/legal/epl-2.0
11 * SPDX-License-Identifier: EPL-2.0
13 package org.openhab.binding.bigassfan.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
18 * The {@link BigAssFanConfig} is responsible for storing the BigAssFan thing configuration.
20 * @author Mark Hilbush - Initial contribution
23 public class BigAssFanConfig {
27 private String label = "";
30 * IP address of the device
32 private String ipAddress = "";
35 * MAC address of the device
37 private String macAddress = "";
39 public String getLabel() {
43 public void setLabel(String label) {
47 public String getIpAddress() {
51 public void setIpAddress(String ipAddress) {
52 this.ipAddress = ipAddress;
55 public String getMacAddress() {
59 public void setMacAddress(String macAddress) {
60 this.macAddress = macAddress;
63 public boolean isValid() {
64 return !label.isBlank() && !ipAddress.isBlank() && !macAddress.isBlank();
68 public String toString() {
69 return "BigAssFanConfig{label=" + label + ", ipAddress=" + ipAddress + ", macAddress=" + macAddress + "}";