public static final class DetailsTypes.Info.Builder
extends java.lang.Object
DetailsTypes.Info
.Constructor and Description |
---|
Builder(java.net.URI location,
java.lang.String locationUser,
DetailsTypes.Type type,
java.util.List<LocalizableMessage> messages,
LocalizableMessage description,
java.lang.String service,
java.lang.String operation,
Status status,
boolean cancelable)
Constructor with parameters for the required properties of
DetailsTypes.Info . |
Modifier and Type | Method and Description |
---|---|
DetailsTypes.Info |
build() |
DetailsTypes.Info.Builder |
setBuild(DetailsTypes.BuildInfo build)
Information about the build of the appliance.
|
DetailsTypes.Info.Builder |
setDuration(java.lang.Long duration)
Time in seconds since the backup job was started or the time it took to complete
the backup job.
|
DetailsTypes.Info.Builder |
setEndTime(java.util.Calendar endTime)
Time when the operation is completed.
|
DetailsTypes.Info.Builder |
setError(ApiError error)
Description of the error if the operation status is "FAILED".
|
DetailsTypes.Info.Builder |
setParent(java.lang.String parent)
Parent of the current task.
|
DetailsTypes.Info.Builder |
setProgress(Progress progress)
Progress of the job.
|
DetailsTypes.Info.Builder |
setSize(java.lang.Long size)
Size of the backup data transferred to remote location.
|
DetailsTypes.Info.Builder |
setStartTime(java.util.Calendar startTime)
Time when the operation is started.
|
DetailsTypes.Info.Builder |
setTarget(DynamicID target)
Identifier of the target created by the operation or an existing one the
operation performed on.
|
DetailsTypes.Info.Builder |
setUser(java.lang.String user)
Name of the user who performed the operation.
|
public Builder(java.net.URI location, java.lang.String locationUser, DetailsTypes.Type type, java.util.List<LocalizableMessage> messages, LocalizableMessage description, java.lang.String service, java.lang.String operation, Status status, boolean cancelable)
DetailsTypes.Info
.public DetailsTypes.Info.Builder setDuration(java.lang.Long duration)
#status
is one of Status.SUCCEEDED
, Status.FAILED
, or Status.RUNNING
.duration
- New value for the property.public DetailsTypes.Info.Builder setSize(java.lang.Long size)
#status
is one of Status.SUCCEEDED
, Status.FAILED
, or Status.RUNNING
.size
- New value for the property.public DetailsTypes.Info.Builder setProgress(Progress progress)
#status
is one of Status.SUCCEEDED
, Status.FAILED
, or Status.RUNNING
.progress
- New value for the property.public DetailsTypes.Info.Builder setBuild(DetailsTypes.BuildInfo build)
build
- New value for the property.public DetailsTypes.Info.Builder setParent(java.lang.String parent)
null
if the task has no parent.parent
- New value for the property.
When clients pass a value of this class as a parameter, the property must be an
identifier for the resource type: com.vmware.cis.task
. When methods
return a value of this class as a return value, the property will be an
identifier for the resource type: com.vmware.cis.task
.public DetailsTypes.Info.Builder setTarget(DynamicID target)
null
if the operation has no target or multiple
targets.target
- New value for the property.public DetailsTypes.Info.Builder setError(ApiError error)
null
the description of why the operation failed will be included in
the result of the operation (see Info.getResult()
).error
- New value for the property.public DetailsTypes.Info.Builder setStartTime(java.util.Calendar startTime)
getStatus()
is one of Status.RUNNING
, Status.BLOCKED
, Status.SUCCEEDED
, or Status.FAILED
.startTime
- New value for the property.public DetailsTypes.Info.Builder setEndTime(java.util.Calendar endTime)
getStatus()
is one of Status.SUCCEEDED
or Status.FAILED
.endTime
- New value for the property.public DetailsTypes.Info.Builder setUser(java.lang.String user)
null
if the operation is performed by the system.user
- New value for the property.public DetailsTypes.Info build()