]> git.basschouten.com Git - openhab-addons.git/blob
672681fc9f91b64245ed0db2fda8f0a5a40ecf78
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.lametrictime.internal.api.local.dto;
14
15 /**
16  * Pojo for display.
17  *
18  * @author Gregory Moyer - Initial contribution
19  */
20 public class Display {
21     private Integer brightness;
22     private String brightnessMode;
23     private Integer height;
24     private Screensaver screensaver;
25     private String type;
26     private Integer width;
27
28     public Integer getBrightness() {
29         return brightness;
30     }
31
32     public void setBrightness(Integer brightness) {
33         this.brightness = brightness;
34     }
35
36     public Display withBrightness(Integer brightness) {
37         this.brightness = brightness;
38         return this;
39     }
40
41     public String getBrightnessMode() {
42         return brightnessMode;
43     }
44
45     public void setBrightnessMode(String brightnessMode) {
46         this.brightnessMode = brightnessMode;
47     }
48
49     public Display withBrightnessMode(String brightnessMode) {
50         this.brightnessMode = brightnessMode;
51         return this;
52     }
53
54     public Integer getHeight() {
55         return height;
56     }
57
58     public void setHeight(Integer height) {
59         this.height = height;
60     }
61
62     public Display withHeight(Integer height) {
63         this.height = height;
64         return this;
65     }
66
67     public Screensaver getScreensaver() {
68         return screensaver;
69     }
70
71     public void setScreensaver(Screensaver screensaver) {
72         this.screensaver = screensaver;
73     }
74
75     public Display withScreensaver(Screensaver screensaver) {
76         this.screensaver = screensaver;
77         return this;
78     }
79
80     public String getType() {
81         return type;
82     }
83
84     public void setType(String type) {
85         this.type = type;
86     }
87
88     public Display withType(String type) {
89         this.type = type;
90         return this;
91     }
92
93     public Integer getWidth() {
94         return width;
95     }
96
97     public void setWidth(Integer width) {
98         this.width = width;
99     }
100
101     public Display withWidth(Integer width) {
102         this.width = width;
103         return this;
104     }
105
106     @Override
107     public String toString() {
108         StringBuilder builder = new StringBuilder();
109         builder.append("Display [brightness=");
110         builder.append(brightness);
111         builder.append(", brightnessMode=");
112         builder.append(brightnessMode);
113         builder.append(", height=");
114         builder.append(height);
115         builder.append(", screensaver=");
116         builder.append(screensaver);
117         builder.append(", type=");
118         builder.append(type);
119         builder.append(", width=");
120         builder.append(width);
121         builder.append("]");
122         return builder.toString();
123     }
124 }