Class SiteSourceControlProperties


  • public final class SiteSourceControlProperties
    extends Object
    SiteSourceControl resource specific properties.
    • Constructor Detail

      • SiteSourceControlProperties

        public SiteSourceControlProperties()
    • Method Detail

      • repoUrl

        public String repoUrl()
        Get the repoUrl property: Repository or source control URL.
        Returns:
        the repoUrl value.
      • withRepoUrl

        public SiteSourceControlProperties withRepoUrl​(String repoUrl)
        Set the repoUrl property: Repository or source control URL.
        Parameters:
        repoUrl - the repoUrl value to set.
        Returns:
        the SiteSourceControlProperties object itself.
      • branch

        public String branch()
        Get the branch property: Name of branch to use for deployment.
        Returns:
        the branch value.
      • withBranch

        public SiteSourceControlProperties withBranch​(String branch)
        Set the branch property: Name of branch to use for deployment.
        Parameters:
        branch - the branch value to set.
        Returns:
        the SiteSourceControlProperties 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 SiteSourceControlProperties 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 SiteSourceControlProperties 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 SiteSourceControlProperties 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 SiteSourceControlProperties 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 SiteSourceControlProperties 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 SiteSourceControlProperties 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 SiteSourceControlProperties 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 SiteSourceControlProperties 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 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.