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.avmfritz.internal.config;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.eclipse.jdt.annotation.Nullable;
19 * Bean holding configuration data for FRITZ! Box.
21 * @author Robert Bausdorf - Initial contribution
24 public class AVMFritzBoxConfiguration {
26 public @NonNullByDefault({}) String ipAddress;
27 public @Nullable Integer port;
28 public String protocol = "http";
30 public @Nullable String user;
31 public @NonNullByDefault({}) String password;
33 public long pollingInterval = 15;
34 public long asyncTimeout = 10000;
35 public long syncTimeout = 2000;
38 public String toString() {
39 return new StringBuilder().append("[IP=").append(ipAddress).append(",port=").append(port).append(",protocol=")
40 .append(protocol).append(",user=").append(user).append(",pollingInterval=").append(pollingInterval)
41 .append(",asyncTimeout=").append(asyncTimeout).append(",syncTimeout=").append(syncTimeout).append("]")