2 * Copyright (c) 2010-2020 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.gardena.internal.model;
15 import org.apache.commons.lang.builder.ToStringBuilder;
16 import org.apache.commons.lang.builder.ToStringStyle;
19 * Represents a Gardena error.
21 * @author Gerhard Riegler - Initial contribution
26 private String status;
28 private String detail;
31 * Returns the id of the error.
33 public String getId() {
38 * Returns the status of the error.
40 public String getStatus() {
45 * Returns the title of the error.
47 public String getTitle() {
52 * Returns the detail of the error.
54 public String getDetail() {
59 public String toString() {
60 return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id).append("status", status)
61 .append("title", title).append("detail", detail).toString();