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

io.sphere.client.shop.model.ReviewUpdate 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.ReviewCommands;
import io.sphere.internal.command.Update;

/** ReviewUpdate is used to update a {@link io.sphere.client.shop.model.Review} in the backend. */
public class ReviewUpdate extends Update {
    /** Sets the author name of the review. */
    public ReviewUpdate setAuthor(String author) {
        add(new ReviewCommands.SetAuthorName(author));
        return this;
    }

    /** Sets the title of the review. */
    public ReviewUpdate setTitle(String title) {
        add(new ReviewCommands.SetTitle(title));
        return this;
    }

    /** Sets the text of the review. */
    public ReviewUpdate setText(String text) {
        add(new ReviewCommands.SetText(text));
        return this;
    }

    /** Sets the score of the review. */
    public ReviewUpdate setScore(Double score) {
        add(new ReviewCommands.SetScore(score));
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy