Package com.vmware.nsx_policy.model
Class BackupOperationStatus.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.BackupOperationStatus.Builder
-
- Enclosing class:
- BackupOperationStatus
public static final class BackupOperationStatus.Builder extends java.lang.Object
Builder class forBackupOperationStatus
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofBackupOperationStatus
.
-
Method Summary
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofBackupOperationStatus
.
-
-
Method Detail
-
setBackupId
public BackupOperationStatus.Builder setBackupId(java.lang.String backupId)
Unique identifier of a backup- Parameters:
backupId
- New value for the property.
-
setEndTime
public BackupOperationStatus.Builder setEndTime(java.lang.Long endTime)
Time when operation was ended format: int64- Parameters:
endTime
- New value for the property.
-
setErrorCode
public BackupOperationStatus.Builder setErrorCode(java.lang.String errorCode)
Possible values are:-
BackupOperationStatus.ERROR_CODE_BACKUP_NOT_RUN_ON_MASTER
-
BackupOperationStatus.ERROR_CODE_BACKUP_SERVER_UNREACHABLE
-
BackupOperationStatus.ERROR_CODE_BACKUP_AUTHENTICATION_FAILURE
-
BackupOperationStatus.ERROR_CODE_BACKUP_PERMISSION_ERROR
-
BackupOperationStatus.ERROR_CODE_BACKUP_TIMEOUT
-
BackupOperationStatus.ERROR_CODE_BACKUP_BAD_FINGERPRINT
-
BackupOperationStatus.ERROR_CODE_BACKUP_GENERIC_ERROR
-
BackupOperationStatus.ERROR_CODE_UPGRADE_IN_PROGRESS
- Parameters:
errorCode
- New value for the property.
-
-
setErrorMessage
public BackupOperationStatus.Builder setErrorMessage(java.lang.String errorMessage)
Error code details- Parameters:
errorMessage
- New value for the property.
-
setStartTime
public BackupOperationStatus.Builder setStartTime(java.lang.Long startTime)
Time when operation was started format: int64- Parameters:
startTime
- New value for the property.
-
setSuccess
public BackupOperationStatus.Builder setSuccess(java.lang.Boolean success)
True if backup is successfully completed, else false- Parameters:
success
- New value for the property.
-
build
public BackupOperationStatus build()
-
-