@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-12-11T00:56:28.222220Z[Etc/UTC]", comments="Generator version: 7.10.0") public class CarbonIntensityBatchParametersDTO extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CarbonIntensityBatchParametersDTO.CustomTypeAdapterFactory |
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
openapiFields |
static HashSet<String> |
openapiRequiredFields |
static String |
SERIALIZED_NAME_END_TIME |
static String |
SERIALIZED_NAME_LOCATION |
static String |
SERIALIZED_NAME_START_TIME |
Constructor and Description |
---|
CarbonIntensityBatchParametersDTO() |
Modifier and Type | Method and Description |
---|---|
CarbonIntensityBatchParametersDTO |
endTime(OffsetDateTime endTime) |
boolean |
equals(Object o) |
static CarbonIntensityBatchParametersDTO |
fromJson(String jsonString)
Create an instance of CarbonIntensityBatchParametersDTO given an JSON string
|
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() |
CarbonIntensityBatchParametersDTO |
location(String location) |
void |
setEndTime(OffsetDateTime endTime) |
void |
setLocation(String location) |
void |
setStartTime(OffsetDateTime startTime) |
CarbonIntensityBatchParametersDTO |
startTime(OffsetDateTime startTime) |
String |
toJson()
Convert an instance of CarbonIntensityBatchParametersDTO 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 CarbonIntensityBatchParametersDTO location(@Nullable String location)
@Nullable public String getLocation()
public CarbonIntensityBatchParametersDTO startTime(@Nullable OffsetDateTime startTime)
@Nullable public OffsetDateTime getStartTime()
public void setStartTime(@Nullable OffsetDateTime startTime)
public CarbonIntensityBatchParametersDTO endTime(@Nullable OffsetDateTime endTime)
@Nullable public OffsetDateTime getEndTime()
public void setEndTime(@Nullable OffsetDateTime endTime)
public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
jsonElement
- JSON ElementIOException
- if the JSON Element is invalid with respect to CarbonIntensityBatchParametersDTOpublic static CarbonIntensityBatchParametersDTO fromJson(String jsonString) throws IOException
jsonString
- JSON stringIOException
- if the JSON string is invalid with respect to CarbonIntensityBatchParametersDTOpublic String toJson()
Copyright © 2024. All rights reserved.