Class WorkspaceRepositoryConfiguration

java.lang.Object
com.azure.resourcemanager.synapse.models.WorkspaceRepositoryConfiguration

public final class WorkspaceRepositoryConfiguration extends Object
Git integration settings.
  • Constructor Details

    • WorkspaceRepositoryConfiguration

      public WorkspaceRepositoryConfiguration()
      Creates an instance of WorkspaceRepositoryConfiguration class.
  • Method Details

    • type

      public String type()
      Get the type property: Type of workspace repositoryID configuration. Example WorkspaceVSTSConfiguration, WorkspaceGitHubConfiguration.
      Returns:
      the type value.
    • withType

      public WorkspaceRepositoryConfiguration withType(String type)
      Set the type property: Type of workspace repositoryID configuration. Example WorkspaceVSTSConfiguration, WorkspaceGitHubConfiguration.
      Parameters:
      type - the type value to set.
      Returns:
      the WorkspaceRepositoryConfiguration object itself.
    • hostname

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

      public WorkspaceRepositoryConfiguration 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 WorkspaceRepositoryConfiguration object itself.
    • accountName

      public String accountName()
      Get the accountName property: Account name.
      Returns:
      the accountName value.
    • withAccountName

      public WorkspaceRepositoryConfiguration withAccountName(String accountName)
      Set the accountName property: Account name.
      Parameters:
      accountName - the accountName value to set.
      Returns:
      the WorkspaceRepositoryConfiguration object itself.
    • projectName

      public String projectName()
      Get the projectName property: VSTS project name.
      Returns:
      the projectName value.
    • withProjectName

      public WorkspaceRepositoryConfiguration withProjectName(String projectName)
      Set the projectName property: VSTS project name.
      Parameters:
      projectName - the projectName value to set.
      Returns:
      the WorkspaceRepositoryConfiguration object itself.
    • repositoryName

      public String repositoryName()
      Get the repositoryName property: Repository name.
      Returns:
      the repositoryName value.
    • withRepositoryName

      public WorkspaceRepositoryConfiguration withRepositoryName(String repositoryName)
      Set the repositoryName property: Repository name.
      Parameters:
      repositoryName - the repositoryName value to set.
      Returns:
      the WorkspaceRepositoryConfiguration object itself.
    • collaborationBranch

      public String collaborationBranch()
      Get the collaborationBranch property: Collaboration branch.
      Returns:
      the collaborationBranch value.
    • withCollaborationBranch

      public WorkspaceRepositoryConfiguration withCollaborationBranch(String collaborationBranch)
      Set the collaborationBranch property: Collaboration branch.
      Parameters:
      collaborationBranch - the collaborationBranch value to set.
      Returns:
      the WorkspaceRepositoryConfiguration object itself.
    • rootFolder

      public String rootFolder()
      Get the rootFolder property: Root folder to use in the repository.
      Returns:
      the rootFolder value.
    • withRootFolder

      public WorkspaceRepositoryConfiguration withRootFolder(String rootFolder)
      Set the rootFolder property: Root folder to use in the repository.
      Parameters:
      rootFolder - the rootFolder value to set.
      Returns:
      the WorkspaceRepositoryConfiguration object itself.
    • lastCommitId

      public String lastCommitId()
      Get the lastCommitId property: The last commit ID.
      Returns:
      the lastCommitId value.
    • withLastCommitId

      public WorkspaceRepositoryConfiguration withLastCommitId(String lastCommitId)
      Set the lastCommitId property: The last commit ID.
      Parameters:
      lastCommitId - the lastCommitId value to set.
      Returns:
      the WorkspaceRepositoryConfiguration object itself.
    • tenantId

      public UUID tenantId()
      Get the tenantId property: The VSTS tenant ID.
      Returns:
      the tenantId value.
    • withTenantId

      public WorkspaceRepositoryConfiguration withTenantId(UUID tenantId)
      Set the tenantId property: The VSTS tenant ID.
      Parameters:
      tenantId - the tenantId value to set.
      Returns:
      the WorkspaceRepositoryConfiguration object itself.
    • validate

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