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

public final class SnapshotProperties extends Object implements com.azure.json.JsonSerializable<SnapshotProperties>
Properties used to configure a node pool snapshot.
  • Constructor Details

    • SnapshotProperties

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

    • creationData

      public CreationData creationData()
      Get the creationData property: CreationData to be used to specify the source agent pool resource ID to create this snapshot.
      Returns:
      the creationData value.
    • withCreationData

      public SnapshotProperties withCreationData(CreationData creationData)
      Set the creationData property: CreationData to be used to specify the source agent pool resource ID to create this snapshot.
      Parameters:
      creationData - the creationData value to set.
      Returns:
      the SnapshotProperties object itself.
    • snapshotType

      public SnapshotType snapshotType()
      Get the snapshotType property: The type of a snapshot. The default is NodePool.
      Returns:
      the snapshotType value.
    • withSnapshotType

      public SnapshotProperties withSnapshotType(SnapshotType snapshotType)
      Set the snapshotType property: The type of a snapshot. The default is NodePool.
      Parameters:
      snapshotType - the snapshotType value to set.
      Returns:
      the SnapshotProperties object itself.
    • kubernetesVersion

      public String kubernetesVersion()
      Get the kubernetesVersion property: The version of Kubernetes.
      Returns:
      the kubernetesVersion value.
    • nodeImageVersion

      public String nodeImageVersion()
      Get the nodeImageVersion property: The version of node image.
      Returns:
      the nodeImageVersion value.
    • osType

      public OSType osType()
      Get the osType property: OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux.
      Returns:
      the osType value.
    • osSku

      public OSSku osSku()
      Get the osSku property: Specifies the OS SKU used by the agent pool. The default is Ubuntu if OSType is Linux. The default is Windows2019 when Kubernetes <= 1.24 or Windows2022 when Kubernetes >= 1.25 if OSType is Windows.
      Returns:
      the osSku value.
    • vmSize

      public String vmSize()
      Get the vmSize property: The size of the VM.
      Returns:
      the vmSize value.
    • enableFips

      public Boolean enableFips()
      Get the enableFips property: Whether to use a FIPS-enabled OS.
      Returns:
      the enableFips value.
    • 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<SnapshotProperties>
      Throws:
      IOException
    • fromJson

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