Class SiteSourceControlInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.resourcemanager.appservice.models.ProxyOnlyResource
-
- com.azure.resourcemanager.appservice.fluent.models.SiteSourceControlInner
-
public final class SiteSourceControlInner extends ProxyOnlyResource
Source control configuration for an app.
-
-
Constructor Summary
Constructors Constructor Description SiteSourceControlInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringbranch()Get the branch property: Name of branch to use for deployment.BooleandeploymentRollbackEnabled()Get the deploymentRollbackEnabled property: <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.GitHubActionConfigurationgitHubActionConfiguration()Get the gitHubActionConfiguration property: If GitHub Action is selected, than the associated configuration.BooleanisGitHubAction()Get the isGitHubAction property: <code>true</code> if this is deployed via GitHub action.BooleanisManualIntegration()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).BooleanisMercurial()Get the isMercurial property: <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.StringrepoUrl()Get the repoUrl property: Repository or source control URL.voidvalidate()Validates the instance.SiteSourceControlInnerwithBranch(String branch)Set the branch property: Name of branch to use for deployment.SiteSourceControlInnerwithDeploymentRollbackEnabled(Boolean deploymentRollbackEnabled)Set the deploymentRollbackEnabled property: <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.SiteSourceControlInnerwithGitHubActionConfiguration(GitHubActionConfiguration gitHubActionConfiguration)Set the gitHubActionConfiguration property: If GitHub Action is selected, than the associated configuration.SiteSourceControlInnerwithIsGitHubAction(Boolean isGitHubAction)Set the isGitHubAction property: <code>true</code> if this is deployed via GitHub action.SiteSourceControlInnerwithIsManualIntegration(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).SiteSourceControlInnerwithIsMercurial(Boolean isMercurial)Set the isMercurial property: <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.SiteSourceControlInnerwithKind(String kind)Set the kind property: Kind of resource.SiteSourceControlInnerwithRepoUrl(String repoUrl)Set the repoUrl property: Repository or source control URL.-
Methods inherited from class com.azure.resourcemanager.appservice.models.ProxyOnlyResource
kind
-
-
-
-
Method Detail
-
withKind
public SiteSourceControlInner withKind(String kind)
Set the kind property: Kind of resource.- Overrides:
withKindin classProxyOnlyResource- Parameters:
kind- the kind value to set.- Returns:
- the ProxyOnlyResource object itself.
-
repoUrl
public String repoUrl()
Get the repoUrl property: Repository or source control URL.- Returns:
- the repoUrl value.
-
withRepoUrl
public SiteSourceControlInner withRepoUrl(String repoUrl)
Set the repoUrl property: Repository or source control URL.- Parameters:
repoUrl- the repoUrl value to set.- Returns:
- the SiteSourceControlInner object itself.
-
branch
public String branch()
Get the branch property: Name of branch to use for deployment.- Returns:
- the branch value.
-
withBranch
public SiteSourceControlInner withBranch(String branch)
Set the branch property: Name of branch to use for deployment.- Parameters:
branch- the branch value to set.- Returns:
- the SiteSourceControlInner object itself.
-
isManualIntegration
public Boolean 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
public SiteSourceControlInner 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).- Parameters:
isManualIntegration- the isManualIntegration value to set.- Returns:
- the SiteSourceControlInner object itself.
-
isGitHubAction
public Boolean isGitHubAction()
Get the isGitHubAction property: <code>true</code> if this is deployed via GitHub action.- Returns:
- the isGitHubAction value.
-
withIsGitHubAction
public SiteSourceControlInner withIsGitHubAction(Boolean isGitHubAction)
Set the isGitHubAction property: <code>true</code> if this is deployed via GitHub action.- Parameters:
isGitHubAction- the isGitHubAction value to set.- Returns:
- the SiteSourceControlInner object itself.
-
deploymentRollbackEnabled
public Boolean deploymentRollbackEnabled()
Get the deploymentRollbackEnabled property: <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.- Returns:
- the deploymentRollbackEnabled value.
-
withDeploymentRollbackEnabled
public SiteSourceControlInner withDeploymentRollbackEnabled(Boolean deploymentRollbackEnabled)
Set the deploymentRollbackEnabled property: <code>true</code> to enable deployment rollback; otherwise, <code>false</code>.- Parameters:
deploymentRollbackEnabled- the deploymentRollbackEnabled value to set.- Returns:
- the SiteSourceControlInner object itself.
-
isMercurial
public Boolean isMercurial()
Get the isMercurial property: <code>true</code> for a Mercurial repository; <code>false</code> for a Git repository.- Returns:
- the isMercurial value.
-
withIsMercurial
public SiteSourceControlInner withIsMercurial(Boolean isMercurial)
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 SiteSourceControlInner object itself.
-
gitHubActionConfiguration
public GitHubActionConfiguration gitHubActionConfiguration()
Get the gitHubActionConfiguration property: If GitHub Action is selected, than the associated configuration.- Returns:
- the gitHubActionConfiguration value.
-
withGitHubActionConfiguration
public SiteSourceControlInner 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 SiteSourceControlInner object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classProxyOnlyResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-