GitHubResourceInfo Class

  • java.lang.Object
    • com.azure.resourcemanager.securityinsights.models.GitHubResourceInfo

Implements

public final class GitHubResourceInfo
implements JsonSerializable<GitHubResourceInfo>

Resources created in GitHub repository.

Constructor Summary

Constructor Description
GitHubResourceInfo()

Creates an instance of GitHubResourceInfo class.

Method Summary

Modifier and Type Method and Description
String appInstallationId()

Get the appInstallationId property: GitHub application installation id.

static GitHubResourceInfo fromJson(JsonReader jsonReader)

Reads an instance of GitHubResourceInfo from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GitHubResourceInfo withAppInstallationId(String appInstallationId)

Set the appInstallationId property: GitHub application installation id.

Methods inherited from java.lang.Object

Constructor Details

GitHubResourceInfo

public GitHubResourceInfo()

Creates an instance of GitHubResourceInfo class.

Method Details

appInstallationId

public String appInstallationId()

Get the appInstallationId property: GitHub application installation id.

Returns:

the appInstallationId value.

fromJson

public static GitHubResourceInfo fromJson(JsonReader jsonReader)

Reads an instance of GitHubResourceInfo from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAppInstallationId

public GitHubResourceInfo withAppInstallationId(String appInstallationId)

Set the appInstallationId property: GitHub application installation id.

Parameters:

appInstallationId - the appInstallationId value to set.

Returns:

the GitHubResourceInfo object itself.

Applies to