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 StateDraft
public String getKey()
getKey
in interface WithKey
getKey
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 StateDraft
public StateType getType()
getType
in interface StateDraft
public 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 StateDraft
key
- initial value for the StateDraft.getKey()
propertytype
- initial value for the StateDraft.getType()
propertypublic static StateDraftDsl of(StateDraft template)
template
- the template