All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.enonic.xp.issue.UpdateIssueCommentParams Maven / Gradle / Ivy

There is a newer version: 7.14.4
Show newest version
package com.enonic.xp.issue;

import com.enonic.xp.node.NodeId;

public final class UpdateIssueCommentParams
{
    private final NodeId comment;

    private final String text;

    private UpdateIssueCommentParams( Builder builder )
    {
        this.text = builder.text;
        this.comment = builder.comment;
    }

    public String getText()
    {
        return text;
    }

    public NodeId getComment()
    {
        return comment;
    }

    public static Builder create()
    {
        return new Builder();
    }

    public static class Builder
    {
        private NodeId comment;

        private String text;

        private Builder()
        {
        }

        public Builder text( final String text )
        {
            this.text = text;
            return this;
        }

        public Builder comment( final NodeId comment )
        {
            this.comment = comment;
            return this;
        }

        public UpdateIssueCommentParams build()
        {
            return new UpdateIssueCommentParams( this );
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy