FactoryGitHubConfiguration Class

public final class FactoryGitHubConfiguration
extends FactoryRepoConfiguration

Factory's GitHub repo information.

Constructor Summary

Constructor Description
FactoryGitHubConfiguration()

Creates an instance of FactoryGitHubConfiguration class.

Method Summary

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.

static FactoryGitHubConfiguration fromJson(JsonReader jsonReader)

Reads an instance of FactoryGitHubConfiguration from the JsonReader.

String hostname()

Get the hostname property: GitHub Enterprise host name.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Type of repo configuration.

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 withDisablePublish(Boolean disablePublish)

Set the disablePublish property: Disable manual publish operation in ADF studio to favor automated publish.

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 FactoryRepoConfiguration

Methods inherited from java.lang.Object

Constructor Details

FactoryGitHubConfiguration

public FactoryGitHubConfiguration()

Creates an instance of FactoryGitHubConfiguration class.

Method Details

clientId

public String clientId()

Get the clientId property: GitHub bring your own app client id.

Returns:

the clientId value.

clientSecret

public GitHubClientSecret clientSecret()

Get the clientSecret property: GitHub bring your own app client secret information.

Returns:

the clientSecret value.

fromJson

public static FactoryGitHubConfiguration fromJson(JsonReader jsonReader)

Reads an instance of FactoryGitHubConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of FactoryGitHubConfiguration if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

hostname

public String hostname()

Get the hostname property: GitHub Enterprise host name. For example: `https://github.mydomain.com`.

Returns:

the hostname value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

FactoryGitHubConfiguration.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Type of repo configuration.

Overrides:

FactoryGitHubConfiguration.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

Overrides:

FactoryGitHubConfiguration.validate()

withAccountName

public FactoryGitHubConfiguration withAccountName(String accountName)

Set the accountName property: Account name.

Overrides:

FactoryGitHubConfiguration.withAccountName(String accountName)

Parameters:

accountName

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.

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.

withCollaborationBranch

public FactoryGitHubConfiguration withCollaborationBranch(String collaborationBranch)

Set the collaborationBranch property: Collaboration branch.

Overrides:

FactoryGitHubConfiguration.withCollaborationBranch(String collaborationBranch)

Parameters:

collaborationBranch

withDisablePublish

public FactoryGitHubConfiguration withDisablePublish(Boolean disablePublish)

Set the disablePublish property: Disable manual publish operation in ADF studio to favor automated publish.

Overrides:

FactoryGitHubConfiguration.withDisablePublish(Boolean disablePublish)

Parameters:

disablePublish

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.

withLastCommitId

public FactoryGitHubConfiguration withLastCommitId(String lastCommitId)

Set the lastCommitId property: Last commit id.

Overrides:

FactoryGitHubConfiguration.withLastCommitId(String lastCommitId)

Parameters:

lastCommitId

withRepositoryName

public FactoryGitHubConfiguration withRepositoryName(String repositoryName)

Set the repositoryName property: Repository name.

Overrides:

FactoryGitHubConfiguration.withRepositoryName(String repositoryName)

Parameters:

repositoryName

withRootFolder

public FactoryGitHubConfiguration withRootFolder(String rootFolder)

Set the rootFolder property: Root folder.

Overrides:

FactoryGitHubConfiguration.withRootFolder(String rootFolder)

Parameters:

rootFolder

Applies to