io.sphere.sdk.reviews.commands.updateactions.SetText Maven / Gradle / Ivy
package io.sphere.sdk.reviews.commands.updateactions;
import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.reviews.Review;
import javax.annotation.Nullable;
/**
* Sets/unsets the content of a review.
*
* {@include.example io.sphere.sdk.reviews.commands.ReviewUpdateCommandTest#setText()}
*/
public class SetText extends UpdateActionImpl {
@Nullable
private final String text;
private SetText(@Nullable final String text) {
super("setText");
this.text = text;
}
public static SetText of(@Nullable final String text) {
return new SetText(text);
}
@Nullable
public String getText() {
return text;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy