@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-12-11T00:56:28.222220Z[Etc/UTC]", comments="Generator version: 7.10.0") public class EmissionsForecastDTO extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EmissionsForecastDTO.CustomTypeAdapterFactory |
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_DATA_END_AT |
static String |
SERIALIZED_NAME_DATA_START_AT |
static String |
SERIALIZED_NAME_FORECAST_DATA |
static String |
SERIALIZED_NAME_GENERATED_AT |
static String |
SERIALIZED_NAME_LOCATION |
static String |
SERIALIZED_NAME_OPTIMAL_DATA_POINTS |
static String |
SERIALIZED_NAME_REQUESTED_AT |
static String |
SERIALIZED_NAME_WINDOW_SIZE |
Constructor and Description |
---|
EmissionsForecastDTO() |
Modifier and Type | Method and Description |
---|---|
EmissionsForecastDTO |
addForecastDataItem(EmissionsDataDTO forecastDataItem) |
EmissionsForecastDTO |
addOptimalDataPointsItem(EmissionsDataDTO optimalDataPointsItem) |
EmissionsForecastDTO |
dataEndAt(OffsetDateTime dataEndAt) |
EmissionsForecastDTO |
dataStartAt(OffsetDateTime dataStartAt) |
boolean |
equals(Object o) |
EmissionsForecastDTO |
forecastData(List<EmissionsDataDTO> forecastData) |
static EmissionsForecastDTO |
fromJson(String jsonString)
Create an instance of EmissionsForecastDTO given an JSON string
|
EmissionsForecastDTO |
generatedAt(OffsetDateTime generatedAt) |
OffsetDateTime |
getDataEndAt()
End time boundary of forecasted data points.
|
OffsetDateTime |
getDataStartAt()
Start time boundary of forecasted data points.
|
List<EmissionsDataDTO> |
getForecastData()
The forecasted data points transformed and filtered to reflect the specified time and window parameters.
|
OffsetDateTime |
getGeneratedAt()
Timestamp when the forecast was generated.
|
String |
getLocation()
The location of the forecast
|
List<EmissionsDataDTO> |
getOptimalDataPoints()
The optimal forecasted data point within the 'forecastData' array.
|
OffsetDateTime |
getRequestedAt()
For current requests, this value is the timestamp the request for forecast data was made.
|
Integer |
getWindowSize()
The estimated duration (in minutes) of the workload.
|
int |
hashCode() |
EmissionsForecastDTO |
location(String location) |
EmissionsForecastDTO |
optimalDataPoints(List<EmissionsDataDTO> optimalDataPoints) |
EmissionsForecastDTO |
requestedAt(OffsetDateTime requestedAt) |
void |
setDataEndAt(OffsetDateTime dataEndAt) |
void |
setDataStartAt(OffsetDateTime dataStartAt) |
void |
setForecastData(List<EmissionsDataDTO> forecastData) |
void |
setGeneratedAt(OffsetDateTime generatedAt) |
void |
setLocation(String location) |
void |
setOptimalDataPoints(List<EmissionsDataDTO> optimalDataPoints) |
void |
setRequestedAt(OffsetDateTime requestedAt) |
void |
setWindowSize(Integer windowSize) |
String |
toJson()
Convert an instance of EmissionsForecastDTO 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
|
EmissionsForecastDTO |
windowSize(Integer windowSize) |
public static final String SERIALIZED_NAME_GENERATED_AT
public static final String SERIALIZED_NAME_REQUESTED_AT
public static final String SERIALIZED_NAME_LOCATION
public static final String SERIALIZED_NAME_DATA_START_AT
public static final String SERIALIZED_NAME_DATA_END_AT
public static final String SERIALIZED_NAME_WINDOW_SIZE
public static final String SERIALIZED_NAME_OPTIMAL_DATA_POINTS
public static final String SERIALIZED_NAME_FORECAST_DATA
public EmissionsForecastDTO generatedAt(@Nullable OffsetDateTime generatedAt)
@Nullable public OffsetDateTime getGeneratedAt()
public void setGeneratedAt(@Nullable OffsetDateTime generatedAt)
public EmissionsForecastDTO requestedAt(@Nullable OffsetDateTime requestedAt)
@Nullable public OffsetDateTime getRequestedAt()
public void setRequestedAt(@Nullable OffsetDateTime requestedAt)
public EmissionsForecastDTO location(@Nullable String location)
public EmissionsForecastDTO dataStartAt(@Nullable OffsetDateTime dataStartAt)
@Nullable public OffsetDateTime getDataStartAt()
public void setDataStartAt(@Nullable OffsetDateTime dataStartAt)
public EmissionsForecastDTO dataEndAt(@Nullable OffsetDateTime dataEndAt)
@Nullable public OffsetDateTime getDataEndAt()
public void setDataEndAt(@Nullable OffsetDateTime dataEndAt)
public EmissionsForecastDTO windowSize(@Nullable Integer windowSize)
@Nullable public Integer getWindowSize()
public EmissionsForecastDTO optimalDataPoints(@Nullable List<EmissionsDataDTO> optimalDataPoints)
public EmissionsForecastDTO addOptimalDataPointsItem(EmissionsDataDTO optimalDataPointsItem)
@Nullable public List<EmissionsDataDTO> getOptimalDataPoints()
public void setOptimalDataPoints(@Nullable List<EmissionsDataDTO> optimalDataPoints)
public EmissionsForecastDTO forecastData(@Nullable List<EmissionsDataDTO> forecastData)
public EmissionsForecastDTO addForecastDataItem(EmissionsDataDTO forecastDataItem)
@Nullable public List<EmissionsDataDTO> getForecastData()
public void setForecastData(@Nullable List<EmissionsDataDTO> forecastData)
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
jsonElement
- JSON ElementIOException
- if the JSON Element is invalid with respect to EmissionsForecastDTOpublic static EmissionsForecastDTO fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to EmissionsForecastDTOpublic String toJson()
Copyright © 2024. All rights reserved.