Class SourceControlSyncJobCreateProperties

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

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

    • SourceControlSyncJobCreateProperties

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

    • commitId

      public String commitId()
      Get the commitId property: The commit id of the source control sync job. If not syncing to a commitId, enter an empty string.
      Returns:
      the commitId value.
    • withCommitId

      public SourceControlSyncJobCreateProperties withCommitId(String commitId)
      Set the commitId property: The commit id of the source control sync job. If not syncing to a commitId, enter an empty string.
      Parameters:
      commitId - the commitId value to set.
      Returns:
      the SourceControlSyncJobCreateProperties 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<SourceControlSyncJobCreateProperties>
      Throws:
      IOException
    • fromJson

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