Package com.vmware.nsx_policy.model
Class ClusterRestoreStatus.Builder
- java.lang.Object
-
- com.vmware.nsx_policy.model.ClusterRestoreStatus.Builder
-
- Enclosing class:
- ClusterRestoreStatus
public static final class ClusterRestoreStatus.Builder extends java.lang.Object
Builder class forClusterRestoreStatus
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Constructor with parameters for the required properties ofClusterRestoreStatus
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterRestoreStatus
build()
ClusterRestoreStatus.Builder
setAllowedActions(java.util.List<java.lang.String> allowedActions)
List of actions that are allowed.ClusterRestoreStatus.Builder
setBackupTimestamp(java.lang.Long backupTimestamp)
Timestamp when backup was initiated in epoch millisecond format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.ClusterRestoreStatus.Builder
setEndpoints(java.util.List<ResourceLink> endpoints)
The list of allowed endpoints, based on the current state of the restore process This property may be present in responses from the server, but if it is present in a request to server it will be ignored.ClusterRestoreStatus.Builder
setId(java.lang.String id)
Unique id for backup request This property may be present in responses from the server, but if it is present in a request to server it will be ignored.ClusterRestoreStatus.Builder
setInstructions(java.util.List<InstructionInfo> instructions)
Instructions for users to reconcile Restore operations This property may be present in responses from the server, but if it is present in a request to server it will be ignored.ClusterRestoreStatus.Builder
setNotAllowedActions(java.util.List<java.lang.String> notAllowedActions)
Possible values are:ClusterRestoreStatus.NOT_ALLOWED_ACTIONS_UPDATES
List of actions that are not allowed This property may be present in responses from the server, but if it is present in a request to server it will be ignored.ClusterRestoreStatus.Builder
setRestoreEndTime(java.lang.Long restoreEndTime)
Timestamp when restore was completed in epoch millisecond format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.ClusterRestoreStatus.Builder
setRestoreStartTime(java.lang.Long restoreStartTime)
Timestamp when restore was started in epoch millisecond format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.ClusterRestoreStatus.Builder
setStatus(GlobalRestoreStatus status)
ClusterRestoreStatus.Builder
setStep(RestoreStep step)
ClusterRestoreStatus.Builder
setTotalSteps(java.lang.Long totalSteps)
Total number of steps in the entire restore process format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.
-
-
-
Constructor Detail
-
Builder
public Builder()
Constructor with parameters for the required properties ofClusterRestoreStatus
.
-
-
Method Detail
-
setAllowedActions
public ClusterRestoreStatus.Builder setAllowedActions(java.util.List<java.lang.String> allowedActions)
List of actions that are allowed. This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
allowedActions
- New value for the property.
-
setBackupTimestamp
public ClusterRestoreStatus.Builder setBackupTimestamp(java.lang.Long backupTimestamp)
Timestamp when backup was initiated in epoch millisecond format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
backupTimestamp
- New value for the property.
-
setEndpoints
public ClusterRestoreStatus.Builder setEndpoints(java.util.List<ResourceLink> endpoints)
The list of allowed endpoints, based on the current state of the restore process This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
endpoints
- New value for the property.
-
setId
public ClusterRestoreStatus.Builder setId(java.lang.String id)
Unique id for backup request This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
id
- New value for the property.
-
setInstructions
public ClusterRestoreStatus.Builder setInstructions(java.util.List<InstructionInfo> instructions)
Instructions for users to reconcile Restore operations This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
instructions
- New value for the property.
-
setNotAllowedActions
public ClusterRestoreStatus.Builder setNotAllowedActions(java.util.List<java.lang.String> notAllowedActions)
Possible values are: List of actions that are not allowed This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
notAllowedActions
- New value for the property.
-
setRestoreEndTime
public ClusterRestoreStatus.Builder setRestoreEndTime(java.lang.Long restoreEndTime)
Timestamp when restore was completed in epoch millisecond format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
restoreEndTime
- New value for the property.
-
setRestoreStartTime
public ClusterRestoreStatus.Builder setRestoreStartTime(java.lang.Long restoreStartTime)
Timestamp when restore was started in epoch millisecond format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
restoreStartTime
- New value for the property.
-
setStatus
public ClusterRestoreStatus.Builder setStatus(GlobalRestoreStatus status)
- Parameters:
status
- New value for the property.
-
setStep
public ClusterRestoreStatus.Builder setStep(RestoreStep step)
- Parameters:
step
- New value for the property.
-
setTotalSteps
public ClusterRestoreStatus.Builder setTotalSteps(java.lang.Long totalSteps)
Total number of steps in the entire restore process format: int64 This property may be present in responses from the server, but if it is present in a request to server it will be ignored.- Parameters:
totalSteps
- New value for the property.
-
build
public ClusterRestoreStatus build()
-
-