Class SourceControlProperties
java.lang.Object
com.azure.resourcemanager.automation.fluent.models.SourceControlProperties
Definition of the source control properties.
-
Constructor Summary
-
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 creationTime property: The creation time.Get the description property: The description.Get the folderPath property: The folder path of the source control.Get the lastModifiedTime property: The last modified time.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 sourceType property: The source type.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.withCreationTime
(OffsetDateTime creationTime) Set the creationTime property: The creation time.withDescription
(String description) Set the description property: The description.withFolderPath
(String folderPath) Set the folderPath property: The folder path of the source control.withLastModifiedTime
(OffsetDateTime lastModifiedTime) Set the lastModifiedTime property: The last modified time.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.withSourceType
(SourceType sourceType) Set the sourceType property: The source type.
-
Constructor Details
-
SourceControlProperties
public SourceControlProperties()
-
-
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 SourceControlProperties 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 SourceControlProperties object itself.
-
folderPath
Get the folderPath property: The folder path of the source control.- Returns:
- the folderPath value.
-
withFolderPath
Set the folderPath property: The folder path of the source control.- Parameters:
folderPath
- the folderPath value to set.- Returns:
- the SourceControlProperties 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 SourceControlProperties 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 SourceControlProperties object itself.
-
sourceType
Get the sourceType property: The source type. Must be one of VsoGit, VsoTfvc, GitHub.- Returns:
- the sourceType value.
-
withSourceType
Set the sourceType property: The source type. Must be one of VsoGit, VsoTfvc, GitHub.- Parameters:
sourceType
- the sourceType value to set.- Returns:
- the SourceControlProperties object itself.
-
description
Get the description property: The description.- Returns:
- the description value.
-
withDescription
Set the description property: The description.- Parameters:
description
- the description value to set.- Returns:
- the SourceControlProperties object itself.
-
creationTime
Get the creationTime property: The creation time.- Returns:
- the creationTime value.
-
withCreationTime
Set the creationTime property: The creation time.- Parameters:
creationTime
- the creationTime value to set.- Returns:
- the SourceControlProperties object itself.
-
lastModifiedTime
Get the lastModifiedTime property: The last modified time.- Returns:
- the lastModifiedTime value.
-
withLastModifiedTime
Set the lastModifiedTime property: The last modified time.- Parameters:
lastModifiedTime
- the lastModifiedTime value to set.- Returns:
- the SourceControlProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-