Class AddCommentRequest
- Object
-
- AddCommentRequest
-
- All Implemented Interfaces:
Serializable
public class AddCommentRequest extends Object implements Serializable
The properties of the comment to be added.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AddCommentRequest.Builder
-
Constructor Summary
Constructors Constructor Description AddCommentRequest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AddCommentRequest.Builder
builder()
protected boolean
canEqual(Object other)
boolean
equals(Object o)
@NotNull ResourceReference
getBaseResource()
Required. The resource which the new comment should be attached to.@NotNull String
getContent()
Required. The actual HTML content of the comment to be added.UUID
getParentId()
The ID of the parent comment.int
hashCode()
void
setBaseResource(@NotNull ResourceReference baseResource)
Required. The resource which the new comment should be attached to.void
setBaseResourceId(UUID baseResourceId)
Sets the ID of the resource which the new comment should be attached to.void
setBaseResourceType(ResourceType baseResourceType)
Sets the type of the resource which the new comment should be attached to.void
setContent(@NotNull String content)
Required. The actual HTML content of the comment to be added.void
setParentId(UUID parentId)
The ID of the parent comment.String
toString()
-
-
-
Method Detail
-
setBaseResourceId
public void setBaseResourceId(UUID baseResourceId)
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
-
setBaseResourceType
public void setBaseResourceType(ResourceType baseResourceType)
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
-
builder
public static AddCommentRequest.Builder builder()
-
getContent
@NotNull public @NotNull String getContent()
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]
.
-
getBaseResource
@NotNull public @NotNull ResourceReference getBaseResource()
Required. The resource which the new comment should be attached to.
-
getParentId
public UUID getParentId()
The ID of the parent comment. If not null - the comment is the reply for the parent comment.
-
setContent
public void setContent(@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]
.
-
setBaseResource
public void setBaseResource(@NotNull @NotNull ResourceReference baseResource)
Required. The resource which the new comment should be attached to.
-
setParentId
public void setParentId(UUID parentId)
The ID of the parent comment. If not null - the comment is the reply for the parent comment.
-
equals
public boolean equals(Object o)
- Overrides:
equals
in classObject
-
canEqual
protected boolean canEqual(Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classObject
-
toString
public String toString()
- Overrides:
toString
in classObject
-
-