Class ManagedClusterStorageProfileSnapshotController

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

public final class ManagedClusterStorageProfileSnapshotController extends Object implements com.azure.json.JsonSerializable<ManagedClusterStorageProfileSnapshotController>
Snapshot Controller settings for the storage profile.
  • Constructor Details

    • ManagedClusterStorageProfileSnapshotController

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

    • enabled

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

      Set the enabled property: Whether to enable Snapshot Controller. The default value is true.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the ManagedClusterStorageProfileSnapshotController 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<ManagedClusterStorageProfileSnapshotController>
      Throws:
      IOException
    • fromJson

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