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

io.sphere.sdk.states.commands.updateactions.SetName Maven / Gradle / Ivy

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