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.lametrictime.internal.api.cloud;
17 import org.eclipse.jdt.annotation.NonNullByDefault;
20 * Cloud configuration class for LaMetric Time.
22 * @author Gregory Moyer - Initial contribution
25 public class CloudConfiguration {
26 private URI baseUri = URI.create("https://developer.lametric.com/api/v2");
28 private boolean logging = false;
29 private String logLevel = "INFO";
30 private int logMax = 104857600; // 100kb
32 public URI getBaseUri() {
36 public void setBaseUri(URI baseUri) {
37 this.baseUri = baseUri;
40 public CloudConfiguration withBaseUri(URI baseUri) {
41 this.baseUri = baseUri;
45 public boolean isLogging() {
49 public void setLogging(boolean logging) {
50 this.logging = logging;
53 public CloudConfiguration withLogging(boolean logging) {
54 this.logging = logging;
58 public String getLogLevel() {
62 public void setLogLevel(String logLevel) {
63 this.logLevel = logLevel;
66 public CloudConfiguration withLogLevel(String logLevel) {
67 this.logLevel = logLevel;
71 public int getLogMax() {
75 public void setLogMax(int logMax) {
79 public CloudConfiguration withLogMax(int logMax) {