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.lametrictime.internal.api.local.dto;
16 * Pojo for boolean parameter.
18 * @author Gregory Moyer - Initial contribution
20 public class BooleanParameter extends Parameter {
21 private Boolean value;
24 public BooleanParameter withName(String name) {
30 public BooleanParameter withRequired(Boolean required) {
31 super.withRequired(required);
35 public Boolean getValue() {
39 public void setValue(Boolean value) {
43 public BooleanParameter withValue(Boolean value) {
49 public String toString() {
50 StringBuilder builder = new StringBuilder();
51 builder.append("BooleanParameter [value=");
52 builder.append(value);
53 builder.append(", getName()=");
54 builder.append(getName());
55 builder.append(", getRequired()=");
56 builder.append(getRequired());
58 return builder.toString();