Package com.smartsheet.api.models
Class Comment
- java.lang.Object
-
- com.smartsheet.api.models.IdentifiableModel<java.lang.Long>
-
- com.smartsheet.api.models.Comment
-
public class Comment extends IdentifiableModel<java.lang.Long>
Represents the Comment object.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Comment.AddCommentBuilder
A convenience class to generate a comment with the appropriate fields for adding it to a sheet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Attachment>
getAttachments()
Gets the comment attachments.java.util.Date
getCreatedAt()
Gets the date the comment was created.User
getCreatedBy()
Gets user that created the comment.java.lang.Long
getDiscussionId()
Gets the discussion id.java.util.Date
getModifiedAt()
Gets the date the comment was modified.java.util.Date
getModifiedDate()
Gets the date the comment was last modified.java.lang.String
getText()
Gets the text for the comment.Comment
setAttachments(java.util.List<Attachment> attachments)
Sets the comment attachments.Comment
setCreatedAt(java.util.Date createdAt)
Sets the date the comment was created.Comment
setCreatedBy(User createdBy)
Sets the user that created the comment.Comment
setDiscussionId(java.lang.Long discussionId)
Sets the discussion id.Comment
setModifiedAt(java.util.Date modifiedAt)
Sets the date the comment was modified.Comment
setModifiedDate(java.util.Date modifiedDate)
Sets the date the comment was last modified.Comment
setText(java.lang.String text)
Sets the text for the comment.-
Methods inherited from class com.smartsheet.api.models.IdentifiableModel
equals, getId, hashCode, setId
-
-
-
-
Method Detail
-
getText
public java.lang.String getText()
Gets the text for the comment.- Returns:
- the text
-
setText
public Comment setText(java.lang.String text)
Sets the text for the comment.- Parameters:
text
- the new text
-
getCreatedBy
public User getCreatedBy()
Gets user that created the comment.- Returns:
- the created by
-
setCreatedBy
public Comment setCreatedBy(User createdBy)
Sets the user that created the comment.- Parameters:
createdBy
- the new created by
-
getModifiedDate
public java.util.Date getModifiedDate()
Gets the date the comment was last modified.- Returns:
- the modified date
-
setModifiedDate
public Comment setModifiedDate(java.util.Date modifiedDate)
Sets the date the comment was last modified.- Parameters:
modifiedDate
- the new modified date
-
getAttachments
public java.util.List<Attachment> getAttachments()
Gets the comment attachments.- Returns:
- the attachments
-
setAttachments
public Comment setAttachments(java.util.List<Attachment> attachments)
Sets the comment attachments.- Parameters:
attachments
- the new attachments
-
getDiscussionId
public java.lang.Long getDiscussionId()
Gets the discussion id.- Returns:
- the discussion id
-
setDiscussionId
public Comment setDiscussionId(java.lang.Long discussionId)
Sets the discussion id.- Parameters:
discussionId
- the new discussion id
-
getCreatedAt
public java.util.Date getCreatedAt()
Gets the date the comment was created.- Returns:
- the created at
-
setCreatedAt
public Comment setCreatedAt(java.util.Date createdAt)
Sets the date the comment was created.- Parameters:
createdAt
- the new created at
-
getModifiedAt
public java.util.Date getModifiedAt()
Gets the date the comment was modified.- Returns:
- the modified at
-
setModifiedAt
public Comment setModifiedAt(java.util.Date modifiedAt)
Sets the date the comment was modified.- Parameters:
modifiedAt
- the new modified at
-
-