public class Document extends GenericModel
ConceptInsights
service.Constructor and Description |
---|
Document()
Instantiates a new document.
|
Document(Corpus corpus,
String document)
Instantiates a new document.
|
Document(String accountId,
String corpusName,
String document)
Instantiates a new document.
|
Modifier and Type | Method and Description |
---|---|
void |
addParts(Part part)
Adds a
Part . |
Date |
getExpiresOn()
Gets the expires on.
|
String |
getId()
Gets the id.
|
String |
getLabel()
Gets the label.
|
Date |
getLastModified()
Gets the last modified.
|
String |
getName()
Gets the name.
|
List<Part> |
getParts()
Gets the parts.
|
Integer |
getTimeToLive()
Gets the time to live.
|
Map<String,String> |
getUserFields()
Gets the user fields.
|
void |
setExpiresOn(Date expiresOn)
Sets the expires on.
|
void |
setId(String id)
Sets the id.
|
void |
setLabel(String label)
Sets the label.
|
void |
setLastModified(Date lastModified)
Sets the last modified.
|
void |
setName(String name)
Sets the name.
|
void |
setParts(List<Part> parts)
Sets the parts.
|
void |
setTimeToLive(Integer hours)
Sets the time to live in hours
|
void |
setUserFields(Map<String,String> userFields)
Sets the user fields.
|
equals, hashCode, toString
public Document()
public Document(Corpus corpus, String document)
corpus
- the corpusdocument
- the documentpublic Date getExpiresOn()
public String getId()
public String getLabel()
public Date getLastModified()
public String getName()
public Integer getTimeToLive()
public Map<String,String> getUserFields()
public void setExpiresOn(Date expiresOn)
expiresOn
- the expiresOn to setpublic void setId(String id)
id
- The idpublic void setLabel(String label)
label
- The labelpublic void setLastModified(Date lastModified)
lastModified
- The last_modifiedpublic void setName(String name)
name
- The namepublic void setTimeToLive(Integer hours)
hours
- the number of hours to keep the document alive.Copyright © 2015–2016. All rights reserved.