public static final class LibraryItemTypes.CreateResult.Builder
extends java.lang.Object
LibraryItemTypes.CreateResult
.Constructor and Description |
---|
Builder(boolean succeeded)
Constructor with parameters for the required properties of
LibraryItemTypes.CreateResult . |
Modifier and Type | Method and Description |
---|---|
LibraryItemTypes.CreateResult |
build() |
LibraryItemTypes.CreateResult.Builder |
setError(LibraryItemTypes.ResultInfo error)
Errors, warnings, and informational messages produced by the
create()
method. |
LibraryItemTypes.CreateResult.Builder |
setOvfLibraryItemId(java.lang.String ovfLibraryItemId)
Identifier of the created or updated library item.
|
public Builder(boolean succeeded)
LibraryItemTypes.CreateResult
.public LibraryItemTypes.CreateResult.Builder setOvfLibraryItemId(java.lang.String ovfLibraryItemId)
null
, the create()
method failed and LibraryItemTypes.CreateResult.getError()
will describe the
error(s) that caused the failure.ovfLibraryItemId
- 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 LibraryItemTypes.CreateResult.Builder setError(LibraryItemTypes.ResultInfo error)
create()
method.
If null
, no errors, warnings, or informational messages were reported by
the create()
method.error
- New value for the property.public LibraryItemTypes.CreateResult build()