io.sphere.sdk.reviews.commands.updateactions.SetAuthorName 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;
/**
* Updates the author name of a review.
*
* {@doc.gen intro}
*
* {@include.example io.sphere.sdk.reviews.commands.ReviewUpdateCommandTest#setAuthorName()}
*/
public class SetAuthorName extends UpdateActionImpl {
@Nullable
private final String authorName;
private SetAuthorName(@Nullable final String authorName) {
super("setAuthorName");
this.authorName = authorName;
}
public static SetAuthorName of(@Nullable final String authorName) {
return new SetAuthorName(authorName);
}
@Nullable
public String getAuthorName() {
return authorName;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy