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.mybmw.internal;
15 import org.eclipse.jdt.annotation.NonNullByDefault;
16 import org.openhab.binding.mybmw.internal.utils.Constants;
19 * The {@link MyBMWVehicleConfiguration} class contains fields mapping thing configuration parameters.
21 * @author Bernd Weymann - Initial contribution
22 * @author Martin Grassl - renaming and refactoring to Java Beans
25 public class MyBMWVehicleConfiguration {
27 * Vehicle Identification Number (VIN)
29 private String vin = Constants.EMPTY;
37 private String vehicleBrand = Constants.EMPTY;
40 * Data refresh rate in minutes
42 private int refreshInterval = MyBMWConstants.DEFAULT_REFRESH_INTERVAL_MINUTES;
47 public String getVin() {
52 * @param vin the vin to set
54 public void setVin(String vin) {
59 * @return the vehicleBrand
61 public String getVehicleBrand() {
66 * @param vehicleBrand the vehicleBrand to set
68 public void setVehicleBrand(String vehicleBrand) {
69 this.vehicleBrand = vehicleBrand;
73 * @return the refreshInterval
75 public int getRefreshInterval() {
76 return refreshInterval;
80 * @param refreshInterval the refreshInterval to set
82 public void setRefreshInterval(int refreshInterval) {
83 this.refreshInterval = refreshInterval;
89 * @see java.lang.Object#toString()
93 public String toString() {
94 return "MyBMWVehicleConfiguration [vin=" + vin + ", vehicleBrand=" + vehicleBrand + ", refreshInterval="
95 + refreshInterval + "]";