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 Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterHostedSystemProfile class. -
Method Summary
Modifier and TypeMethodDescriptionenabled()Get the enabled property: Whether to enable hosted system addons for the cluster.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterHostedSystemProfile from the JsonReader.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.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.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnabled(Boolean enabled) Set the enabled property: Whether to enable hosted system addons for the cluster.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.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.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ManagedClusterHostedSystemProfile
public ManagedClusterHostedSystemProfile()Creates an instance of ManagedClusterHostedSystemProfile class.
-
-
Method Details
-
enabled
Get the enabled property: Whether to enable hosted system addons for the cluster.- Returns:
- the enabled value.
-
withEnabled
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
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
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
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
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
- Specified by:
toJsonin interfacecom.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.
-