Class JobCollectionItemProperties

java.lang.Object
com.azure.resourcemanager.automation.fluent.models.JobCollectionItemProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<JobCollectionItemProperties>

public final class JobCollectionItemProperties extends Object implements com.azure.json.JsonSerializable<JobCollectionItemProperties>
Job collection item properties.
  • Constructor Details

    • JobCollectionItemProperties

      public JobCollectionItemProperties()
      Creates an instance of JobCollectionItemProperties class.
  • Method Details

    • runbook

      public RunbookAssociationProperty runbook()
      Get the runbook property: The runbook association.
      Returns:
      the runbook value.
    • jobId

      public UUID jobId()
      Get the jobId property: The id of the job.
      Returns:
      the jobId value.
    • creationTime

      public OffsetDateTime creationTime()
      Get the creationTime property: The creation time of the job.
      Returns:
      the creationTime value.
    • status

      public JobStatus status()
      Get the status property: The status of the job.
      Returns:
      the status value.
    • startTime

      public OffsetDateTime startTime()
      Get the startTime property: The start time of the job.
      Returns:
      the startTime value.
    • endTime

      public OffsetDateTime endTime()
      Get the endTime property: The end time of the job.
      Returns:
      the endTime value.
    • lastModifiedTime

      public OffsetDateTime lastModifiedTime()
      Get the lastModifiedTime property: The last modified time of the job.
      Returns:
      the lastModifiedTime value.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: The provisioning state of a resource.
      Returns:
      the provisioningState value.
    • runOn

      public String runOn()
      Get the runOn property: Specifies the runOn group name where the job was executed.
      Returns:
      the runOn value.
    • withRunOn

      public JobCollectionItemProperties withRunOn(String runOn)
      Set the runOn property: Specifies the runOn group name where the job was executed.
      Parameters:
      runOn - the runOn value to set.
      Returns:
      the JobCollectionItemProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<JobCollectionItemProperties>
      Throws:
      IOException
    • fromJson

      public static JobCollectionItemProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of JobCollectionItemProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of JobCollectionItemProperties 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 JobCollectionItemProperties.