class Step {

    public void defaultLifecycleLog(LifecycleState lifecycleLog) {
        actions.forEach(action -> {
            boolean distributed = distribution.getKind().isDistributed();
            if (distributed) {
                action.getActionDefinition().defaultLifecycleLog(lifecycleLog);
            } else {
                action.getActionDefinition().defaultLifecycleLog(DISABLED);
            }
        });
    }

    public  Step();
    @JsonCreator public  Step(
        @JsonProperty("id") String id,
        @JsonProperty("workerGroupId") String workerGroupId,
        @JsonProperty("stepName") String stepName,
        @JsonProperty("behavior") ProcessBehavior behavior,
        @JsonProperty("distribution") Distribution distribution,
        @JsonProperty("actions") List<Action> actions);

}