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

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

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.states.commands.updateactions;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.sphere.sdk.commands.UpdateActionImpl;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.states.State;

import javax.annotation.Nullable;
import java.util.Set;

/**
 * {@include.example io.sphere.sdk.states.commands.StateUpdateCommandTest#setTransitions()}
 */
public class SetTransitions extends UpdateActionImpl {
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    @Nullable
    private final Set> transitions;

    private SetTransitions(final Set> transitions) {
        super("setTransitions");
        this.transitions = transitions;
    }

    public static SetTransitions of(@Nullable final Set> transitions) {
        return new SetTransitions(transitions);
    }

    @Nullable
    public Set> getTransitions() {
        return transitions;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy