Class SourceControlUpdateProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.SourceControlUpdateProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SourceControlUpdateProperties>
public final class SourceControlUpdateProperties
extends Object
implements com.azure.json.JsonSerializable<SourceControlUpdateProperties>
The properties of the update source control.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SourceControlUpdateProperties class. -
Method Summary
Modifier and TypeMethodDescriptionautoSync()
Get the autoSync property: The auto sync of the source control.branch()
Get the branch property: The repo branch of the source control.Get the description property: The user description of the source control.Get the folderPath property: The folder path of the source control.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SourceControlUpdateProperties from the JsonReader.Get the publishRunbook property: The auto publish of the source control.Get the securityToken property: The authorization token for the repo of the source control.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAutoSync
(Boolean autoSync) Set the autoSync property: The auto sync of the source control.withBranch
(String branch) Set the branch property: The repo branch of the source control.withDescription
(String description) Set the description property: The user description of the source control.withFolderPath
(String folderPath) Set the folderPath property: The folder path of the source control.withPublishRunbook
(Boolean publishRunbook) Set the publishRunbook property: The auto publish of the source control.withSecurityToken
(SourceControlSecurityTokenProperties securityToken) Set the securityToken property: The authorization token for the repo of the source control.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
-
SourceControlUpdateProperties
public SourceControlUpdateProperties()Creates an instance of SourceControlUpdateProperties class.
-
-
Method Details
-
branch
Get the branch property: The repo branch of the source control.- Returns:
- the branch value.
-
withBranch
Set the branch property: The repo branch of the source control.- Parameters:
branch
- the branch value to set.- Returns:
- the SourceControlUpdateProperties object itself.
-
folderPath
Get the folderPath property: The folder path of the source control. Path must be relative.- Returns:
- the folderPath value.
-
withFolderPath
Set the folderPath property: The folder path of the source control. Path must be relative.- Parameters:
folderPath
- the folderPath value to set.- Returns:
- the SourceControlUpdateProperties object itself.
-
autoSync
Get the autoSync property: The auto sync of the source control. Default is false.- Returns:
- the autoSync value.
-
withAutoSync
Set the autoSync property: The auto sync of the source control. Default is false.- Parameters:
autoSync
- the autoSync value to set.- Returns:
- the SourceControlUpdateProperties object itself.
-
publishRunbook
Get the publishRunbook property: The auto publish of the source control. Default is true.- Returns:
- the publishRunbook value.
-
withPublishRunbook
Set the publishRunbook property: The auto publish of the source control. Default is true.- Parameters:
publishRunbook
- the publishRunbook value to set.- Returns:
- the SourceControlUpdateProperties object itself.
-
securityToken
Get the securityToken property: The authorization token for the repo of the source control.- Returns:
- the securityToken value.
-
withSecurityToken
public SourceControlUpdateProperties withSecurityToken(SourceControlSecurityTokenProperties securityToken) Set the securityToken property: The authorization token for the repo of the source control.- Parameters:
securityToken
- the securityToken value to set.- Returns:
- the SourceControlUpdateProperties object itself.
-
description
Get the description property: The user description of the source control.- Returns:
- the description value.
-
withDescription
Set the description property: The user description of the source control.- Parameters:
description
- the description value to set.- Returns:
- the SourceControlUpdateProperties 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<SourceControlUpdateProperties>
- Throws:
IOException
-
fromJson
public static SourceControlUpdateProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SourceControlUpdateProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SourceControlUpdateProperties 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 SourceControlUpdateProperties.
-