Class SiteSourceControlProperties
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.SiteSourceControlProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<SiteSourceControlProperties>
public final class SiteSourceControlProperties
extends Object
implements com.azure.json.JsonSerializable<SiteSourceControlProperties>
SiteSourceControl resource specific properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SiteSourceControlProperties class. -
Method Summary
Modifier and TypeMethodDescriptionbranch()
Get the branch property: Name of branch to use for deployment.Get the deploymentRollbackEnabled property: <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.static SiteSourceControlProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SiteSourceControlProperties from the JsonReader.Get the gitHubActionConfiguration property: If GitHub Action is selected, than the associated configuration.Get the isGitHubAction property: <code>true</code> if this is deployed via GitHub action.Get the isManualIntegration property: <code>true</code> to limit to manual integration; <code>false</code> to enable continuous integration (which configures webhooks into online repos like GitHub).Get the isMercurial property: <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.repoUrl()
Get the repoUrl property: Repository or source control URL.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withBranch
(String branch) Set the branch property: Name of branch to use for deployment.withDeploymentRollbackEnabled
(Boolean deploymentRollbackEnabled) Set the deploymentRollbackEnabled property: <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.withGitHubActionConfiguration
(GitHubActionConfiguration gitHubActionConfiguration) Set the gitHubActionConfiguration property: If GitHub Action is selected, than the associated configuration.withIsGitHubAction
(Boolean isGitHubAction) Set the isGitHubAction property: <code>true</code> if this is deployed via GitHub action.withIsManualIntegration
(Boolean isManualIntegration) Set the isManualIntegration property: <code>true</code> to limit to manual integration; <code>false</code> to enable continuous integration (which configures webhooks into online repos like GitHub).withIsMercurial
(Boolean isMercurial) Set the isMercurial property: <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.withRepoUrl
(String repoUrl) Set the repoUrl property: Repository or source control URL.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
-
SiteSourceControlProperties
public SiteSourceControlProperties()Creates an instance of SiteSourceControlProperties class.
-
-
Method Details
-
repoUrl
Get the repoUrl property: Repository or source control URL.- Returns:
- the repoUrl value.
-
withRepoUrl
Set the repoUrl property: Repository or source control URL.- Parameters:
repoUrl
- the repoUrl value to set.- Returns:
- the SiteSourceControlProperties object itself.
-
branch
Get the branch property: Name of branch to use for deployment.- Returns:
- the branch value.
-
withBranch
Set the branch property: Name of branch to use for deployment.- Parameters:
branch
- the branch value to set.- Returns:
- the SiteSourceControlProperties object itself.
-
isManualIntegration
Get the isManualIntegration property: <code>true</code> to limit to manual integration; <code>false</code> to enable continuous integration (which configures webhooks into online repos like GitHub).- Returns:
- the isManualIntegration value.
-
withIsManualIntegration
Set the isManualIntegration property: <code>true</code> to limit to manual integration; <code>false</code> to enable continuous integration (which configures webhooks into online repos like GitHub).- Parameters:
isManualIntegration
- the isManualIntegration value to set.- Returns:
- the SiteSourceControlProperties object itself.
-
isGitHubAction
Get the isGitHubAction property: <code>true</code> if this is deployed via GitHub action.- Returns:
- the isGitHubAction value.
-
withIsGitHubAction
Set the isGitHubAction property: <code>true</code> if this is deployed via GitHub action.- Parameters:
isGitHubAction
- the isGitHubAction value to set.- Returns:
- the SiteSourceControlProperties object itself.
-
deploymentRollbackEnabled
Get the deploymentRollbackEnabled property: <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.- Returns:
- the deploymentRollbackEnabled value.
-
withDeploymentRollbackEnabled
Set the deploymentRollbackEnabled property: <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.- Parameters:
deploymentRollbackEnabled
- the deploymentRollbackEnabled value to set.- Returns:
- the SiteSourceControlProperties object itself.
-
isMercurial
Get the isMercurial property: <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.- Returns:
- the isMercurial value.
-
withIsMercurial
Set the isMercurial property: <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.- Parameters:
isMercurial
- the isMercurial value to set.- Returns:
- the SiteSourceControlProperties object itself.
-
gitHubActionConfiguration
Get the gitHubActionConfiguration property: If GitHub Action is selected, than the associated configuration.- Returns:
- the gitHubActionConfiguration value.
-
withGitHubActionConfiguration
public SiteSourceControlProperties withGitHubActionConfiguration(GitHubActionConfiguration gitHubActionConfiguration) Set the gitHubActionConfiguration property: If GitHub Action is selected, than the associated configuration.- Parameters:
gitHubActionConfiguration
- the gitHubActionConfiguration value to set.- Returns:
- the SiteSourceControlProperties 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<SiteSourceControlProperties>
- Throws:
IOException
-
fromJson
public static SiteSourceControlProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SiteSourceControlProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SiteSourceControlProperties 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 SiteSourceControlProperties.
-