ManagedClusterUpgradeProfileInner Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterUpgradeProfileInner

Implements

public final class ManagedClusterUpgradeProfileInner
implements JsonSerializable<ManagedClusterUpgradeProfileInner>

The list of available upgrades for compute pools.

Constructor Summary

Constructor Description
ManagedClusterUpgradeProfileInner()

Creates an instance of ManagedClusterUpgradeProfileInner class.

Method Summary

Modifier and Type Method and Description
List<ManagedClusterPoolUpgradeProfile> agentPoolProfiles()

Get the agentPoolProfiles property: The list of available upgrade versions for agent pools.

ManagedClusterPoolUpgradeProfile controlPlaneProfile()

Get the controlPlaneProfile property: The list of available upgrade versions for the control plane.

static ManagedClusterUpgradeProfileInner fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterUpgradeProfileInner from the JsonReader.

String id()

Get the id property: The ID of the upgrade profile.

String name()

Get the name property: The name of the upgrade profile.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the upgrade profile.

void validate()

Validates the instance.

ManagedClusterUpgradeProfileInner withAgentPoolProfiles(List<ManagedClusterPoolUpgradeProfile> agentPoolProfiles)

Set the agentPoolProfiles property: The list of available upgrade versions for agent pools.

ManagedClusterUpgradeProfileInner withControlPlaneProfile(ManagedClusterPoolUpgradeProfile controlPlaneProfile)

Set the controlPlaneProfile property: The list of available upgrade versions for the control plane.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterUpgradeProfileInner

public ManagedClusterUpgradeProfileInner()

Creates an instance of ManagedClusterUpgradeProfileInner class.

Method Details

agentPoolProfiles

public List agentPoolProfiles()

Get the agentPoolProfiles property: The list of available upgrade versions for agent pools.

Returns:

the agentPoolProfiles value.

controlPlaneProfile

public ManagedClusterPoolUpgradeProfile controlPlaneProfile()

Get the controlPlaneProfile property: The list of available upgrade versions for the control plane.

Returns:

the controlPlaneProfile value.

fromJson

public static ManagedClusterUpgradeProfileInner fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterUpgradeProfileInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The ID of the upgrade profile.

Returns:

the id value.

name

public String name()

Get the name property: The name of the upgrade profile.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the upgrade profile.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAgentPoolProfiles

public ManagedClusterUpgradeProfileInner withAgentPoolProfiles(List agentPoolProfiles)

Set the agentPoolProfiles property: The list of available upgrade versions for agent pools.

Parameters:

agentPoolProfiles - the agentPoolProfiles value to set.

Returns:

the ManagedClusterUpgradeProfileInner object itself.

withControlPlaneProfile

public ManagedClusterUpgradeProfileInner withControlPlaneProfile(ManagedClusterPoolUpgradeProfile controlPlaneProfile)

Set the controlPlaneProfile property: The list of available upgrade versions for the control plane.

Parameters:

controlPlaneProfile - the controlPlaneProfile value to set.

Returns:

the ManagedClusterUpgradeProfileInner object itself.

Applies to