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.groupepsa.internal.rest.api.dto;
15 import java.time.ZonedDateTime;
16 import java.util.List;
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.eclipse.jdt.annotation.Nullable;
21 import com.google.gson.annotations.SerializedName;
24 * @author Arjan Mels - Initial contribution
27 public class Vehicle {
28 private @Nullable String id;
29 private @Nullable String vin;
30 private @Nullable String brand;
31 private @Nullable String label;
32 @SerializedName("engine")
33 private @Nullable List<Engine> engines;
34 private @Nullable ZonedDateTime createdAt;
35 private @Nullable ZonedDateTime updatedAt;
37 public @Nullable String getId() {
41 public @Nullable String getVin() {
45 public @Nullable String getBrand() {
49 public @Nullable String getLabel() {
53 public @Nullable List<Engine> getEngines() {
57 public @Nullable ZonedDateTime getCreatedAt() {
61 public @Nullable ZonedDateTime getUpdatedAt() {
66 public String toString() {
67 return new ToStringBuilder(this).append("createdAt", createdAt).append("updatedAt", createdAt).append("id", id)
68 .append("vin", vin).append("brand", brand).append("label", label).append("engines", engines).toString();