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 Summary
ConstructorsConstructorDescriptionCreates an instance of SourceControlSyncJobCreateProperties 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 SourceControlSyncJobCreateProperties 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
-
SourceControlSyncJobCreateProperties
public SourceControlSyncJobCreateProperties()Creates an instance of SourceControlSyncJobCreateProperties 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 SourceControlSyncJobCreateProperties 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<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.
-