Class RestorePointInner

java.lang.Object
com.azure.core.management.ProxyResource
com.azure.resourcemanager.compute.fluent.models.RestorePointInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>

public final class RestorePointInner extends com.azure.core.management.ProxyResource
Restore Point details.
  • Constructor Details

    • RestorePointInner

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

    • systemData

      public com.azure.core.management.SystemData systemData()
      Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.
      Returns:
      the systemData value.
    • type

      public String type()
      Get the type property: The type of the resource.
      Overrides:
      type in class com.azure.core.management.ProxyResource
      Returns:
      the type value.
    • name

      public String name()
      Get the name property: The name of the resource.
      Overrides:
      name in class com.azure.core.management.ProxyResource
      Returns:
      the name value.
    • id

      public String id()
      Get the id property: Fully qualified resource Id for the resource.
      Overrides:
      id in class com.azure.core.management.ProxyResource
      Returns:
      the id value.
    • excludeDisks

      public List<ApiEntityReference> excludeDisks()
      Get the excludeDisks property: List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.
      Returns:
      the excludeDisks value.
    • withExcludeDisks

      public RestorePointInner withExcludeDisks(List<ApiEntityReference> excludeDisks)
      Set the excludeDisks property: List of disk resource ids that the customer wishes to exclude from the restore point. If no disks are specified, all disks will be included.
      Parameters:
      excludeDisks - the excludeDisks value to set.
      Returns:
      the RestorePointInner object itself.
    • sourceMetadata

      public RestorePointSourceMetadata sourceMetadata()
      Get the sourceMetadata property: Gets the details of the VM captured at the time of the restore point creation.
      Returns:
      the sourceMetadata value.
    • withSourceMetadata

      public RestorePointInner withSourceMetadata(RestorePointSourceMetadata sourceMetadata)
      Set the sourceMetadata property: Gets the details of the VM captured at the time of the restore point creation.
      Parameters:
      sourceMetadata - the sourceMetadata value to set.
      Returns:
      the RestorePointInner object itself.
    • provisioningState

      public String provisioningState()
      Get the provisioningState property: Gets the provisioning state of the restore point.
      Returns:
      the provisioningState value.
    • consistencyMode

      public ConsistencyModeTypes consistencyMode()
      Get the consistencyMode property: ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details.
      Returns:
      the consistencyMode value.
    • withConsistencyMode

      public RestorePointInner withConsistencyMode(ConsistencyModeTypes consistencyMode)
      Set the consistencyMode property: ConsistencyMode of the RestorePoint. Can be specified in the input while creating a restore point. For now, only CrashConsistent is accepted as a valid input. Please refer to https://aka.ms/RestorePoints for more details.
      Parameters:
      consistencyMode - the consistencyMode value to set.
      Returns:
      the RestorePointInner object itself.
    • timeCreated

      public OffsetDateTime timeCreated()
      Get the timeCreated property: Gets the creation time of the restore point.
      Returns:
      the timeCreated value.
    • withTimeCreated

      public RestorePointInner withTimeCreated(OffsetDateTime timeCreated)
      Set the timeCreated property: Gets the creation time of the restore point.
      Parameters:
      timeCreated - the timeCreated value to set.
      Returns:
      the RestorePointInner object itself.
    • sourceRestorePoint

      public ApiEntityReference sourceRestorePoint()
      Get the sourceRestorePoint property: Resource Id of the source restore point from which a copy needs to be created.
      Returns:
      the sourceRestorePoint value.
    • withSourceRestorePoint

      public RestorePointInner withSourceRestorePoint(ApiEntityReference sourceRestorePoint)
      Set the sourceRestorePoint property: Resource Id of the source restore point from which a copy needs to be created.
      Parameters:
      sourceRestorePoint - the sourceRestorePoint value to set.
      Returns:
      the RestorePointInner object itself.
    • instanceView

      public RestorePointInstanceView instanceView()
      Get the instanceView property: The restore point instance view.
      Returns:
      the instanceView value.
    • instantAccessDurationMinutes

      public Integer instantAccessDurationMinutes()
      Get the instantAccessDurationMinutes property: This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.
      Returns:
      the instantAccessDurationMinutes value.
    • withInstantAccessDurationMinutes

      public RestorePointInner withInstantAccessDurationMinutes(Integer instantAccessDurationMinutes)
      Set the instantAccessDurationMinutes property: This property determines the time in minutes the snapshot is retained as instant access for restoring Premium SSD v2 or Ultra disk with fast restore performance in this restore point.
      Parameters:
      instantAccessDurationMinutes - the instantAccessDurationMinutes value to set.
      Returns:
      the RestorePointInner 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<com.azure.core.management.ProxyResource>
      Overrides:
      toJson in class com.azure.core.management.ProxyResource
      Throws:
      IOException
    • fromJson

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