Partager via


AgentPoolListResult Class

  • java.lang.Object
    • com.azure.resourcemanager.containerregistry.models.AgentPoolListResult

Implements

public final class AgentPoolListResult
implements JsonSerializable<AgentPoolListResult>

The collection of agent pools.

Constructor Summary

Constructor Description
AgentPoolListResult()

Creates an instance of AgentPoolListResult class.

Method Summary

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

Reads an instance of AgentPoolListResult from the JsonReader.

String nextLink()

Get the nextLink property: The URI that can be used to request the next set of paged results.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

List<AgentPoolInner> value()

Get the value property: The collection value.

AgentPoolListResult withNextLink(String nextLink)

Set the nextLink property: The URI that can be used to request the next set of paged results.

AgentPoolListResult withValue(List<AgentPoolInner> value)

Set the value property: The collection value.

Methods inherited from java.lang.Object

Constructor Details

AgentPoolListResult

public AgentPoolListResult()

Creates an instance of AgentPoolListResult class.

Method Details

fromJson

public static AgentPoolListResult fromJson(JsonReader jsonReader)

Reads an instance of AgentPoolListResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

nextLink

public String nextLink()

Get the nextLink property: The URI that can be used to request the next set of paged results.

Returns:

the nextLink value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

value

public List<AgentPoolInner> value()

Get the value property: The collection value.

Returns:

the value value.

withNextLink

public AgentPoolListResult withNextLink(String nextLink)

Set the nextLink property: The URI that can be used to request the next set of paged results.

Parameters:

nextLink - the nextLink value to set.

Returns:

the AgentPoolListResult object itself.

withValue

public AgentPoolListResult withValue(List<AgentPoolInner> value)

Set the value property: The collection value.

Parameters:

value - the value value to set.

Returns:

the AgentPoolListResult object itself.

Applies to