2 * Copyright (c) 2010-2024 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.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * Bean holding configuration data according to bridge.xml
21 * @author Alexander Friese - initial contribution
24 public class NibeUplinkConfiguration {
26 private @Nullable String user;
27 private @Nullable String password;
28 private @Nullable String nibeId;
30 private Integer asyncTimeout = 120;
31 private Integer syncTimeout = 120;
32 private Integer pollingInterval = 60;
33 private Integer houseKeepingInterval = 3600;
35 public @Nullable String getUser() {
39 public void setUser(String user) {
43 public @Nullable String getPassword() {
47 public void setPassword(String password) {
48 this.password = password;
51 public @Nullable String getNibeId() {
55 public void setNibeId(String nibeId) {
59 public Integer getAsyncTimeout() {
63 public void setAsyncTimeout(Integer asyncTimeout) {
64 this.asyncTimeout = asyncTimeout;
67 public Integer getSyncTimeout() {
71 public void setSyncTimeout(Integer syncTimeout) {
72 this.syncTimeout = syncTimeout;
75 public Integer getPollingInterval() {
76 return pollingInterval;
79 public void setPollingInterval(Integer pollingInterval) {
80 this.pollingInterval = pollingInterval;
83 public Integer getHouseKeepingInterval() {
84 return houseKeepingInterval;
87 public void setHouseKeepingInterval(Integer houseKeepingInterval) {
88 this.houseKeepingInterval = houseKeepingInterval;
92 public String toString() {
93 return getClass().getSimpleName() + "{ user=" + getUser() + ", password=" + getPassword() + ", nibeId="
94 + getNibeId() + ", pollingInterval=" + getPollingInterval() + ", houseKeepingInterval="
95 + getHouseKeepingInterval() + ", asyncTimeout=" + getAsyncTimeout() + ", syncTimeout="
96 + getSyncTimeout() + "}";