GitHubOAuthProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.devhub.fluent.models.GitHubOAuthProperties

Implements

public final class GitHubOAuthProperties
implements JsonSerializable<GitHubOAuthProperties>

The response from List GitHubOAuth operation.

Constructor Summary

Constructor Description
GitHubOAuthProperties()

Creates an instance of GitHubOAuthProperties class.

Method Summary

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

Reads an instance of GitHubOAuthProperties from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
String username()

Get the username property: user making request.

void validate()

Validates the instance.

GitHubOAuthProperties withUsername(String username)

Set the username property: user making request.

Methods inherited from java.lang.Object

Constructor Details

GitHubOAuthProperties

public GitHubOAuthProperties()

Creates an instance of GitHubOAuthProperties class.

Method Details

fromJson

public static GitHubOAuthProperties fromJson(JsonReader jsonReader)

Reads an instance of GitHubOAuthProperties from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

username

public String username()

Get the username property: user making request.

Returns:

the username value.

validate

public void validate()

Validates the instance.

withUsername

public GitHubOAuthProperties withUsername(String username)

Set the username property: user making request.

Parameters:

username - the username value to set.

Returns:

the GitHubOAuthProperties object itself.

Applies to