ManagedClusterAddonProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ManagedClusterAddonProfile

Implements

public final class ManagedClusterAddonProfile
implements JsonSerializable<ManagedClusterAddonProfile>

A Kubernetes add-on profile for a managed cluster.

Constructor Summary

Constructor Description
ManagedClusterAddonProfile()

Creates an instance of ManagedClusterAddonProfile class.

Method Summary

Modifier and Type Method and Description
Map<String,String> config()

Get the config property: Key-value pairs for configuring an add-on.

boolean enabled()

Get the enabled property: Whether the add-on is enabled or not.

static ManagedClusterAddonProfile fromJson(JsonReader jsonReader)

Reads an instance of ManagedClusterAddonProfile from the JsonReader.

ManagedClusterAddonProfileIdentity identity()

Get the identity property: Information of user assigned identity used by this add-on.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ManagedClusterAddonProfile withConfig(Map<String,String> config)

Set the config property: Key-value pairs for configuring an add-on.

ManagedClusterAddonProfile withEnabled(boolean enabled)

Set the enabled property: Whether the add-on is enabled or not.

Methods inherited from java.lang.Object

Constructor Details

ManagedClusterAddonProfile

public ManagedClusterAddonProfile()

Creates an instance of ManagedClusterAddonProfile class.

Method Details

config

public Map config()

Get the config property: Key-value pairs for configuring an add-on.

Returns:

the config value.

enabled

public boolean enabled()

Get the enabled property: Whether the add-on is enabled or not.

Returns:

the enabled value.

fromJson

public static ManagedClusterAddonProfile fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

identity

public ManagedClusterAddonProfileIdentity identity()

Get the identity property: Information of user assigned identity used by this add-on.

Returns:

the identity value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withConfig

public ManagedClusterAddonProfile withConfig(Map config)

Set the config property: Key-value pairs for configuring an add-on.

Parameters:

config - the config value to set.

Returns:

the ManagedClusterAddonProfile object itself.

withEnabled

public ManagedClusterAddonProfile withEnabled(boolean enabled)

Set the enabled property: Whether the add-on is enabled or not.

Parameters:

enabled - the enabled value to set.

Returns:

the ManagedClusterAddonProfile object itself.

Applies to