Class JobExecutionProperties
java.lang.Object
com.azure.resourcemanager.appcontainers.fluent.models.JobExecutionProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<JobExecutionProperties>
public final class JobExecutionProperties
extends Object
implements com.azure.json.JsonSerializable<JobExecutionProperties>
Container Apps Job execution specific properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of JobExecutionProperties class. -
Method Summary
Modifier and TypeMethodDescriptionendTime()Get the endTime property: Job execution end time.static JobExecutionPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of JobExecutionProperties from the JsonReader.Get the startTime property: Job execution start time.status()Get the status property: Current running State of the job.template()Get the template property: Job's execution container.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEndTime(OffsetDateTime endTime) Set the endTime property: Job execution end time.withStartTime(OffsetDateTime startTime) Set the startTime property: Job execution start time.withTemplate(JobExecutionTemplate template) Set the template property: Job's execution container.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
JobExecutionProperties
public JobExecutionProperties()Creates an instance of JobExecutionProperties class.
-
-
Method Details
-
status
Get the status property: Current running State of the job.- Returns:
- the status value.
-
startTime
Get the startTime property: Job execution start time.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: Job execution start time.- Parameters:
startTime- the startTime value to set.- Returns:
- the JobExecutionProperties object itself.
-
endTime
Get the endTime property: Job execution end time.- Returns:
- the endTime value.
-
withEndTime
Set the endTime property: Job execution end time.- Parameters:
endTime- the endTime value to set.- Returns:
- the JobExecutionProperties object itself.
-
template
Get the template property: Job's execution container.- Returns:
- the template value.
-
withTemplate
Set the template property: Job's execution container.- Parameters:
template- the template value to set.- Returns:
- the JobExecutionProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<JobExecutionProperties>- Throws:
IOException
-
fromJson
public static JobExecutionProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of JobExecutionProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of JobExecutionProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the JobExecutionProperties.
-