Class SourceControlSyncJobInner
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.SourceControlSyncJobInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SourceControlSyncJobInner>
public final class SourceControlSyncJobInner
extends Object
implements com.azure.json.JsonSerializable<SourceControlSyncJobInner>
Definition of the source control sync job.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SourceControlSyncJobInner class. -
Method Summary
Modifier and TypeMethodDescriptionGet the creationTime property: The creation time of the job.endTime()
Get the endTime property: The end time of the job.static SourceControlSyncJobInner
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SourceControlSyncJobInner from the JsonReader.id()
Get the id property: Resource id.name()
Get the name property: Resource name.Get the provisioningState property: The provisioning state of the job.Get the sourceControlSyncJobId property: The source control sync job id.Get the startTime property: The start time of the job.syncType()
Get the syncType property: The sync type.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) type()
Get the type property: Resource type.void
validate()
Validates the instance.withProvisioningState
(ProvisioningState provisioningState) Set the provisioningState property: The provisioning state of the job.withSourceControlSyncJobId
(String sourceControlSyncJobId) Set the sourceControlSyncJobId property: The source control sync job id.withSyncType
(SyncType syncType) Set the syncType property: The sync type.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
-
SourceControlSyncJobInner
public SourceControlSyncJobInner()Creates an instance of SourceControlSyncJobInner class.
-
-
Method Details
-
name
Get the name property: Resource name.- Returns:
- the name value.
-
type
Get the type property: Resource type.- Returns:
- the type value.
-
id
Get the id property: Resource id.- Returns:
- the id value.
-
sourceControlSyncJobId
Get the sourceControlSyncJobId property: The source control sync job id.- Returns:
- the sourceControlSyncJobId value.
-
withSourceControlSyncJobId
Set the sourceControlSyncJobId property: The source control sync job id.- Parameters:
sourceControlSyncJobId
- the sourceControlSyncJobId value to set.- Returns:
- the SourceControlSyncJobInner object itself.
-
creationTime
Get the creationTime property: The creation time of the job.- Returns:
- the creationTime value.
-
provisioningState
Get the provisioningState property: The provisioning state of the job.- Returns:
- the provisioningState value.
-
withProvisioningState
Set the provisioningState property: The provisioning state of the job.- Parameters:
provisioningState
- the provisioningState value to set.- Returns:
- the SourceControlSyncJobInner object itself.
-
startTime
Get the startTime property: The start time of the job.- Returns:
- the startTime value.
-
endTime
Get the endTime property: The end time of the job.- Returns:
- the endTime value.
-
syncType
Get the syncType property: The sync type.- Returns:
- the syncType value.
-
withSyncType
Set the syncType property: The sync type.- Parameters:
syncType
- the syncType value to set.- Returns:
- the SourceControlSyncJobInner 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<SourceControlSyncJobInner>
- Throws:
IOException
-
fromJson
public static SourceControlSyncJobInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SourceControlSyncJobInner from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SourceControlSyncJobInner 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 SourceControlSyncJobInner.
-