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.sleepiq.internal.api.dto;
16 * The {@link PauseModeRequest} holds the request to pause the bed data collection.
18 * @author Mark Hilbush - Initial contribution
20 public class PauseModeRequest {
23 public String getMode() {
27 public void setMode(String mode) {
31 public PauseModeRequest withMode(String mode) {
37 public int hashCode() {
40 result = prime * result + ((mode == null) ? 0 : mode.hashCode());
45 public boolean equals(Object obj) {
52 if (!(obj instanceof PauseModeRequest)) {
55 PauseModeRequest other = (PauseModeRequest) obj;
57 if (other.mode != null) {
60 } else if (!mode.equals(other.mode)) {
67 public String toString() {
68 StringBuilder builder = new StringBuilder();
69 builder.append("SleepNumberRequest [mode=");
72 return builder.toString();