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 an audio Source
20 @Schema(description = "Partial reconfiguration of an audio Source ")
21 public class SourceUpdate {
37 public String getName() {
41 public void setName(String name) {
45 public SourceUpdate name(String name) {
55 public String getInput() {
59 public void setInput(String input) {
63 public SourceUpdate input(String input) {
69 public String toString() {
70 StringBuilder sb = new StringBuilder();
71 sb.append("class SourceUpdate {\n");
73 sb.append(" name: ").append(toIndentedString(name)).append("\n");
74 sb.append(" input: ").append(toIndentedString(input)).append("\n");
80 * Convert the given object to string with each line indented by 4 spaces
81 * (except the first line).
83 private static String toIndentedString(Object o) {
87 return o.toString().replace("\n", "\n ");