Class ManagedClusterHostedSystemProfile

java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterHostedSystemProfile
All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterHostedSystemProfile>

public final class ManagedClusterHostedSystemProfile extends Object implements com.azure.json.JsonSerializable<ManagedClusterHostedSystemProfile>
Settings for hosted system addons.
  • Constructor Details

    • ManagedClusterHostedSystemProfile

      public ManagedClusterHostedSystemProfile()
      Creates an instance of ManagedClusterHostedSystemProfile class.
  • Method Details

    • enabled

      public Boolean enabled()
      Get the enabled property: Whether to enable hosted system addons for the cluster.
      Returns:
      the enabled value.
    • withEnabled

      public ManagedClusterHostedSystemProfile withEnabled(Boolean enabled)
      Set the enabled property: Whether to enable hosted system addons for the cluster.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the ManagedClusterHostedSystemProfile object itself.
    • systemNodeSubnetID

      public String systemNodeSubnetID()
      Get the systemNodeSubnetID property: The ID of the subnet that will be joined by system nodes managed and hosted by AKS for running critical system addons. This ID must be provided together with `nodeSubnetID` and `apiserverAccessProfile.subnetId`, and all three subnet IDs must belong to the same VNet. If you don’t specify it, AKS will create a subnet in the managed resource group using a default /26 CIDR.
      Returns:
      the systemNodeSubnetID value.
    • withSystemNodeSubnetID

      public ManagedClusterHostedSystemProfile withSystemNodeSubnetID(String systemNodeSubnetID)
      Set the systemNodeSubnetID property: The ID of the subnet that will be joined by system nodes managed and hosted by AKS for running critical system addons. This ID must be provided together with `nodeSubnetID` and `apiserverAccessProfile.subnetId`, and all three subnet IDs must belong to the same VNet. If you don’t specify it, AKS will create a subnet in the managed resource group using a default /26 CIDR.
      Parameters:
      systemNodeSubnetID - the systemNodeSubnetID value to set.
      Returns:
      the ManagedClusterHostedSystemProfile object itself.
    • nodeSubnetID

      public String nodeSubnetID()
      Get the nodeSubnetID property: The ID of the subnet that will be joined by worker nodes managed by node auto provisioner for running workload pods in your tenant. This must be provided together with `systemNodeSubnetID` and `apiserverAccessProfile.subnetId`, and all three subnet IDs must be in the same VNet. If you don’t specify it, AKS will create a subnet in the managed resource group using a default /16 CIDR.
      Returns:
      the nodeSubnetID value.
    • withNodeSubnetID

      public ManagedClusterHostedSystemProfile withNodeSubnetID(String nodeSubnetID)
      Set the nodeSubnetID property: The ID of the subnet that will be joined by worker nodes managed by node auto provisioner for running workload pods in your tenant. This must be provided together with `systemNodeSubnetID` and `apiserverAccessProfile.subnetId`, and all three subnet IDs must be in the same VNet. If you don’t specify it, AKS will create a subnet in the managed resource group using a default /16 CIDR.
      Parameters:
      nodeSubnetID - the nodeSubnetID value to set.
      Returns:
      the ManagedClusterHostedSystemProfile object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ManagedClusterHostedSystemProfile>
      Throws:
      IOException
    • fromJson

      public static ManagedClusterHostedSystemProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ManagedClusterHostedSystemProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ManagedClusterHostedSystemProfile 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 ManagedClusterHostedSystemProfile.