Share via


AgentPoolUpdateParameters Class

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

Implements

public final class AgentPoolUpdateParameters
implements JsonSerializable<AgentPoolUpdateParameters>

The parameters for updating an agent pool.

Constructor Summary

Constructor Description
AgentPoolUpdateParameters()

Creates an instance of AgentPoolUpdateParameters class.

Method Summary

Modifier and Type Method and Description
Integer count()

Get the count property: The count of agent machine.

static AgentPoolUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of AgentPoolUpdateParameters from the JsonReader.

Map<String,String> tags()

Get the tags property: The ARM resource tags.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

AgentPoolUpdateParameters withCount(Integer count)

Set the count property: The count of agent machine.

AgentPoolUpdateParameters withTags(Map<String,String> tags)

Set the tags property: The ARM resource tags.

Methods inherited from java.lang.Object

Constructor Details

AgentPoolUpdateParameters

public AgentPoolUpdateParameters()

Creates an instance of AgentPoolUpdateParameters class.

Method Details

count

public Integer count()

Get the count property: The count of agent machine.

Returns:

the count value.

fromJson

public static AgentPoolUpdateParameters fromJson(JsonReader jsonReader)

Reads an instance of AgentPoolUpdateParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

tags

public Map<String,String> tags()

Get the tags property: The ARM resource tags.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCount

public AgentPoolUpdateParameters withCount(Integer count)

Set the count property: The count of agent machine.

Parameters:

count - the count value to set.

Returns:

the AgentPoolUpdateParameters object itself.

withTags

public AgentPoolUpdateParameters withTags(Map<String,String> tags)

Set the tags property: The ARM resource tags.

Parameters:

tags - the tags value to set.

Returns:

the AgentPoolUpdateParameters object itself.

Applies to