Class ManagedClusterUpgradeProfileInner
- java.lang.Object
-
- com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterUpgradeProfileInner
-
public final class ManagedClusterUpgradeProfileInner extends Object
The list of available upgrades for compute pools.
-
-
Constructor Summary
Constructors Constructor Description ManagedClusterUpgradeProfileInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<ManagedClusterPoolUpgradeProfile>agentPoolProfiles()Get the agentPoolProfiles property: The list of available upgrade versions for agent pools.ManagedClusterPoolUpgradeProfilecontrolPlaneProfile()Get the controlPlaneProfile property: The list of available upgrade versions for the control plane.Stringid()Get the id property: The ID of the upgrade profile.Stringname()Get the name property: The name of the upgrade profile.Stringtype()Get the type property: The type of the upgrade profile.voidvalidate()Validates the instance.ManagedClusterUpgradeProfileInnerwithAgentPoolProfiles(List<ManagedClusterPoolUpgradeProfile> agentPoolProfiles)Set the agentPoolProfiles property: The list of available upgrade versions for agent pools.ManagedClusterUpgradeProfileInnerwithControlPlaneProfile(ManagedClusterPoolUpgradeProfile controlPlaneProfile)Set the controlPlaneProfile property: The list of available upgrade versions for the control plane.
-
-
-
Method Detail
-
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.
-
type
public String type()
Get the type property: The type of the upgrade profile.- Returns:
- the type value.
-
controlPlaneProfile
public ManagedClusterPoolUpgradeProfile controlPlaneProfile()
Get the controlPlaneProfile property: The list of available upgrade versions for the control plane.- Returns:
- the controlPlaneProfile value.
-
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.
-
agentPoolProfiles
public List<ManagedClusterPoolUpgradeProfile> agentPoolProfiles()
Get the agentPoolProfiles property: The list of available upgrade versions for agent pools.- Returns:
- the agentPoolProfiles value.
-
withAgentPoolProfiles
public ManagedClusterUpgradeProfileInner withAgentPoolProfiles(List<ManagedClusterPoolUpgradeProfile> 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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-