public static final class UpdateSessionModel.Builder
extends java.lang.Object
UpdateSessionModel
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
UpdateSessionModel . |
Modifier and Type | Method and Description |
---|---|
UpdateSessionModel |
build() |
UpdateSessionModel.Builder |
setClientProgress(java.lang.Long clientProgress)
The progress that has been made with the upload.
|
UpdateSessionModel.Builder |
setErrorMessage(LocalizableMessage errorMessage)
If the session is in the
UpdateSessionModel.State.ERROR status this
property will have more details about the error. |
UpdateSessionModel.Builder |
setExpirationTime(java.util.Calendar expirationTime)
Indicates the time after which the session will expire.
|
UpdateSessionModel.Builder |
setId(java.lang.String id)
The identifier of this update session.
|
UpdateSessionModel.Builder |
setLibraryItemContentVersion(java.lang.String libraryItemContentVersion)
The content version of the library item whose content is being modified.
|
UpdateSessionModel.Builder |
setLibraryItemId(java.lang.String libraryItemId)
The identifier of the library item to which content will be uploaded or removed.
|
UpdateSessionModel.Builder |
setPreviewInfo(PreviewInfo previewInfo)
A preview of the files currently being uploaded in the session.
|
UpdateSessionModel.Builder |
setState(UpdateSessionModel.State state)
The current state (ACTIVE, DONE, ERROR, CANCELED) of the update session.
|
UpdateSessionModel.Builder |
setWarningBehavior(java.util.List<WarningBehavior> warningBehavior)
Indicates the update session behavior if warnings are raised in the session
preview.
|
public Builder()
UpdateSessionModel
.public UpdateSessionModel.Builder setId(java.lang.String id)
create
method. It will not be present
in the return value of the get
or list
methods. It is not used
for the update
method.id
- 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.content.library.item.UpdateSession
. When methods return a value of
this class as a return value, the property will be an identifier for the
resource type: com.vmware.content.library.item.UpdateSession
.public UpdateSessionModel.Builder setLibraryItemId(java.lang.String libraryItemId)
create
method. It will always be
present in the return value of the get
or list
methods. It is
not used for the update
method.libraryItemId
- 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.content.library.Item
. When
methods return a value of this class as a return value, the property will be an
identifier for the resource type: com.vmware.content.library.Item
.public UpdateSessionModel.Builder setLibraryItemContentVersion(java.lang.String libraryItemContentVersion)
ItemModel.getContentVersion()
at
the time when the session is created for the library item.
This property is not used for the create
method. It will always be
present in the return value of the get
or list
methods. It is
not used for the update
method.libraryItemContentVersion
- New value for the property.public UpdateSessionModel.Builder setErrorMessage(LocalizableMessage errorMessage)
UpdateSessionModel.State.ERROR
status this
property will have more details about the error.
This property is not used for the create
method. It is optional in the
return value of the get
or list
methods. It is not used for the
update
method.errorMessage
- New value for the property.public UpdateSessionModel.Builder setClientProgress(java.lang.Long clientProgress)
create
method. It will always be
present in the return value of the get
or list
methods. It is
not used for the update
method.clientProgress
- New value for the property.public UpdateSessionModel.Builder setState(UpdateSessionModel.State state)
create
method. It will always be
present in the return value of the get
or list
methods. It is
not used for the update
method.state
- New value for the property.public UpdateSessionModel.Builder setExpirationTime(java.util.Calendar expirationTime)
create
method. It will always be
present in the return value of the get
or list
methods. It is
not used for the update
method.expirationTime
- New value for the property.public UpdateSessionModel.Builder setPreviewInfo(PreviewInfo previewInfo)
UpdateSessionModel.State.ACTIVE
. This property
was added in vSphere API 6.8.
This property is optional and it is only relevant when the value of getState()
is UpdateSessionModel.State.ACTIVE
.previewInfo
- New value for the property.public UpdateSessionModel.Builder setWarningBehavior(java.util.List<WarningBehavior> warningBehavior)
create
method. It is optional in the
return value of the get
or list
methods. It is optional for the
update
method.warningBehavior
- New value for the property.public UpdateSessionModel build()