]> git.basschouten.com Git - openhab-addons.git/blob
878dfbf7c0ae87ddd5895fb9eb7048be259fb7bd
[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.groupepsa.internal.rest.api.dto;
14
15 import java.time.ZonedDateTime;
16 import java.util.List;
17
18 import org.eclipse.jdt.annotation.NonNullByDefault;
19 import org.eclipse.jdt.annotation.Nullable;
20
21 import com.google.gson.annotations.SerializedName;
22
23 /**
24  * @author Arjan Mels - Initial contribution
25  */
26 @NonNullByDefault
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;
36
37     public @Nullable String getId() {
38         return id;
39     }
40
41     public @Nullable String getVin() {
42         return vin;
43     }
44
45     public @Nullable String getBrand() {
46         return brand;
47     }
48
49     public @Nullable String getLabel() {
50         return label;
51     }
52
53     public @Nullable List<Engine> getEngines() {
54         return engines;
55     }
56
57     public @Nullable ZonedDateTime getCreatedAt() {
58         return createdAt;
59     }
60
61     public @Nullable ZonedDateTime getUpdatedAt() {
62         return updatedAt;
63     }
64
65     @Override
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();
69     }
70 }