@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-12-11T00:56:28.222220Z[Etc/UTC]", comments="Generator version: 7.10.0") public class CarbonIntensityDTO extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CarbonIntensityDTO.CustomTypeAdapterFactory |
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_CARBON_INTENSITY |
static String |
SERIALIZED_NAME_END_TIME |
static String |
SERIALIZED_NAME_LOCATION |
static String |
SERIALIZED_NAME_START_TIME |
Constructor and Description |
---|
CarbonIntensityDTO() |
Modifier and Type | Method and Description |
---|---|
CarbonIntensityDTO |
carbonIntensity(Double carbonIntensity) |
CarbonIntensityDTO |
endTime(OffsetDateTime endTime) |
boolean |
equals(Object o) |
static CarbonIntensityDTO |
fromJson(String jsonString)
Create an instance of CarbonIntensityDTO given an JSON string
|
Double |
getCarbonIntensity()
Value of the marginal carbon intensity in grams per kilowatt-hour.
|
OffsetDateTime |
getEndTime()
the time at which the workflow we are measuring carbon intensity for ended
|
String |
getLocation()
the location name where workflow is run
|
OffsetDateTime |
getStartTime()
the time at which the workflow we are measuring carbon intensity for started
|
int |
hashCode() |
CarbonIntensityDTO |
location(String location) |
void |
setCarbonIntensity(Double carbonIntensity) |
void |
setEndTime(OffsetDateTime endTime) |
void |
setLocation(String location) |
void |
setStartTime(OffsetDateTime startTime) |
CarbonIntensityDTO |
startTime(OffsetDateTime startTime) |
String |
toJson()
Convert an instance of CarbonIntensityDTO 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
|
public static final String SERIALIZED_NAME_LOCATION
public static final String SERIALIZED_NAME_START_TIME
public static final String SERIALIZED_NAME_END_TIME
public static final String SERIALIZED_NAME_CARBON_INTENSITY
public CarbonIntensityDTO location(@Nullable String location)
@Nullable public String getLocation()
public CarbonIntensityDTO startTime(@Nullable OffsetDateTime startTime)
@Nullable public OffsetDateTime getStartTime()
public void setStartTime(@Nullable OffsetDateTime startTime)
public CarbonIntensityDTO endTime(@Nullable OffsetDateTime endTime)
@Nullable public OffsetDateTime getEndTime()
public void setEndTime(@Nullable OffsetDateTime endTime)
public CarbonIntensityDTO carbonIntensity(@Nullable Double carbonIntensity)
@Nullable public Double getCarbonIntensity()
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
jsonElement
- JSON ElementIOException
- if the JSON Element is invalid with respect to CarbonIntensityDTOpublic static CarbonIntensityDTO fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to CarbonIntensityDTOpublic String toJson()
Copyright © 2024. All rights reserved.