AgentPoolPatchParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.networkcloud.models.AgentPoolPatchParameters

Implements

public final class AgentPoolPatchParameters
implements JsonSerializable<AgentPoolPatchParameters>

AgentPoolPatchParameters represents the body of the request to patch the Kubernetes cluster agent pool.

Constructor Summary

Constructor Description
AgentPoolPatchParameters()

Creates an instance of AgentPoolPatchParameters class.

Method Summary

Modifier and Type Method and Description
NodePoolAdministratorConfigurationPatch administratorConfiguration()

Get the administratorConfiguration property: The configuration of administrator credentials for the control plane nodes.

Long count()

Get the count property: The number of virtual machines that use this configuration.

static AgentPoolPatchParameters fromJson(JsonReader jsonReader)

Reads an instance of AgentPoolPatchParameters from the JsonReader.

Map<String,String> tags()

Get the tags property: The Azure resource tags that will replace the existing ones.

JsonWriter toJson(JsonWriter jsonWriter)
AgentPoolUpgradeSettings upgradeSettings()

Get the upgradeSettings property: The configuration of the agent pool.

void validate()

Validates the instance.

AgentPoolPatchParameters withAdministratorConfiguration(NodePoolAdministratorConfigurationPatch administratorConfiguration)

Set the administratorConfiguration property: The configuration of administrator credentials for the control plane nodes.

AgentPoolPatchParameters withCount(Long count)

Set the count property: The number of virtual machines that use this configuration.

AgentPoolPatchParameters withTags(Map<String,String> tags)

Set the tags property: The Azure resource tags that will replace the existing ones.

AgentPoolPatchParameters withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettings)

Set the upgradeSettings property: The configuration of the agent pool.

Methods inherited from java.lang.Object

Constructor Details

AgentPoolPatchParameters

public AgentPoolPatchParameters()

Creates an instance of AgentPoolPatchParameters class.

Method Details

administratorConfiguration

public NodePoolAdministratorConfigurationPatch administratorConfiguration()

Get the administratorConfiguration property: The configuration of administrator credentials for the control plane nodes.

Returns:

the administratorConfiguration value.

count

public Long count()

Get the count property: The number of virtual machines that use this configuration.

Returns:

the count value.

fromJson

public static AgentPoolPatchParameters fromJson(JsonReader jsonReader)

Reads an instance of AgentPoolPatchParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

tags

public Map<String,String> tags()

Get the tags property: The Azure resource tags that will replace the existing ones.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

upgradeSettings

public AgentPoolUpgradeSettings upgradeSettings()

Get the upgradeSettings property: The configuration of the agent pool.

Returns:

the upgradeSettings value.

validate

public void validate()

Validates the instance.

withAdministratorConfiguration

public AgentPoolPatchParameters withAdministratorConfiguration(NodePoolAdministratorConfigurationPatch administratorConfiguration)

Set the administratorConfiguration property: The configuration of administrator credentials for the control plane nodes.

Parameters:

administratorConfiguration - the administratorConfiguration value to set.

Returns:

the AgentPoolPatchParameters object itself.

withCount

public AgentPoolPatchParameters withCount(Long count)

Set the count property: The number of virtual machines that use this configuration.

Parameters:

count - the count value to set.

Returns:

the AgentPoolPatchParameters object itself.

withTags

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

Set the tags property: The Azure resource tags that will replace the existing ones.

Parameters:

tags - the tags value to set.

Returns:

the AgentPoolPatchParameters object itself.

withUpgradeSettings

public AgentPoolPatchParameters withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettings)

Set the upgradeSettings property: The configuration of the agent pool.

Parameters:

upgradeSettings - the upgradeSettings value to set.

Returns:

the AgentPoolPatchParameters object itself.

Applies to