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

io.sphere.client.shop.model.CommentUpdate Maven / Gradle / Ivy

There is a newer version: 0.72.1
Show newest version
package io.sphere.client.shop.model;

import io.sphere.internal.command.CommentCommands;
import io.sphere.internal.command.Update;

/** CommentUpdate is used to update a {@link io.sphere.client.shop.model.Comment} in the backend. */
public class CommentUpdate extends Update {
    /** Sets the author of the comment. */
    public CommentUpdate setAuthor(String author) {
        add(new CommentCommands.SetAuthor(author));
        return this;
    }

    /** Sets the title of the comment. */
    public CommentUpdate setTitle(String title) {
        add(new CommentCommands.SetTitle(title));
        return this;
    }

    /** Sets the text of the comment.  */
    public CommentUpdate setText(String text) {
        add(new CommentCommands.SetText(text));
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy