Package io.constructor.client
Class ConstructorItem
java.lang.Object
io.constructor.client.ConstructorItem
Constructor.io Item
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()getName()getUrl()voidvoidsetDescription(String description) voidvoidsetGroupIds(List<String> groupIds) voidvoidsetImageUrl(String imageUrl) voidsetKeywords(List<String> keywords) voidsetMetadata(Map<String, Object> metadata) voidvoidsetSuggestedScore(Float suggestedScore) voidtoMap()Returns the HashMap form of an item for converting to JSON
-
Constructor Details
-
ConstructorItem
Creates an item. Optional public fields are in the API documentation- Parameters:
id- the id of the item that you are adding.name- the name of the item that you are adding.- Throws:
IllegalArgumentException
-
ConstructorItem
- Throws:
IllegalArgumentException
-
-
Method Details
-
toMap
Returns the HashMap form of an item for converting to JSON -
getName
- Returns:
- the name
-
setName
- Parameters:
name- the name to set
-
getSuggestedScore
- Returns:
- the suggestedScore
-
setSuggestedScore
- Parameters:
suggestedScore- the suggestedScore to set
-
getKeywords
- Returns:
- the keywords
-
setKeywords
- Parameters:
keywords- the keywords to set
-
getUrl
- Returns:
- the url
-
setUrl
- Parameters:
url- the url to set
-
getImageUrl
- Returns:
- the imageUrl
-
setImageUrl
- Parameters:
imageUrl- the imageUrl to set
-
getDescription
- Returns:
- the description
-
setDescription
- Parameters:
description- the description to set
-
getActive
- Returns:
- the active status of the item
-
setActive
- Parameters:
active- the active status to set for the item
-
getId
- Returns:
- the id
-
setId
- Parameters:
id- the id to set
-
getFacets
- Returns:
- the facets
-
setFacets
- Parameters:
facets- the facets to set
-
getMetadata
- Returns:
- the metadata
-
setMetadata
- Parameters:
metadata- the metadata to set
-
getGroupIds
- Returns:
- the groupIds
-
setGroupIds
- Parameters:
groupIds- the groupIds to set
-