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 * Partial reconfiguration of a specific audio Source
20 @Schema(description = "Partial reconfiguration of a specific audio Source ")
21 public class SourceUpdate2 {
32 @Schema(required = true)
40 public String getName() {
44 public void setName(String name) {
48 public SourceUpdate2 name(String name) {
58 public String getInput() {
62 public void setInput(String input) {
66 public SourceUpdate2 input(String input) {
78 public Integer getId() {
82 public void setId(Integer id) {
86 public SourceUpdate2 id(Integer id) {
92 public String toString() {
93 StringBuilder sb = new StringBuilder();
94 sb.append("class SourceUpdate2 {\n");
96 sb.append(" name: ").append(toIndentedString(name)).append("\n");
97 sb.append(" input: ").append(toIndentedString(input)).append("\n");
98 sb.append(" id: ").append(toIndentedString(id)).append("\n");
100 return sb.toString();
104 * Convert the given object to string with each line indented by 4 spaces
105 * (except the first line).
107 private static String toIndentedString(Object o) {
111 return o.toString().replace("\n", "\n ");