public final class FactoryGitHubConfiguration extends FactoryRepoConfiguration
| Constructor and Description |
|---|
FactoryGitHubConfiguration() |
| Modifier and Type | Method and 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.
|
accountName, collaborationBranch, lastCommitId, repositoryName, rootFolderpublic String hostname()
public FactoryGitHubConfiguration withHostname(String hostname)
hostname - the hostname value to set.public String clientId()
public FactoryGitHubConfiguration withClientId(String clientId)
clientId - the clientId value to set.public GitHubClientSecret clientSecret()
public FactoryGitHubConfiguration withClientSecret(GitHubClientSecret clientSecret)
clientSecret - the clientSecret value to set.public FactoryGitHubConfiguration withAccountName(String accountName)
withAccountName in class FactoryRepoConfigurationaccountName - the accountName value to set.public FactoryGitHubConfiguration withRepositoryName(String repositoryName)
withRepositoryName in class FactoryRepoConfigurationrepositoryName - the repositoryName value to set.public FactoryGitHubConfiguration withCollaborationBranch(String collaborationBranch)
withCollaborationBranch in class FactoryRepoConfigurationcollaborationBranch - the collaborationBranch value to set.public FactoryGitHubConfiguration withRootFolder(String rootFolder)
withRootFolder in class FactoryRepoConfigurationrootFolder - the rootFolder value to set.public FactoryGitHubConfiguration withLastCommitId(String lastCommitId)
withLastCommitId in class FactoryRepoConfigurationlastCommitId - the lastCommitId value to set.public void validate()
validate in class FactoryRepoConfigurationIllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.