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.amplipi.internal.model;
15 import io.swagger.v3.oas.annotations.media.Schema;
18 * Reconfiguration of a Stream
20 @Schema(description = "Reconfiguration of a Stream ")
21 public class StreamUpdate {
33 private String password;
36 private String station;
49 public String getName() {
53 public void setName(String name) {
57 public StreamUpdate name(String name) {
67 public String getUser() {
71 public void setUser(String user) {
75 public StreamUpdate user(String user) {
85 public String getPassword() {
89 public void setPassword(String password) {
90 this.password = password;
93 public StreamUpdate password(String password) {
94 this.password = password;
103 public String getStation() {
107 public void setStation(String station) {
108 this.station = station;
111 public StreamUpdate station(String station) {
112 this.station = station;
121 public String getUrl() {
125 public void setUrl(String url) {
129 public StreamUpdate url(String url) {
139 public String getLogo() {
143 public void setLogo(String logo) {
147 public StreamUpdate logo(String logo) {
153 public String toString() {
154 StringBuilder sb = new StringBuilder();
155 sb.append("class StreamUpdate {\n");
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");
164 return sb.toString();
168 * Convert the given object to string with each line indented by 4 spaces
169 * (except the first line).
171 private static String toIndentedString(Object o) {
175 return o.toString().replace("\n", "\n ");