Class SourceControlSyncJobByIdInner

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

public final class SourceControlSyncJobByIdInner extends Object implements com.azure.json.JsonSerializable<SourceControlSyncJobByIdInner>
Definition of the source control sync job.
  • Constructor Details

    • SourceControlSyncJobByIdInner

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

    • id

      public String id()
      Get the id property: The id of the job.
      Returns:
      the id value.
    • withId

      Set the id property: The id of the job.
      Parameters:
      id - the id value to set.
      Returns:
      the SourceControlSyncJobByIdInner object itself.
    • sourceControlSyncJobId

      public String sourceControlSyncJobId()
      Get the sourceControlSyncJobId property: The source control sync job id.
      Returns:
      the sourceControlSyncJobId value.
    • withSourceControlSyncJobId

      public SourceControlSyncJobByIdInner withSourceControlSyncJobId(String sourceControlSyncJobId)
      Set the sourceControlSyncJobId property: The source control sync job id.
      Parameters:
      sourceControlSyncJobId - the sourceControlSyncJobId value to set.
      Returns:
      the SourceControlSyncJobByIdInner object itself.
    • creationTime

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

      public ProvisioningState provisioningState()
      Get the provisioningState property: The provisioning state of the job.
      Returns:
      the provisioningState value.
    • withProvisioningState

      public SourceControlSyncJobByIdInner withProvisioningState(ProvisioningState provisioningState)
      Set the provisioningState property: The provisioning state of the job.
      Parameters:
      provisioningState - the provisioningState value to set.
      Returns:
      the SourceControlSyncJobByIdInner object itself.
    • 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.
    • syncType

      public SyncType syncType()
      Get the syncType property: The sync type.
      Returns:
      the syncType value.
    • withSyncType

      public SourceControlSyncJobByIdInner withSyncType(SyncType syncType)
      Set the syncType property: The sync type.
      Parameters:
      syncType - the syncType value to set.
      Returns:
      the SourceControlSyncJobByIdInner object itself.
    • exception

      public String exception()
      Get the exception property: The exceptions that occurred while running the sync job.
      Returns:
      the exception value.
    • withException

      public SourceControlSyncJobByIdInner withException(String exception)
      Set the exception property: The exceptions that occurred while running the sync job.
      Parameters:
      exception - the exception value to set.
      Returns:
      the SourceControlSyncJobByIdInner 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<SourceControlSyncJobByIdInner>
      Throws:
      IOException
    • fromJson

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