@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-12-11T00:56:28.222220Z[Etc/UTC]", comments="Generator version: 7.10.0") public class EmissionsDataDTO extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EmissionsDataDTO.CustomTypeAdapterFactory |
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_DURATION |
static String |
SERIALIZED_NAME_LOCATION |
static String |
SERIALIZED_NAME_TIMESTAMP |
static String |
SERIALIZED_NAME_VALUE |
Constructor and Description |
---|
EmissionsDataDTO() |
Modifier and Type | Method and Description |
---|---|
EmissionsDataDTO |
duration(Integer duration) |
boolean |
equals(Object o) |
static EmissionsDataDTO |
fromJson(String jsonString)
Create an instance of EmissionsDataDTO given an JSON string
|
Integer |
getDuration()
Get duration
|
String |
getLocation()
Get location
|
OffsetDateTime |
getTimestamp()
Get timestamp
|
Double |
getValue()
Get value
|
int |
hashCode() |
EmissionsDataDTO |
location(String location) |
void |
setDuration(Integer duration) |
void |
setLocation(String location) |
void |
setTimestamp(OffsetDateTime timestamp) |
void |
setValue(Double value) |
EmissionsDataDTO |
timestamp(OffsetDateTime timestamp) |
String |
toJson()
Convert an instance of EmissionsDataDTO to an JSON string
|
String |
toString() |
static void |
validateJsonElement(com.google.gson.JsonElement jsonElement)
Validates the JSON Element and throws an exception if issues found
|
EmissionsDataDTO |
value(Double value) |
public static final String SERIALIZED_NAME_LOCATION
public static final String SERIALIZED_NAME_TIMESTAMP
public static final String SERIALIZED_NAME_DURATION
public static final String SERIALIZED_NAME_VALUE
public EmissionsDataDTO location(@Nullable String location)
public EmissionsDataDTO timestamp(@Nullable OffsetDateTime timestamp)
@Nullable public OffsetDateTime getTimestamp()
public void setTimestamp(@Nullable OffsetDateTime timestamp)
public EmissionsDataDTO duration(@Nullable Integer duration)
public EmissionsDataDTO value(@Nullable Double value)
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
jsonElement
- JSON ElementIOException
- if the JSON Element is invalid with respect to EmissionsDataDTOpublic static EmissionsDataDTO fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to EmissionsDataDTOpublic String toJson()
Copyright © 2024. All rights reserved.