Package com.smartsheet.api.models
Class Discussion
- java.lang.Object
-
- com.smartsheet.api.models.IdentifiableModel<java.lang.Long>
-
- com.smartsheet.api.models.Discussion
-
public class Discussion extends IdentifiableModel<java.lang.Long>
Represents the Discussion object.- See Also:
- Help Using Discussions
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Discussion.CreateDiscussionBuilder
A convenience class to help generate discussion object with the appropriate fields for adding a discussion to a sheet.
-
Constructor Summary
Constructors Constructor Description Discussion()
ConstructorsDiscussion(java.lang.String commentText)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAccessLevel()
Gets the access level.Comment
getComment()
Gets the comment for the discussion.java.util.List<Attachment>
getCommentAttachments()
Gets the comment attachments.java.lang.Integer
getCommentCount()
Gets the discussion comment countjava.util.List<Comment>
getComments()
Gets the comments for the discussion.User
getCreatedBy()
Gets the created byjava.util.Date
getLastCommentedAt()
Gets the date a comment was last added to a discussion..User
getLastCommentedUser()
Gets the user that last commented in the discussion.java.lang.Long
getParentId()
Gets the ID of the directly associated row or sheetParentType
getParentType()
Gets the type to row or sheetjava.lang.Boolean
getReadOnly()
Gets the read only statusjava.lang.String
getTitle()
Gets the title for the discussion.Discussion
setAccessLevel(java.lang.String accessLevel)
Sets the access level.Discussion
setComment(Comment comment)
Sets the comment for the discussion (outbound only, i.e.Discussion
setCommentAttachments(java.util.List<Attachment> commentAttachments)
Sets the comment attachments.Discussion
setCommentCount(java.lang.Integer commentCount)
Sets the discussion comment countDiscussion
setComments(java.util.List<Comment> comments)
Sets the comments for the discussion.Discussion
setCreatedBy(User createdBy)
Sets the created by.Discussion
setLastCommentedAt(java.util.Date lastCommentedAt)
Sets the date a comment was last added to a discussion.Discussion
setLastCommentedUser(User lastCommentedUser)
Sets the user that last commented in the discussion.Discussion
setParentId(java.lang.Long parentId)
Sets the ID of the directly associated row or sheetDiscussion
setParentType(ParentType parentType)
Sets the type to row or sheetDiscussion
setReadOnly(java.lang.Boolean readOnly)
Sets the read only status.Discussion
setTitle(java.lang.String title)
Sets the title for the discussion.-
Methods inherited from class com.smartsheet.api.models.IdentifiableModel
equals, getId, hashCode, setId
-
-
-
-
Method Detail
-
getReadOnly
public java.lang.Boolean getReadOnly()
Gets the read only status- Returns:
- the read only status
-
setReadOnly
public Discussion setReadOnly(java.lang.Boolean readOnly)
Sets the read only status.- Parameters:
readOnly
- the read only status
-
getCreatedBy
public User getCreatedBy()
Gets the created by- Returns:
- the created by
-
setCreatedBy
public Discussion setCreatedBy(User createdBy)
Sets the created by.- Parameters:
createdBy
- the created by
-
getTitle
public java.lang.String getTitle()
Gets the title for the discussion.- Returns:
- the title
-
setTitle
public Discussion setTitle(java.lang.String title)
Sets the title for the discussion.- Parameters:
title
- the new title
-
getComments
public java.util.List<Comment> getComments()
Gets the comments for the discussion.- Returns:
- the comments
-
setComments
public Discussion setComments(java.util.List<Comment> comments)
Sets the comments for the discussion.- Parameters:
comments
- the new comments
-
getComment
public Comment getComment()
Gets the comment for the discussion.- Returns:
- the comment
-
setComment
public Discussion setComment(Comment comment)
Sets the comment for the discussion (outbound only, i.e. POST - will otherwise be null).- Parameters:
comment
- the new comment
-
getCommentAttachments
public java.util.List<Attachment> getCommentAttachments()
Gets the comment attachments.- Returns:
- the comment attachments
-
setCommentAttachments
public Discussion setCommentAttachments(java.util.List<Attachment> commentAttachments)
Sets the comment attachments.- Parameters:
commentAttachments
- the new comment attachments
-
getCommentCount
public java.lang.Integer getCommentCount()
Gets the discussion comment count- Returns:
- the comment count
-
setCommentCount
public Discussion setCommentCount(java.lang.Integer commentCount)
Sets the discussion comment count- Parameters:
commentCount
- the new comment count- Returns:
- the Discussion
-
getLastCommentedAt
public java.util.Date getLastCommentedAt()
Gets the date a comment was last added to a discussion..- Returns:
- the last commented at
-
setLastCommentedAt
public Discussion setLastCommentedAt(java.util.Date lastCommentedAt)
Sets the date a comment was last added to a discussion.- Parameters:
lastCommentedAt
- the new last commented at
-
getLastCommentedUser
public User getLastCommentedUser()
Gets the user that last commented in the discussion.- Returns:
- the last commented user
-
setLastCommentedUser
public Discussion setLastCommentedUser(User lastCommentedUser)
Sets the user that last commented in the discussion.- Parameters:
lastCommentedUser
- the new last commented user
-
getAccessLevel
public java.lang.String getAccessLevel()
Gets the access level.- Returns:
- the access level
-
setAccessLevel
public Discussion setAccessLevel(java.lang.String accessLevel)
Sets the access level.- Parameters:
accessLevel
- the new access level
-
getParentId
public java.lang.Long getParentId()
Gets the ID of the directly associated row or sheet- Returns:
- the parent ID
-
setParentId
public Discussion setParentId(java.lang.Long parentId)
Sets the ID of the directly associated row or sheet- Parameters:
parentId
- the new access level
-
getParentType
public ParentType getParentType()
Gets the type to row or sheet- Returns:
- the parent type
-
setParentType
public Discussion setParentType(ParentType parentType)
Sets the type to row or sheet- Parameters:
parentType
- the new access level
-
-