Package com.smartsheet.api.models
Class SearchResultItem
- java.lang.Object
-
- com.smartsheet.api.models.SearchResultItem
-
public class SearchResultItem extends java.lang.Object
Represents one specific result of a search.
-
-
Constructor Summary
Constructors Constructor Description SearchResultItem()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttachmentType
getAttachmentType()
Get the attachment type if the search result item is an attachmentjava.util.List<java.lang.String>
getContextData()
Gets the context data for this specific search result.java.lang.Boolean
getFavorite()
Get a flag indicating if the search result item is a favoritejava.lang.String
getMimeType()
Gets the mime type.java.lang.Long
getObjectId()
Gets the object id for this specific search result.java.lang.String
getObjectType()
Gets the object type for this specific search result.java.lang.Boolean
getParentObjectFavorite()
Get a flag indicating if the search result item parent is a favoritejava.lang.Long
getParentObjectId()
Gets the parent object id for this specific search result.java.lang.String
getParentObjectName()
Gets the parent object name for this specific search result.java.lang.String
getParentObjectType()
Gets the parent object type for this specific search result.java.lang.String
getText()
Gets the text for this specific search result.void
setAttachmentType(AttachmentType attachmentType)
Set the attachment type if the search result item is an attachmentvoid
setContextData(java.util.List<java.lang.String> contextData)
Sets the context data for this specific search result.void
setFavorite(java.lang.Boolean favorite)
Set a flag indicating if the search result item is a favoritevoid
setMimeType(java.lang.String mimeType)
Sets the mime type.void
setObjectId(java.lang.Long objectId)
Sets the object id for this specific search result.void
setObjectType(java.lang.String objectType)
Sets the object type for this specific search result.void
setParentObjectFavorite(java.lang.Boolean parentObjectFavorite)
Set a flag indicating if the search result item parent is a favoritevoid
setParentObjectId(java.lang.Long parentObjectId)
Sets the parent object id for this specific search result.void
setParentObjectName(java.lang.String parentObjectName)
Sets the parent object name for this specific search result.void
setParentObjectType(java.lang.String parentObjectType)
Sets the parent object type for this specific search result.void
setText(java.lang.String text)
Sets the text for this specific search result.
-
-
-
Method Detail
-
getText
public java.lang.String getText()
Gets the text for this specific search result.- Returns:
- the text
-
setText
public void setText(java.lang.String text)
Sets the text for this specific search result.- Parameters:
text
- the new text
-
getObjectId
public java.lang.Long getObjectId()
Gets the object id for this specific search result.- Returns:
- the object id
-
setObjectId
public void setObjectId(java.lang.Long objectId)
Sets the object id for this specific search result.- Parameters:
objectId
- the new object id
-
getObjectType
public java.lang.String getObjectType()
Gets the object type for this specific search result.- Returns:
- the object type
-
setObjectType
public void setObjectType(java.lang.String objectType)
Sets the object type for this specific search result.- Parameters:
objectType
- the new object type
-
getParentObjectId
public java.lang.Long getParentObjectId()
Gets the parent object id for this specific search result.- Returns:
- the parent object id
-
setParentObjectId
public void setParentObjectId(java.lang.Long parentObjectId)
Sets the parent object id for this specific search result.- Parameters:
parentObjectId
- the new parent object id
-
getParentObjectType
public java.lang.String getParentObjectType()
Gets the parent object type for this specific search result.- Returns:
- the parent object type
-
setParentObjectType
public void setParentObjectType(java.lang.String parentObjectType)
Sets the parent object type for this specific search result.- Parameters:
parentObjectType
- the new parent object type
-
getParentObjectName
public java.lang.String getParentObjectName()
Gets the parent object name for this specific search result.- Returns:
- the parent object name
-
setParentObjectName
public void setParentObjectName(java.lang.String parentObjectName)
Sets the parent object name for this specific search result.- Parameters:
parentObjectName
- the new parent object name
-
getContextData
public java.util.List<java.lang.String> getContextData()
Gets the context data for this specific search result.- Returns:
- the context data
-
setContextData
public void setContextData(java.util.List<java.lang.String> contextData)
Sets the context data for this specific search result.- Parameters:
contextData
- the new context data
-
getAttachmentType
public AttachmentType getAttachmentType()
Get the attachment type if the search result item is an attachment- Returns:
- the attachment type
-
setAttachmentType
public void setAttachmentType(AttachmentType attachmentType)
Set the attachment type if the search result item is an attachment- Parameters:
attachmentType
- the attachment type
-
getMimeType
public java.lang.String getMimeType()
Gets the mime type.- Returns:
- the mime type
-
setMimeType
public void setMimeType(java.lang.String mimeType)
Sets the mime type.- Parameters:
mimeType
- the new mime type
-
getFavorite
public java.lang.Boolean getFavorite()
Get a flag indicating if the search result item is a favorite- Returns:
- the favorite flag
-
setFavorite
public void setFavorite(java.lang.Boolean favorite)
Set a flag indicating if the search result item is a favorite- Parameters:
favorite
- the favorite flag
-
getParentObjectFavorite
public java.lang.Boolean getParentObjectFavorite()
Get a flag indicating if the search result item parent is a favorite- Returns:
- the favorite flag
-
setParentObjectFavorite
public void setParentObjectFavorite(java.lang.Boolean parentObjectFavorite)
Set a flag indicating if the search result item parent is a favorite- Parameters:
parentObjectFavorite
- the favorite flag
-
-