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.nibeuplink.internal.config;
15 import org.apache.commons.lang3.builder.ToStringBuilder;
16 import org.eclipse.jdt.annotation.NonNullByDefault;
17 import org.eclipse.jdt.annotation.Nullable;
20 * Bean holding configuration data according to bridge.xml
22 * @author Alexander Friese - initial contribution
25 public class NibeUplinkConfiguration {
27 private @Nullable String user;
28 private @Nullable String password;
29 private @Nullable String nibeId;
31 private Integer asyncTimeout = 120;
32 private Integer syncTimeout = 120;
33 private Integer pollingInterval = 60;
34 private Integer houseKeepingInterval = 3600;
36 public @Nullable String getUser() {
40 public void setUser(String user) {
44 public @Nullable String getPassword() {
48 public void setPassword(String password) {
49 this.password = password;
52 public @Nullable String getNibeId() {
56 public void setNibeId(String nibeId) {
60 public Integer getAsyncTimeout() {
64 public void setAsyncTimeout(Integer asyncTimeout) {
65 this.asyncTimeout = asyncTimeout;
68 public Integer getSyncTimeout() {
72 public void setSyncTimeout(Integer syncTimeout) {
73 this.syncTimeout = syncTimeout;
76 public Integer getPollingInterval() {
77 return pollingInterval;
80 public void setPollingInterval(Integer pollingInterval) {
81 this.pollingInterval = pollingInterval;
84 public Integer getHouseKeepingInterval() {
85 return houseKeepingInterval;
88 public void setHouseKeepingInterval(Integer houseKeepingInterval) {
89 this.houseKeepingInterval = houseKeepingInterval;
93 public String toString() {
94 return new ToStringBuilder(this).append("user", getUser()).append("password", getPassword())
95 .append("nibeId", getNibeId()).append("pollingInterval", getPollingInterval())
96 .append("houseKeepingInterval", getHouseKeepingInterval()).append("asyncTimeout", getAsyncTimeout())
97 .append("syncTimeout", getSyncTimeout()).toString();