Class AddCommentRequest.Builder
- Object
-
- Builder
-
- Enclosing class:
- AddCommentRequest
public static final class AddCommentRequest.Builder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AddCommentRequest.Builder
baseResource(@NotNull ResourceReference baseResource)
Required. The resource which the new comment should be attached to.AddCommentRequest.Builder
baseResourceId(UUID baseResourceId)
(required) Sets the ID of the resource which the new comment should be attached to.AddCommentRequest.Builder
baseResourceType(ResourceType baseResourceType)
(required) Sets the type of the resource which the new comment should be attached to.AddCommentRequest
build()
AddCommentRequest.Builder
but()
Deprecated.This method will be removed in the future.AddCommentRequest.Builder
content(@NotNull String content)
Required. The actual HTML content of the comment to be added.AddCommentRequest.Builder
parentId(UUID parentId)
The ID of the parent comment.String
toString()
-
-
-
Method Detail
-
baseResourceId
public AddCommentRequest.Builder baseResourceId(UUID baseResourceId)
(required) Sets the ID of the resource which the new comment should be attached to. This is a convenience method for setting base resource ID.- Parameters:
baseResourceId
- the ID of the resource which the new comment should be attached to
-
baseResourceType
public AddCommentRequest.Builder baseResourceType(ResourceType baseResourceType)
(required) Sets the type of the resource which the new comment should be attached to. This is a convenience method for setting base resource type.- Parameters:
baseResourceType
- the type of the resource which the new comment should be attached to
-
but
@Deprecated public AddCommentRequest.Builder but()
Deprecated.This method will be removed in the future. Please, useAddCommentRequest.builder()
Clone method for this Builder.
-
content
public AddCommentRequest.Builder content(@NotNull @NotNull String content)
Required. The actual HTML content of the comment to be added. Can contain user mentions using syntax[@User:$userId]
where $userId is the ID of mentioned user. For example:[@User:00000000-0000-0000-0000-000000900002]
.- Returns:
this
.
-
baseResource
public AddCommentRequest.Builder baseResource(@NotNull @NotNull ResourceReference baseResource)
Required. The resource which the new comment should be attached to.- Returns:
this
.
-
parentId
public AddCommentRequest.Builder parentId(UUID parentId)
The ID of the parent comment. If not null - the comment is the reply for the parent comment.- Returns:
this
.
-
build
public AddCommentRequest build()
-
toString
public String toString()
- Overrides:
toString
in classObject
-
-