Class ManagedClusterAddonProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterAddonProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ManagedClusterAddonProfile>
public final class ManagedClusterAddonProfile
extends Object
implements com.azure.json.JsonSerializable<ManagedClusterAddonProfile>
A Kubernetes add-on profile for a managed cluster.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterAddonProfile class. -
Method Summary
Modifier and TypeMethodDescriptionconfig()Get the config property: Key-value pairs for configuring an add-on.booleanenabled()Get the enabled property: Whether the add-on is enabled or not.static ManagedClusterAddonProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ManagedClusterAddonProfile from the JsonReader.identity()Get the identity property: Information of user assigned identity used by this add-on.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withConfig(Map<String, String> config) Set the config property: Key-value pairs for configuring an add-on.withEnabled(boolean enabled) Set the enabled property: Whether the add-on is enabled or not.Methods inherited from class java.lang.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
-
ManagedClusterAddonProfile
public ManagedClusterAddonProfile()Creates an instance of ManagedClusterAddonProfile class.
-
-
Method Details
-
enabled
public boolean enabled()Get the enabled property: Whether the add-on is enabled or not.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Whether the add-on is enabled or not.- Parameters:
enabled- the enabled value to set.- Returns:
- the ManagedClusterAddonProfile object itself.
-
config
Get the config property: Key-value pairs for configuring an add-on.- Returns:
- the config value.
-
withConfig
Set the config property: Key-value pairs for configuring an add-on.- Parameters:
config- the config value to set.- Returns:
- the ManagedClusterAddonProfile object itself.
-
identity
Get the identity property: Information of user assigned identity used by this add-on.- Returns:
- the identity value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ManagedClusterAddonProfile>- Throws:
IOException
-
fromJson
public static ManagedClusterAddonProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ManagedClusterAddonProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ManagedClusterAddonProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ManagedClusterAddonProfile.
-