Package io.constructor.client
Class ConstructorItem
java.lang.Object
io.constructor.client.ConstructorItem
Constructor.io Item
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetId()
getName()
getUrl()
void
setDescription
(String description) void
void
setGroupIds
(List<String> groupIds) void
void
setImageUrl
(String imageUrl) void
setKeywords
(List<String> keywords) void
setMetadata
(Map<String, Object> metadata) void
void
setSuggestedScore
(Float suggestedScore) void
toMap()
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
-
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
-