Partager via


GitHubOrganization Class

  • java.lang.Object
    • com.azure.resourcemanager.devopsinfrastructure.models.GitHubOrganization

Implements

public final class GitHubOrganization
implements JsonSerializable<GitHubOrganization>

Defines a GitHub organization.

Constructor Summary

Constructor Description
GitHubOrganization()

Creates an instance of GitHubOrganization class.

Method Summary

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

Reads an instance of GitHubOrganization from the JsonReader.

List<String> repositories()

Get the repositories property: Optional list of repositories in which the pool should be created.

JsonWriter toJson(JsonWriter jsonWriter)
String url()

Get the url property: The GitHub organization URL in which the pool should be created.

void validate()

Validates the instance.

GitHubOrganization withRepositories(List<String> repositories)

Set the repositories property: Optional list of repositories in which the pool should be created.

GitHubOrganization withUrl(String url)

Set the url property: The GitHub organization URL in which the pool should be created.

Methods inherited from java.lang.Object

Constructor Details

GitHubOrganization

public GitHubOrganization()

Creates an instance of GitHubOrganization class.

Method Details

fromJson

public static GitHubOrganization fromJson(JsonReader jsonReader)

Reads an instance of GitHubOrganization from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

repositories

public List<String> repositories()

Get the repositories property: Optional list of repositories in which the pool should be created.

Returns:

the repositories value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

url

public String url()

Get the url property: The GitHub organization URL in which the pool should be created.

Returns:

the url value.

validate

public void validate()

Validates the instance.

withRepositories

public GitHubOrganization withRepositories(List<String> repositories)

Set the repositories property: Optional list of repositories in which the pool should be created.

Parameters:

repositories - the repositories value to set.

Returns:

the GitHubOrganization object itself.

withUrl

public GitHubOrganization withUrl(String url)

Set the url property: The GitHub organization URL in which the pool should be created.

Parameters:

url - the url value to set.

Returns:

the GitHubOrganization object itself.

Applies to