Class ManagedClusterStorageProfileDiskCsiDriver

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

public final class ManagedClusterStorageProfileDiskCsiDriver extends Object implements com.azure.json.JsonSerializable<ManagedClusterStorageProfileDiskCsiDriver>
AzureDisk CSI Driver settings for the storage profile.
  • Constructor Details

    • ManagedClusterStorageProfileDiskCsiDriver

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

    • enabled

      public Boolean enabled()
      Get the enabled property: Whether to enable AzureDisk CSI Driver. The default value is true.
      Returns:
      the enabled value.
    • withEnabled

      public ManagedClusterStorageProfileDiskCsiDriver withEnabled(Boolean enabled)
      Set the enabled property: Whether to enable AzureDisk CSI Driver. The default value is true.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the ManagedClusterStorageProfileDiskCsiDriver 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<ManagedClusterStorageProfileDiskCsiDriver>
      Throws:
      IOException
    • fromJson

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