Class SourceControlCreateOrUpdateProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.SourceControlCreateOrUpdateProperties
The properties of the create source control operation.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionautoSync()
Get the autoSync property: The auto async 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.Get the publishRunbook property: The auto publish of the source control.repoUrl()
Get the repoUrl property: The repo url of the source control.Get the securityToken property: The authorization token for the repo of the source control.Get the sourceType property: The source type.void
validate()
Validates the instance.withAutoSync
(Boolean autoSync) Set the autoSync property: The auto async 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.withRepoUrl
(String repoUrl) Set the repoUrl property: The repo url of the source control.withSecurityToken
(SourceControlSecurityTokenProperties securityToken) Set the securityToken property: The authorization token for the repo of the source control.withSourceType
(SourceType sourceType) Set the sourceType property: The source type.
-
Constructor Details
-
SourceControlCreateOrUpdateProperties
public SourceControlCreateOrUpdateProperties()
-
-
Method Details
-
repoUrl
Get the repoUrl property: The repo url of the source control.- Returns:
- the repoUrl value.
-
withRepoUrl
Set the repoUrl property: The repo url of the source control.- Parameters:
repoUrl
- the repoUrl value to set.- Returns:
- the SourceControlCreateOrUpdateProperties object itself.
-
branch
Get the branch property: The repo branch of the source control. Include branch as empty string for VsoTfvc.- Returns:
- the branch value.
-
withBranch
Set the branch property: The repo branch of the source control. Include branch as empty string for VsoTfvc.- Parameters:
branch
- the branch value to set.- Returns:
- the SourceControlCreateOrUpdateProperties 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 SourceControlCreateOrUpdateProperties object itself.
-
autoSync
Get the autoSync property: The auto async of the source control. Default is false.- Returns:
- the autoSync value.
-
withAutoSync
Set the autoSync property: The auto async of the source control. Default is false.- Parameters:
autoSync
- the autoSync value to set.- Returns:
- the SourceControlCreateOrUpdateProperties 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 SourceControlCreateOrUpdateProperties object itself.
-
sourceType
Get the sourceType property: The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.- Returns:
- the sourceType value.
-
withSourceType
Set the sourceType property: The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive.- Parameters:
sourceType
- the sourceType value to set.- Returns:
- the SourceControlCreateOrUpdateProperties object itself.
-
securityToken
Get the securityToken property: The authorization token for the repo of the source control.- Returns:
- the securityToken value.
-
withSecurityToken
public SourceControlCreateOrUpdateProperties 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 SourceControlCreateOrUpdateProperties 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 SourceControlCreateOrUpdateProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-