2 * Copyright 2017 Gregory Moyer
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
16 package org.openhab.binding.sleepiq.api.model;
18 public class PauseMode
20 private String accountId;
22 private String pauseMode;
24 public String getAccountId()
29 public void setAccountId(String accountId)
31 this.accountId = accountId;
34 public PauseMode withAccountId(String accountId)
36 setAccountId(accountId);
40 public String getBedId()
45 public void setBedId(String bedId)
50 public PauseMode withBedId(String bedId)
56 public String getPauseMode()
61 public void setPauseMode(String pauseMode)
63 this.pauseMode = pauseMode;
66 public PauseMode withPauseMode(String pauseMode)
68 setPauseMode(pauseMode);
77 result = prime * result + ((accountId == null) ? 0 : accountId.hashCode());
78 result = prime * result + ((bedId == null) ? 0 : bedId.hashCode());
83 public boolean equals(Object obj)
93 if (!(obj instanceof PauseMode))
97 PauseMode other = (PauseMode)obj;
98 if (accountId == null)
100 if (other.accountId != null)
105 else if (!accountId.equals(other.accountId))
111 if (other.bedId != null)
116 else if (!bedId.equals(other.bedId))
124 public String toString()
126 StringBuilder builder = new StringBuilder();
127 builder.append("PauseMode [accountId=");
128 builder.append(accountId);
129 builder.append(", bedId=");
130 builder.append(bedId);
131 builder.append(", pauseMode=");
132 builder.append(pauseMode);
134 return builder.toString();