Package io.constructor.client
Class ConstructorVariation
java.lang.Object
io.constructor.client.ConstructorVariation
Constructor.io Variation
-
Constructor Summary
ConstructorDescriptionConstructorVariation
(String id, String itemId) ConstructorVariation
(String id, String itemId, String name) Creates a variation. -
Method Summary
Modifier and TypeMethodDescriptiongetId()
getName()
getUrl()
void
setDescription
(String description) void
void
setGroupIds
(List<String> groupIds) void
void
setImageUrl
(String imageUrl) void
void
setKeywords
(List<String> keywords) void
setMetadata
(Map<String, Object> metadata) void
void
setSuggestedScore
(Float suggestedScore) void
toMap()
Returns the HashMap form of a variation for converting to JSON
-
Constructor Details
-
ConstructorVariation
Creates a variation. Optional public fields are in the API documentation- Parameters:
id
- the id of the variation that you are adding.itemId
- the id of the item this variation is attached to.name
- the name of the variation that you are adding.- Throws:
IllegalArgumentException
-
ConstructorVariation
- Throws:
IllegalArgumentException
-
ConstructorVariation
- Throws:
IllegalArgumentException
-
-
Method Details
-
toMap
Returns the HashMap form of a variation 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
-
getItemId
- Returns:
- the itemId
-
setItemId
- Parameters:
itemId
- the itemId 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
-