io.sphere.sdk.states.commands.updateactions.SetName Maven / Gradle / Ivy
package io.sphere.sdk.states.commands.updateactions;
import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.models.LocalizedString;
import io.sphere.sdk.states.State;
import javax.annotation.Nullable;
/**
* {@include.example io.sphere.sdk.states.commands.StateUpdateCommandTest#setName()}
*/
public class SetName extends UpdateActionImpl {
@Nullable
private final LocalizedString name;
private SetName(@Nullable final LocalizedString name) {
super("setName");
this.name = name;
}
public static SetName of(@Nullable final LocalizedString name) {
return new SetName(name);
}
@Nullable
public LocalizedString getName() {
return name;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy