public static final class ItemTypes.FindSpec.Builder
extends java.lang.Object
ItemTypes.FindSpec
.Constructor and Description |
---|
ItemTypes.FindSpec.Builder()
Constructor with parameters for the required properties of
ItemTypes.FindSpec . |
Modifier and Type | Method and Description |
---|---|
ItemTypes.FindSpec |
build() |
ItemTypes.FindSpec.Builder |
setCached(java.lang.Boolean cached)
Whether the item is cached.
|
ItemTypes.FindSpec.Builder |
setLibraryId(java.lang.String libraryId)
The identifier of the library containing the item.
|
ItemTypes.FindSpec.Builder |
setName(java.lang.String name)
The name of the library item.
|
ItemTypes.FindSpec.Builder |
setSourceId(java.lang.String sourceId)
The identifier of the library item as reported by the publisher.
|
ItemTypes.FindSpec.Builder |
setType(java.lang.String type)
The type of the library item.
|
public ItemTypes.FindSpec.Builder()
ItemTypes.FindSpec
.public ItemTypes.FindSpec.Builder setName(java.lang.String name)
ItemModel.getName()
.
If not specified all library item names are searched.name
- New value for the property.public ItemTypes.FindSpec.Builder setLibraryId(java.lang.String libraryId)
ItemModel.getLibraryId()
.
If not specified all libraries are searched.libraryId
- 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
. 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
.public ItemTypes.FindSpec.Builder setSourceId(java.lang.String sourceId)
ItemModel.getSourceId()
.
If not specified all library items are searched.sourceId
- 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 ItemTypes.FindSpec.Builder setType(java.lang.String type)
ItemModel.getType()
.
If not specified all types are searched.type
- New value for the property.public ItemTypes.FindSpec.Builder setCached(java.lang.Boolean cached)
ItemModel.getCached()
.
If not specified all library items are searched.cached
- New value for the property.public ItemTypes.FindSpec build()