// Path: funktion-model/src/main/java/io/fabric8/funktion/model/StepKinds.java
// public class StepKinds {
//     public static final String CHOICE = "choice";
//     public static final String ENDPOINT = "endpoint";
//     public static final String FILTER = "filter";
//     public static final String FUNCTION = "function";
//     public static final String FLOW = "flow";
//     public static final String OTHERWISE = "otherwise";
//     public static final String SET_BODY = "setBody";
//     public static final String SET_HEADERS = "setHeaders";
//     public static final String SPLIT = "split";
//     public static final String THROTTLE = "throttle";
//     public static final String LOG = "log";
// }


import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.fabric8.funktion.model.StepKinds;
/*
 * Copyright 2016 Red Hat, Inc.
 * <p>
 * Red Hat licenses this file to you under the Apache License, version
 * 2.0 (the "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 * implied.  See the License for the specific language governing
 * permissions and limitations under the License.
 *
 */
package io.fabric8.funktion.model.steps;


/**
 * Defines the a step in a funktion flow
 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
@JsonSubTypes({
        @JsonSubTypes.Type(value = Choice.class, name = StepKinds.CHOICE),
        @JsonSubTypes.Type(value = Endpoint.class, name = StepKinds.ENDPOINT),
        @JsonSubTypes.Type(value = Filter.class, name = StepKinds.FILTER),
// Path: funktion-model/src/main/java/io/fabric8/funktion/model/StepKinds.java
// public class StepKinds {
//     public static final String CHOICE = "choice";
//     public static final String ENDPOINT = "endpoint";
//     public static final String FILTER = "filter";
//     public static final String FUNCTION = "function";
//     public static final String FLOW = "flow";
//     public static final String OTHERWISE = "otherwise";
//     public static final String SET_BODY = "setBody";
//     public static final String SET_HEADERS = "setHeaders";
//     public static final String SPLIT = "split";
//     public static final String THROTTLE = "throttle";
//     public static final String LOG = "log";
// }


// Path: funktion-model/src/main/java/io/fabric8/funktion/model/steps/Step.java
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import io.fabric8.funktion.model.StepKinds;

/*
 * Copyright 2016 Red Hat, Inc.
 * <p>
 * Red Hat licenses this file to you under the Apache License, version
 * 2.0 (the "License"); you may not use this file except in compliance
 * with the License.  You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 * implied.  See the License for the specific language governing
 * permissions and limitations under the License.
 *
 */
package io.fabric8.funktion.model.steps;


/**
 * Defines the a step in a funktion flow
 */
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.PROPERTY, property = "kind")
@JsonSubTypes({
        @JsonSubTypes.Type(value = Choice.class, name = StepKinds.CHOICE),
        @JsonSubTypes.Type(value = Endpoint.class, name = StepKinds.ENDPOINT),
        @JsonSubTypes.Type(value = Filter.class, name = StepKinds.FILTER),
        @JsonSubTypes.Type(value = Function.class, name = StepKinds.FUNCTION),