public class CreateCommentRequestBody extends SerializableObject
| Modifier and Type | Class and Description |
|---|---|
static class |
CreateCommentRequestBody.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected CreateCommentRequestBodyItemField |
item
The item to attach the comment to.
|
protected String |
message
The text of the comment.
|
protected String |
taggedMessage
The text of the comment, including `@[user_id:name]` somewhere in the message to mention
another user, which will send them an email notification, letting them know they have been
mentioned.
|
explicitlySetNullableFields| Modifier | Constructor and Description |
|---|---|
protected |
CreateCommentRequestBody(CreateCommentRequestBody.Builder builder) |
|
CreateCommentRequestBody(String message,
CreateCommentRequestBodyItemField item) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
CreateCommentRequestBodyItemField |
getItem() |
String |
getMessage() |
String |
getTaggedMessage() |
int |
hashCode() |
String |
toString() |
getRawData, setRawDatagetExplicitlySetNullableFields, isFieldExplicitlySet, markNullableFieldAsSet, markNullableFieldsAsSetprotected final String message
To mention a user, use the `tagged_message` parameter instead.
protected String taggedMessage
The `user_id` is the target user's ID, where the `name` can be any custom phrase. In the Box UI this name will link to the user's profile.
If you are not mentioning another user, use `message` instead.
protected final CreateCommentRequestBodyItemField item
public CreateCommentRequestBody(String message, CreateCommentRequestBodyItemField item)
protected CreateCommentRequestBody(CreateCommentRequestBody.Builder builder)
public String getMessage()
public String getTaggedMessage()
public CreateCommentRequestBodyItemField getItem()