Class ProtectionStatusDetails

java.lang.Object
com.azure.resourcemanager.dataprotection.models.ProtectionStatusDetails

public final class ProtectionStatusDetails extends Object
ProtectionStatusDetails

Protection status details.

  • Constructor Details

    • ProtectionStatusDetails

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

    • errorDetails

      public UserFacingError errorDetails()
      Get the errorDetails property: Specifies the protection status error of the resource.
      Returns:
      the errorDetails value.
    • withErrorDetails

      public ProtectionStatusDetails withErrorDetails(UserFacingError errorDetails)
      Set the errorDetails property: Specifies the protection status error of the resource.
      Parameters:
      errorDetails - the errorDetails value to set.
      Returns:
      the ProtectionStatusDetails object itself.
    • status

      public Status status()
      Get the status property: Specifies the protection status of the resource.
      Returns:
      the status value.
    • withStatus

      public ProtectionStatusDetails withStatus(Status status)
      Set the status property: Specifies the protection status of the resource.
      Parameters:
      status - the status value to set.
      Returns:
      the ProtectionStatusDetails object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.