Package com.oracle.bmc.mysql.model
Class BackupValidationDetails
- java.lang.Object
-
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
- com.oracle.bmc.mysql.model.BackupValidationDetails
-
@Generated(value="OracleSDKGenerator", comments="API Version: 20190415") public final class BackupValidationDetails extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Backup validation details.
Note: Objects should always be created or deserialized using theBackupValidationDetails.Builder
. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theBackupValidationDetails.Builder
, which maintain a set of all explicitly set fields calledBackupValidationDetails.Builder.__explicitlySet__
. ThehashCode()
andequals(Object)
methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BackupValidationDetails.BackupPreparationStatus
Indicates whether the backup has been prepared successfully.static class
BackupValidationDetails.Builder
static class
BackupValidationDetails.ValidationStatus
The status of backup validation: NOT_VALIDATED (Default): The backup has not been validated.
-
Constructor Summary
Constructors Constructor Description BackupValidationDetails(BackupValidationDetails.ValidationStatus validationStatus, Date timeLastValidated, String estimatedRestoreDuration, String errorMessage, BackupValidationDetails.BackupPreparationStatus backupPreparationStatus, PreparedBackupDetails preparedBackupDetails)
Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BackupValidationDetails.Builder
builder()
Create a new builder.boolean
equals(Object o)
BackupValidationDetails.BackupPreparationStatus
getBackupPreparationStatus()
Indicates whether the backup has been prepared successfully.String
getErrorMessage()
Error message if the backup validation has failed.String
getEstimatedRestoreDuration()
The estimated restore duration of the backup.PreparedBackupDetails
getPreparedBackupDetails()
Date
getTimeLastValidated()
The date and time of the most recent validation performed on the backup.BackupValidationDetails.ValidationStatus
getValidationStatus()
The status of backup validation: NOT_VALIDATED (Default): The backup has not been validated.int
hashCode()
BackupValidationDetails.Builder
toBuilder()
String
toString()
String
toString(boolean includeByteArrayContents)
Return a string representation of the object.
-
-
-
Constructor Detail
-
BackupValidationDetails
@Deprecated @ConstructorProperties({"validationStatus","timeLastValidated","estimatedRestoreDuration","errorMessage","backupPreparationStatus","preparedBackupDetails"}) public BackupValidationDetails(BackupValidationDetails.ValidationStatus validationStatus, Date timeLastValidated, String estimatedRestoreDuration, String errorMessage, BackupValidationDetails.BackupPreparationStatus backupPreparationStatus, PreparedBackupDetails preparedBackupDetails)
Deprecated.
-
-
Method Detail
-
builder
public static BackupValidationDetails.Builder builder()
Create a new builder.
-
toBuilder
public BackupValidationDetails.Builder toBuilder()
-
getValidationStatus
public BackupValidationDetails.ValidationStatus getValidationStatus()
The status of backup validation: NOT_VALIDATED (Default): The backup has not been validated.VALIDATED: The backup has been validated successfully. NEEDS_ATTENTION: The backup validation failed due to a transient issue. Validation should be retried. FAILED: The backup cannot be restored.
- Returns:
- the value
-
getTimeLastValidated
public Date getTimeLastValidated()
The date and time of the most recent validation performed on the backup.- Returns:
- the value
-
getEstimatedRestoreDuration
public String getEstimatedRestoreDuration()
The estimated restore duration of the backup.- Returns:
- the value
-
getErrorMessage
public String getErrorMessage()
Error message if the backup validation has failed.- Returns:
- the value
-
getBackupPreparationStatus
public BackupValidationDetails.BackupPreparationStatus getBackupPreparationStatus()
Indicates whether the backup has been prepared successfully.PREPARED: The backup is prepared one. NOT_PREPARED: The backup is not prepared.
- Returns:
- the value
-
getPreparedBackupDetails
public PreparedBackupDetails getPreparedBackupDetails()
-
toString
public String toString()
- Overrides:
toString
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
toString
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.- Parameters:
includeByteArrayContents
- true to include the full contents of byte arrays- Returns:
- string representation
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classcom.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
-
-