]> git.basschouten.com Git - openhab-addons.git/blob
f9cd405741181c4a954a6aaf4a0214f50ba50020
[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.amplipi.internal.model;
14
15 import io.swagger.v3.oas.annotations.media.Schema;
16
17 /**
18  * Reconfiguration of a Stream
19  **/
20 @Schema(description = "Reconfiguration of a Stream ")
21 public class StreamUpdate {
22
23     @Schema
24     /**
25      * Friendly name
26      **/
27     private String name;
28
29     @Schema
30     private String user;
31
32     @Schema
33     private String password;
34
35     @Schema
36     private String station;
37
38     @Schema
39     private String url;
40
41     @Schema
42     private String logo;
43
44     /**
45      * Friendly name
46      *
47      * @return name
48      **/
49     public String getName() {
50         return name;
51     }
52
53     public void setName(String name) {
54         this.name = name;
55     }
56
57     public StreamUpdate name(String name) {
58         this.name = name;
59         return this;
60     }
61
62     /**
63      * Get user
64      *
65      * @return user
66      **/
67     public String getUser() {
68         return user;
69     }
70
71     public void setUser(String user) {
72         this.user = user;
73     }
74
75     public StreamUpdate user(String user) {
76         this.user = user;
77         return this;
78     }
79
80     /**
81      * Get password
82      *
83      * @return password
84      **/
85     public String getPassword() {
86         return password;
87     }
88
89     public void setPassword(String password) {
90         this.password = password;
91     }
92
93     public StreamUpdate password(String password) {
94         this.password = password;
95         return this;
96     }
97
98     /**
99      * Get station
100      *
101      * @return station
102      **/
103     public String getStation() {
104         return station;
105     }
106
107     public void setStation(String station) {
108         this.station = station;
109     }
110
111     public StreamUpdate station(String station) {
112         this.station = station;
113         return this;
114     }
115
116     /**
117      * Get url
118      *
119      * @return url
120      **/
121     public String getUrl() {
122         return url;
123     }
124
125     public void setUrl(String url) {
126         this.url = url;
127     }
128
129     public StreamUpdate url(String url) {
130         this.url = url;
131         return this;
132     }
133
134     /**
135      * Get logo
136      *
137      * @return logo
138      **/
139     public String getLogo() {
140         return logo;
141     }
142
143     public void setLogo(String logo) {
144         this.logo = logo;
145     }
146
147     public StreamUpdate logo(String logo) {
148         this.logo = logo;
149         return this;
150     }
151
152     @Override
153     public String toString() {
154         StringBuilder sb = new StringBuilder();
155         sb.append("class StreamUpdate {\n");
156
157         sb.append("    name: ").append(toIndentedString(name)).append("\n");
158         sb.append("    user: ").append(toIndentedString(user)).append("\n");
159         sb.append("    password: ").append(toIndentedString(password)).append("\n");
160         sb.append("    station: ").append(toIndentedString(station)).append("\n");
161         sb.append("    url: ").append(toIndentedString(url)).append("\n");
162         sb.append("    logo: ").append(toIndentedString(logo)).append("\n");
163         sb.append("}");
164         return sb.toString();
165     }
166
167     /**
168      * Convert the given object to string with each line indented by 4 spaces
169      * (except the first line).
170      */
171     private static String toIndentedString(Object o) {
172         if (o == null) {
173             return "null";
174         }
175         return o.toString().replace("\n", "\n    ");
176     }
177 }