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 Summary
ConstructorsConstructorDescriptionCreates an instance of SourceControlSyncJobCreateParameters class. -
Method Summary
Modifier and TypeMethodDescriptioncommitId()
Get the commitId property: The commit id of the source control sync job.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SourceControlSyncJobCreateParameters from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withCommitId
(String commitId) Set the commitId property: The commit id of the source control sync 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
-
SourceControlSyncJobCreateParameters
public SourceControlSyncJobCreateParameters()Creates an instance of SourceControlSyncJobCreateParameters class.
-
-
Method Details
-
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
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
- Specified by:
toJson
in interfacecom.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.
-