GitHubAccessTokenRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.datafactory.models.GitHubAccessTokenRequest

Implements

public final class GitHubAccessTokenRequest
implements JsonSerializable<GitHubAccessTokenRequest>

Get GitHub access token request definition.

Constructor Summary

Constructor Description
GitHubAccessTokenRequest()

Creates an instance of GitHubAccessTokenRequest class.

Method Summary

Modifier and Type Method and Description
static GitHubAccessTokenRequest fromJson(JsonReader jsonReader)

Reads an instance of GitHubAccessTokenRequest from the JsonReader.

String gitHubAccessCode()

Get the gitHubAccessCode property: GitHub access code.

String gitHubAccessTokenBaseUrl()

Get the gitHubAccessTokenBaseUrl property: GitHub access token base URL.

String gitHubClientId()

Get the gitHubClientId property: GitHub application client ID.

GitHubClientSecret gitHubClientSecret()

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

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GitHubAccessTokenRequest withGitHubAccessCode(String gitHubAccessCode)

Set the gitHubAccessCode property: GitHub access code.

GitHubAccessTokenRequest withGitHubAccessTokenBaseUrl(String gitHubAccessTokenBaseUrl)

Set the gitHubAccessTokenBaseUrl property: GitHub access token base URL.

GitHubAccessTokenRequest withGitHubClientId(String gitHubClientId)

Set the gitHubClientId property: GitHub application client ID.

GitHubAccessTokenRequest withGitHubClientSecret(GitHubClientSecret gitHubClientSecret)

Set the gitHubClientSecret property: GitHub bring your own app client secret information.

Methods inherited from java.lang.Object

Constructor Details

GitHubAccessTokenRequest

public GitHubAccessTokenRequest()

Creates an instance of GitHubAccessTokenRequest class.

Method Details

fromJson

public static GitHubAccessTokenRequest fromJson(JsonReader jsonReader)

Reads an instance of GitHubAccessTokenRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of GitHubAccessTokenRequest 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.

gitHubAccessCode

public String gitHubAccessCode()

Get the gitHubAccessCode property: GitHub access code.

Returns:

the gitHubAccessCode value.

gitHubAccessTokenBaseUrl

public String gitHubAccessTokenBaseUrl()

Get the gitHubAccessTokenBaseUrl property: GitHub access token base URL.

Returns:

the gitHubAccessTokenBaseUrl value.

gitHubClientId

public String gitHubClientId()

Get the gitHubClientId property: GitHub application client ID.

Returns:

the gitHubClientId value.

gitHubClientSecret

public GitHubClientSecret gitHubClientSecret()

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

Returns:

the gitHubClientSecret value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withGitHubAccessCode

public GitHubAccessTokenRequest withGitHubAccessCode(String gitHubAccessCode)

Set the gitHubAccessCode property: GitHub access code.

Parameters:

gitHubAccessCode - the gitHubAccessCode value to set.

Returns:

the GitHubAccessTokenRequest object itself.

withGitHubAccessTokenBaseUrl

public GitHubAccessTokenRequest withGitHubAccessTokenBaseUrl(String gitHubAccessTokenBaseUrl)

Set the gitHubAccessTokenBaseUrl property: GitHub access token base URL.

Parameters:

gitHubAccessTokenBaseUrl - the gitHubAccessTokenBaseUrl value to set.

Returns:

the GitHubAccessTokenRequest object itself.

withGitHubClientId

public GitHubAccessTokenRequest withGitHubClientId(String gitHubClientId)

Set the gitHubClientId property: GitHub application client ID.

Parameters:

gitHubClientId - the gitHubClientId value to set.

Returns:

the GitHubAccessTokenRequest object itself.

withGitHubClientSecret

public GitHubAccessTokenRequest withGitHubClientSecret(GitHubClientSecret gitHubClientSecret)

Set the gitHubClientSecret property: GitHub bring your own app client secret information.

Parameters:

gitHubClientSecret - the gitHubClientSecret value to set.

Returns:

the GitHubAccessTokenRequest object itself.

Applies to