public final class StateDraftDsl extends Base
public StateDraftDsl withRoles(StateRole role)
public StateDraftDsl withInitial(boolean initial)
@Deprecated public StateDraftDsl withIsInitial(@Nullable Boolean initial)
withInitial(Boolean) insteadinitial - the initial valueisInitial() field set to the given value@Nullable public LocalizedString getDescription()
getDescription in interface StateDraft@Nullable public Boolean isInitial()
isInitial in interface StateDraftpublic String getKey()
getKey in interface WithKeygetKey in interface StateDraft@Nullable public LocalizedString getName()
getName in interface StateDraft@Nullable public Set<StateRole> getRoles()
getRoles in interface StateDraft@Nullable public Set<Reference<State>> getTransitions()
getTransitions in interface StateDraftpublic StateType getType()
getType in interface StateDraftpublic StateDraftBuilder newBuilder()
public T withDescription(@Nullable LocalizedString description)
public T withKey(String key)
public T withName(@Nullable LocalizedString name)
public T withType(StateType type)
public static StateDraftDsl of(String key, StateType type)
of in interface StateDraftkey - initial value for the StateDraft.getKey() propertytype - initial value for the StateDraft.getType() propertypublic static StateDraftDsl of(StateDraft template)
template - the template