public static class InventoryData.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
InventoryData.Builder |
addFilter(String name,
String value)
Adds the given filter to the list of filters for the widget.
|
InventoryData.Builder |
addSource(String source)
Adds the given source to the list of sources for the widget.
|
InventoryData |
build()
Returns the configured widget data instance
|
InventoryData.Builder |
filters(Map<String,String> filters)
Sets the filters of the widget data.
|
InventoryData.Builder |
sources(List<String> sources)
Sets the sources of the widget data.
|
public InventoryData.Builder sources(List<String> sources)
sources
- The sources of the widget datapublic InventoryData.Builder addSource(String source)
source
- The source to add to the list of sourcespublic InventoryData.Builder filters(Map<String,String> filters)
filters
- The filters of the widget datapublic InventoryData.Builder addFilter(String name, String value)
name
- The name of the filter to addvalue
- The value of the filter to addpublic InventoryData build()
Copyright © 2018. All rights reserved.