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

io.sphere.sdk.reviews.commands.updateactions.SetAuthorName Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
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