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 Summary
Constructors Constructor Description FactoryGitHubConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringclientId()Get the clientId property: GitHub bring your own app client id.GitHubClientSecretclientSecret()Get the clientSecret property: GitHub bring your own app client secret information.Stringhostname()Get the hostname property: GitHub Enterprise host name.voidvalidate()Validates the instance.FactoryGitHubConfigurationwithAccountName(String accountName)Set the accountName property: Account name.FactoryGitHubConfigurationwithClientId(String clientId)Set the clientId property: GitHub bring your own app client id.FactoryGitHubConfigurationwithClientSecret(GitHubClientSecret clientSecret)Set the clientSecret property: GitHub bring your own app client secret information.FactoryGitHubConfigurationwithCollaborationBranch(String collaborationBranch)Set the collaborationBranch property: Collaboration branch.FactoryGitHubConfigurationwithHostname(String hostname)Set the hostname property: GitHub Enterprise host name.FactoryGitHubConfigurationwithLastCommitId(String lastCommitId)Set the lastCommitId property: Last commit id.FactoryGitHubConfigurationwithRepositoryName(String repositoryName)Set the repositoryName property: Repository name.FactoryGitHubConfigurationwithRootFolder(String rootFolder)Set the rootFolder property: Root folder.-
Methods inherited from class com.azure.resourcemanager.datafactory.models.FactoryRepoConfiguration
accountName, collaborationBranch, lastCommitId, repositoryName, rootFolder
-
-
-
-
Method Detail
-
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:
withAccountNamein classFactoryRepoConfiguration- 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:
withRepositoryNamein classFactoryRepoConfiguration- 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:
withCollaborationBranchin classFactoryRepoConfiguration- 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:
withRootFolderin classFactoryRepoConfiguration- 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:
withLastCommitIdin classFactoryRepoConfiguration- Parameters:
lastCommitId- the lastCommitId value to set.- Returns:
- the FactoryRepoConfiguration object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classFactoryRepoConfiguration- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-