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.local.dto;
16 * Pojo for screensaver.
18 * @author Gregory Moyer - Initial contribution
20 public class Screensaver {
21 private Boolean enabled;
23 private String widget;
25 public Boolean isEnabled() {
29 public void setEnabled(Boolean enabled) {
30 this.enabled = enabled;
33 public Screensaver withEnabled(Boolean enabled) {
34 this.enabled = enabled;
38 public Modes getModes() {
42 public void setModes(Modes modes) {
46 public Screensaver withModes(Modes modes) {
51 public String getWidget() {
55 public void setWidget(String widget) {
59 public Screensaver withWidget(String widget) {
65 public String toString() {
66 StringBuilder builder = new StringBuilder();
67 builder.append("Screensaver [enabled=");
68 builder.append(enabled);
69 builder.append(", modes=");
70 builder.append(modes);
71 builder.append(", widget=");
72 builder.append(widget);
74 return builder.toString();