Class FactoryGitHubConfiguration

java.lang.Object
com.azure.resourcemanager.datafactory.models.FactoryRepoConfiguration
com.azure.resourcemanager.datafactory.models.FactoryGitHubConfiguration

public final class FactoryGitHubConfiguration extends FactoryRepoConfiguration
Factory's GitHub repo information.
  • Constructor Details

    • FactoryGitHubConfiguration

      public FactoryGitHubConfiguration()
  • Method Details

    • hostname

      public String hostname()
      Get the hostname property: GitHub Enterprise host name. For example: `https://github.mydomain.com`.
      Returns:
      the hostname value.
    • withHostname

      public FactoryGitHubConfiguration withHostname(String hostname)
      Set the hostname property: GitHub Enterprise host name. For example: `https://github.mydomain.com`.
      Parameters:
      hostname - the hostname value to set.
      Returns:
      the FactoryGitHubConfiguration object itself.
    • clientId

      public String clientId()
      Get the clientId property: GitHub bring your own app client id.
      Returns:
      the clientId value.
    • withClientId

      public FactoryGitHubConfiguration withClientId(String clientId)
      Set the clientId property: GitHub bring your own app client id.
      Parameters:
      clientId - the clientId value to set.
      Returns:
      the FactoryGitHubConfiguration object itself.
    • clientSecret

      public GitHubClientSecret clientSecret()
      Get the clientSecret property: GitHub bring your own app client secret information.
      Returns:
      the clientSecret value.
    • withClientSecret

      public FactoryGitHubConfiguration withClientSecret(GitHubClientSecret clientSecret)
      Set the clientSecret property: GitHub bring your own app client secret information.
      Parameters:
      clientSecret - the clientSecret value to set.
      Returns:
      the FactoryGitHubConfiguration object itself.
    • withAccountName

      public FactoryGitHubConfiguration withAccountName(String accountName)
      Set the accountName property: Account name.
      Overrides:
      withAccountName in class FactoryRepoConfiguration
      Parameters:
      accountName - the accountName value to set.
      Returns:
      the FactoryRepoConfiguration object itself.
    • withRepositoryName

      public FactoryGitHubConfiguration withRepositoryName(String repositoryName)
      Set the repositoryName property: Repository name.
      Overrides:
      withRepositoryName in class FactoryRepoConfiguration
      Parameters:
      repositoryName - the repositoryName value to set.
      Returns:
      the FactoryRepoConfiguration object itself.
    • withCollaborationBranch

      public FactoryGitHubConfiguration withCollaborationBranch(String collaborationBranch)
      Set the collaborationBranch property: Collaboration branch.
      Overrides:
      withCollaborationBranch in class FactoryRepoConfiguration
      Parameters:
      collaborationBranch - the collaborationBranch value to set.
      Returns:
      the FactoryRepoConfiguration object itself.
    • withRootFolder

      public FactoryGitHubConfiguration withRootFolder(String rootFolder)
      Set the rootFolder property: Root folder.
      Overrides:
      withRootFolder in class FactoryRepoConfiguration
      Parameters:
      rootFolder - the rootFolder value to set.
      Returns:
      the FactoryRepoConfiguration object itself.
    • withLastCommitId

      public FactoryGitHubConfiguration withLastCommitId(String lastCommitId)
      Set the lastCommitId property: Last commit id.
      Overrides:
      withLastCommitId in class FactoryRepoConfiguration
      Parameters:
      lastCommitId - the lastCommitId value to set.
      Returns:
      the FactoryRepoConfiguration object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class FactoryRepoConfiguration
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.