Class ProtectionStatusDetails
- java.lang.Object
-
- com.azure.resourcemanager.dataprotection.models.ProtectionStatusDetails
-
public final class ProtectionStatusDetails extends Object
ProtectionStatusDetails Protection status details.
-
-
Constructor Summary
Constructors Constructor Description ProtectionStatusDetails()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UserFacingError
errorDetails()
Get the errorDetails property: Specifies the protection status error of the resource.Status
status()
Get the status property: Specifies the protection status of the resource.void
validate()
Validates the instance.ProtectionStatusDetails
withErrorDetails(UserFacingError errorDetails)
Set the errorDetails property: Specifies the protection status error of the resource.ProtectionStatusDetails
withStatus(Status status)
Set the status property: Specifies the protection status of the resource.
-
-
-
Method Detail
-
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.
-
-