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 String
clientId()
Get the clientId property: GitHub bring your own app client id.GitHubClientSecret
clientSecret()
Get the clientSecret property: GitHub bring your own app client secret information.String
hostname()
Get the hostname property: GitHub Enterprise host name.void
validate()
Validates the instance.FactoryGitHubConfiguration
withAccountName(String accountName)
Set the accountName property: Account name.FactoryGitHubConfiguration
withClientId(String clientId)
Set the clientId property: GitHub bring your own app client id.FactoryGitHubConfiguration
withClientSecret(GitHubClientSecret clientSecret)
Set the clientSecret property: GitHub bring your own app client secret information.FactoryGitHubConfiguration
withCollaborationBranch(String collaborationBranch)
Set the collaborationBranch property: Collaboration branch.FactoryGitHubConfiguration
withHostname(String hostname)
Set the hostname property: GitHub Enterprise host name.FactoryGitHubConfiguration
withLastCommitId(String lastCommitId)
Set the lastCommitId property: Last commit id.FactoryGitHubConfiguration
withRepositoryName(String repositoryName)
Set the repositoryName property: Repository name.FactoryGitHubConfiguration
withRootFolder(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:
withAccountName
in 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:
withRepositoryName
in 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:
withCollaborationBranch
in 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:
withRootFolder
in 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:
withLastCommitId
in classFactoryRepoConfiguration
- Parameters:
lastCommitId
- the lastCommitId value to set.- Returns:
- the FactoryRepoConfiguration object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classFactoryRepoConfiguration
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-