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 com.fasterxml.jackson.annotation.JsonProperty;
18 * Partial reconfiguration of a specific audio Source
20 public class SourceUpdateWithId {
37 public String getName() {
41 public void setName(String name) {
45 public SourceUpdateWithId name(String name) {
55 @JsonProperty("input")
56 public String getInput() {
60 public void setInput(String input) {
64 public SourceUpdateWithId input(String input) {
77 public Integer getId() {
81 public void setId(Integer id) {
85 public SourceUpdateWithId id(Integer id) {
91 public String toString() {
92 StringBuilder sb = new StringBuilder();
93 sb.append("class SourceUpdateWithId {\n");
95 sb.append(" name: ").append(toIndentedString(name)).append("\n");
96 sb.append(" input: ").append(toIndentedString(input)).append("\n");
97 sb.append(" id: ").append(toIndentedString(id)).append("\n");
103 * Convert the given object to string with each line indented by 4 spaces
104 * (except the first line).
106 private static String toIndentedString(Object o) {
110 return o.toString().replace("\n", "\n ");