GithubScopeEnvironmentData Class

public final class GithubScopeEnvironmentData
extends EnvironmentData

The github scope connector's environment data.

Constructor Summary

Constructor Description
GithubScopeEnvironmentData()

Creates an instance of GithubScopeEnvironmentData class.

Method Summary

Modifier and Type Method and Description
EnvironmentType environmentType()

Get the environmentType property: The type of the environment data.

static GithubScopeEnvironmentData fromJson(JsonReader jsonReader)

Reads an instance of GithubScopeEnvironmentData from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from EnvironmentData

Methods inherited from java.lang.Object

Constructor Details

GithubScopeEnvironmentData

public GithubScopeEnvironmentData()

Creates an instance of GithubScopeEnvironmentData class.

Method Details

environmentType

public EnvironmentType environmentType()

Get the environmentType property: The type of the environment data.

Overrides:

GithubScopeEnvironmentData.environmentType()

Returns:

the environmentType value.

fromJson

public static GithubScopeEnvironmentData fromJson(JsonReader jsonReader)

Reads an instance of GithubScopeEnvironmentData from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GithubScopeEnvironmentData.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

GithubScopeEnvironmentData.validate()

Applies to