GitHubOrganizationProfile Class

public final class GitHubOrganizationProfile
extends OrganizationProfile

GitHub organization profile.

Constructor Summary

Constructor Description
GitHubOrganizationProfile()

Creates an instance of GitHubOrganizationProfile class.

Method Summary

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

Reads an instance of GitHubOrganizationProfile from the JsonReader.

String kind()

Get the kind property: Discriminator property for OrganizationProfile.

List<GitHubOrganization> organizations()

Get the organizations property: The list of GitHub organizations/repositories the pool should be present in.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

GitHubOrganizationProfile withOrganizations(List<GitHubOrganization> organizations)

Set the organizations property: The list of GitHub organizations/repositories the pool should be present in.

Methods inherited from OrganizationProfile

Methods inherited from java.lang.Object

Constructor Details

GitHubOrganizationProfile

public GitHubOrganizationProfile()

Creates an instance of GitHubOrganizationProfile class.

Method Details

fromJson

public static GitHubOrganizationProfile fromJson(JsonReader jsonReader)

Reads an instance of GitHubOrganizationProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

kind

public String kind()

Get the kind property: Discriminator property for OrganizationProfile.

Overrides:

GitHubOrganizationProfile.kind()

Returns:

the kind value.

organizations

public List<GitHubOrganization> organizations()

Get the organizations property: The list of GitHub organizations/repositories the pool should be present in.

Returns:

the organizations value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

GitHubOrganizationProfile.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

GitHubOrganizationProfile.validate()

withOrganizations

public GitHubOrganizationProfile withOrganizations(List<GitHubOrganization> organizations)

Set the organizations property: The list of GitHub organizations/repositories the pool should be present in.

Parameters:

organizations - the organizations value to set.

Returns:

the GitHubOrganizationProfile object itself.

Applies to