GitHubOAuthCallRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.devhub.models.GitHubOAuthCallRequest

Implements

public final class GitHubOAuthCallRequest
implements JsonSerializable<GitHubOAuthCallRequest>

GitHubOAuth request object.

Constructor Summary

Constructor Description
GitHubOAuthCallRequest()

Creates an instance of GitHubOAuthCallRequest class.

Method Summary

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

Reads an instance of GitHubOAuthCallRequest from the JsonReader.

String redirectUrl()

Get the redirectUrl property: The URL the client will redirect to on successful authentication.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GitHubOAuthCallRequest withRedirectUrl(String redirectUrl)

Set the redirectUrl property: The URL the client will redirect to on successful authentication.

Methods inherited from java.lang.Object

Constructor Details

GitHubOAuthCallRequest

public GitHubOAuthCallRequest()

Creates an instance of GitHubOAuthCallRequest class.

Method Details

fromJson

public static GitHubOAuthCallRequest fromJson(JsonReader jsonReader)

Reads an instance of GitHubOAuthCallRequest from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Throws:

IOException

- If an error occurs while reading the GitHubOAuthCallRequest.

redirectUrl

public String redirectUrl()

Get the redirectUrl property: The URL the client will redirect to on successful authentication. If empty, no redirect will occur.

Returns:

the redirectUrl value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withRedirectUrl

public GitHubOAuthCallRequest withRedirectUrl(String redirectUrl)

Set the redirectUrl property: The URL the client will redirect to on successful authentication. If empty, no redirect will occur.

Parameters:

redirectUrl - the redirectUrl value to set.

Returns:

the GitHubOAuthCallRequest object itself.

Applies to