Package com.smartsheet.api.models
Class Discussion.CreateDiscussionBuilder
- java.lang.Object
-
- com.smartsheet.api.models.Discussion.CreateDiscussionBuilder
-
- Enclosing class:
- Discussion
public static class Discussion.CreateDiscussionBuilder extends java.lang.Object
A convenience class to help generate discussion object with the appropriate fields for adding a discussion to a sheet.
-
-
Constructor Summary
Constructors Constructor Description CreateDiscussionBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Discussion
build()
Builds the.Comment
getComment()
Gets the comments.java.lang.String
getTitle()
Gets the title.Discussion.CreateDiscussionBuilder
setComment(Comment comment)
Sets the comments for the discussion.Discussion.CreateDiscussionBuilder
setTitle(java.lang.String title)
Sets the title for the discussion.
-
-
-
Method Detail
-
setTitle
public Discussion.CreateDiscussionBuilder setTitle(java.lang.String title)
Sets the title for the discussion.- Parameters:
title
- the title- Returns:
- the creates the discussion builder
-
setComment
public Discussion.CreateDiscussionBuilder setComment(Comment comment)
Sets the comments for the discussion.- Parameters:
comment
- the comments- Returns:
- the creates the discussion builder
-
getTitle
public java.lang.String getTitle()
Gets the title.- Returns:
- the title
-
getComment
public Comment getComment()
Gets the comments.- Returns:
- the comments
-
build
public Discussion build()
Builds the.- Returns:
- the discussion
-
-