io.sphere.sdk.states.StateDraft Maven / Gradle / Ivy
package io.sphere.sdk.states;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import io.sphere.sdk.models.LocalizedString;
import io.sphere.sdk.models.Reference;
import io.sphere.sdk.models.WithKey;
import javax.annotation.Nullable;
import java.util.Set;
/**
* Template to create a new State.
*
* @see StateDraftBuilder
*/
@JsonDeserialize(as = StateDraftDsl.class)
public interface StateDraft extends WithKey {
String getKey();
StateType getType();
@Nullable
LocalizedString getName();
@Nullable
LocalizedString getDescription();
@Nullable
Boolean isInitial();
@Nullable
Set> getTransitions();
@Nullable
Set getRoles();
static StateDraftDsl of(final String key, final StateType type) {
return new StateDraftDsl(key, type, null, null, null, null, null);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy