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 classComment.AddCommentBuilderA convenience class to generate a comment with the appropriate fields for adding it to a sheet.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.List<Attachment>getAttachments()Gets the comment attachments.java.util.DategetCreatedAt()Gets the date the comment was created.UsergetCreatedBy()Gets user that created the comment.java.lang.LonggetDiscussionId()Gets the discussion id.java.util.DategetModifiedAt()Gets the date the comment was modified.java.util.DategetModifiedDate()Deprecated, for removal: This API element is subject to removal in a future version.use getModifiedAt instead.java.lang.StringgetText()Gets the text for the comment.CommentsetAttachments(java.util.List<Attachment> attachments)Sets the comment attachments.CommentsetCreatedAt(java.util.Date createdAt)Sets the date the comment was created.CommentsetCreatedBy(User createdBy)Sets the user that created the comment.CommentsetDiscussionId(java.lang.Long discussionId)Sets the discussion id.CommentsetModifiedAt(java.util.Date modifiedAt)Sets the date the comment was modified.CommentsetModifiedDate(java.util.Date modifiedDate)Deprecated, for removal: This API element is subject to removal in a future version.use setModifiedAt instead.CommentsetText(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
@Deprecated(since="3.2.3", forRemoval=true) public java.util.Date getModifiedDate()Deprecated, for removal: This API element is subject to removal in a future version.use getModifiedAt instead.Gets the date the comment was last modified.- Returns:
- the modified date
-
setModifiedDate
@Deprecated(since="3.2.3", forRemoval=true) public Comment setModifiedDate(java.util.Date modifiedDate)Deprecated, for removal: This API element is subject to removal in a future version.use setModifiedAt instead.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
-
-