]> git.basschouten.com Git - openhab-addons.git/blob
6723d21288b923c953ae29d9551c5aa61ced801d
[openhab-addons.git] /
1 /**
2  * Copyright (c) 2010-2023 Contributors to the openHAB project
3  *
4  * See the NOTICE file(s) distributed with this work for additional
5  * information.
6  *
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
10  *
11  * SPDX-License-Identifier: EPL-2.0
12  */
13 package org.openhab.binding.lametrictime.internal.api.local.dto;
14
15 /**
16  * Pojo for parameter.
17  *
18  * @author Gregory Moyer - Initial contribution
19  */
20 public abstract class Parameter {
21     private String name;
22     private Boolean required;
23
24     public String getName() {
25         return name;
26     }
27
28     public void setName(String name) {
29         this.name = name;
30     }
31
32     public Parameter withName(String name) {
33         setName(name);
34         return this;
35     }
36
37     public Boolean getRequired() {
38         return required;
39     }
40
41     public void setRequired(Boolean required) {
42         this.required = required;
43     }
44
45     public Parameter withRequired(Boolean required) {
46         setRequired(required);
47         return this;
48     }
49 }