Class JobInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.automation.fluent.models.JobInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class JobInner
extends com.azure.core.management.ProxyResource
Definition of the job.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the creationTime property: Gets or sets the creation time of the job.endTime()
Get the endTime property: Gets or sets the end time of the job.Get the exception property: Gets or sets the exception of the job.static JobInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of JobInner from the JsonReader.id()
Get the id property: Fully qualified resource Id for the resource.jobId()
Get the jobId property: Gets or sets the id of the job.Get the lastModifiedTime property: Gets or sets the last modified time of the job.Get the lastStatusModifiedTime property: Gets or sets the last status modified time of the job.name()
Get the name property: The name of the resource.Get the parameters property: Gets or sets the parameters of the job.Get the provisioningState property: The current provisioning state of the job.runbook()
Get the runbook property: Gets or sets the runbook.runOn()
Get the runOn property: Gets or sets the runOn which specifies the group name where the job is to be executed.Get the startedBy property: Gets or sets the job started by.Get the startTime property: Gets or sets the start time of the job.status()
Get the status property: Gets or sets the status of the job.Get the statusDetails property: Gets or sets the status details of the job.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: The type of the resource.void
validate()
Validates the instance.withCreationTime
(OffsetDateTime creationTime) Set the creationTime property: Gets or sets the creation time of the job.withEndTime
(OffsetDateTime endTime) Set the endTime property: Gets or sets the end time of the job.withException
(String exception) Set the exception property: Gets or sets the exception of the job.Set the jobId property: Gets or sets the id of the job.withLastModifiedTime
(OffsetDateTime lastModifiedTime) Set the lastModifiedTime property: Gets or sets the last modified time of the job.withLastStatusModifiedTime
(OffsetDateTime lastStatusModifiedTime) Set the lastStatusModifiedTime property: Gets or sets the last status modified time of the job.withParameters
(Map<String, String> parameters) Set the parameters property: Gets or sets the parameters of the job.withProvisioningState
(JobProvisioningState provisioningState) Set the provisioningState property: The current provisioning state of the job.withRunbook
(RunbookAssociationProperty runbook) Set the runbook property: Gets or sets the runbook.Set the runOn property: Gets or sets the runOn which specifies the group name where the job is to be executed.withStartedBy
(String startedBy) Set the startedBy property: Gets or sets the job started by.withStartTime
(OffsetDateTime startTime) Set the startTime property: Gets or sets the start time of the job.withStatus
(JobStatus status) Set the status property: Gets or sets the status of the job.withStatusDetails
(String statusDetails) Set the statusDetails property: Gets or sets the status details of the job.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
JobInner
public JobInner()Creates an instance of JobInner class.
-
-
Method Details
-
type
Get the type property: The type of the resource.- Overrides:
type
in classcom.azure.core.management.ProxyResource
- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
name
in classcom.azure.core.management.ProxyResource
- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
id
in classcom.azure.core.management.ProxyResource
- Returns:
- the id value.
-
runbook
Get the runbook property: Gets or sets the runbook.- Returns:
- the runbook value.
-
withRunbook
Set the runbook property: Gets or sets the runbook.- Parameters:
runbook
- the runbook value to set.- Returns:
- the JobInner object itself.
-
startedBy
Get the startedBy property: Gets or sets the job started by.- Returns:
- the startedBy value.
-
withStartedBy
Set the startedBy property: Gets or sets the job started by.- Parameters:
startedBy
- the startedBy value to set.- Returns:
- the JobInner object itself.
-
runOn
Get the runOn property: Gets or sets the runOn which specifies the group name where the job is to be executed.- Returns:
- the runOn value.
-
withRunOn
Set the runOn property: Gets or sets the runOn which specifies the group name where the job is to be executed.- Parameters:
runOn
- the runOn value to set.- Returns:
- the JobInner object itself.
-
jobId
Get the jobId property: Gets or sets the id of the job.- Returns:
- the jobId value.
-
withJobId
Set the jobId property: Gets or sets the id of the job.- Parameters:
jobId
- the jobId value to set.- Returns:
- the JobInner object itself.
-
creationTime
Get the creationTime property: Gets or sets the creation time of the job.- Returns:
- the creationTime value.
-
withCreationTime
Set the creationTime property: Gets or sets the creation time of the job.- Parameters:
creationTime
- the creationTime value to set.- Returns:
- the JobInner object itself.
-
status
Get the status property: Gets or sets the status of the job.- Returns:
- the status value.
-
withStatus
Set the status property: Gets or sets the status of the job.- Parameters:
status
- the status value to set.- Returns:
- the JobInner object itself.
-
statusDetails
Get the statusDetails property: Gets or sets the status details of the job.- Returns:
- the statusDetails value.
-
withStatusDetails
Set the statusDetails property: Gets or sets the status details of the job.- Parameters:
statusDetails
- the statusDetails value to set.- Returns:
- the JobInner object itself.
-
startTime
Get the startTime property: Gets or sets the start time of the job.- Returns:
- the startTime value.
-
withStartTime
Set the startTime property: Gets or sets the start time of the job.- Parameters:
startTime
- the startTime value to set.- Returns:
- the JobInner object itself.
-
endTime
Get the endTime property: Gets or sets the end time of the job.- Returns:
- the endTime value.
-
withEndTime
Set the endTime property: Gets or sets the end time of the job.- Parameters:
endTime
- the endTime value to set.- Returns:
- the JobInner object itself.
-
exception
Get the exception property: Gets or sets the exception of the job.- Returns:
- the exception value.
-
withException
Set the exception property: Gets or sets the exception of the job.- Parameters:
exception
- the exception value to set.- Returns:
- the JobInner object itself.
-
lastModifiedTime
Get the lastModifiedTime property: Gets or sets the last modified time of the job.- Returns:
- the lastModifiedTime value.
-
withLastModifiedTime
Set the lastModifiedTime property: Gets or sets the last modified time of the job.- Parameters:
lastModifiedTime
- the lastModifiedTime value to set.- Returns:
- the JobInner object itself.
-
lastStatusModifiedTime
Get the lastStatusModifiedTime property: Gets or sets the last status modified time of the job.- Returns:
- the lastStatusModifiedTime value.
-
withLastStatusModifiedTime
Set the lastStatusModifiedTime property: Gets or sets the last status modified time of the job.- Parameters:
lastStatusModifiedTime
- the lastStatusModifiedTime value to set.- Returns:
- the JobInner object itself.
-
parameters
Get the parameters property: Gets or sets the parameters of the job.- Returns:
- the parameters value.
-
withParameters
Set the parameters property: Gets or sets the parameters of the job.- Parameters:
parameters
- the parameters value to set.- Returns:
- the JobInner object itself.
-
provisioningState
Get the provisioningState property: The current provisioning state of the job.- Returns:
- the provisioningState value.
-
withProvisioningState
Set the provisioningState property: The current provisioning state of the job.- Parameters:
provisioningState
- the provisioningState value to set.- Returns:
- the JobInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
- Overrides:
toJson
in classcom.azure.core.management.ProxyResource
- Throws:
IOException
-
fromJson
Reads an instance of JobInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of JobInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the JobInner.
-