Class SourceControlSyncJobCreateParameters

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

public final class SourceControlSyncJobCreateParameters extends Object implements com.azure.json.JsonSerializable<SourceControlSyncJobCreateParameters>
The parameters supplied to the create source control sync job operation.
  • Constructor Details

    • SourceControlSyncJobCreateParameters

      public SourceControlSyncJobCreateParameters()
      Creates an instance of SourceControlSyncJobCreateParameters 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 SourceControlSyncJobCreateParameters 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 SourceControlSyncJobCreateParameters 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<SourceControlSyncJobCreateParameters>
      Throws:
      IOException
    • fromJson

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