2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
20 package org.onap.so.apihandlerinfra.workflowspecificationbeans;
22 import java.util.List;
23 import com.fasterxml.jackson.annotation.JsonInclude;
24 import com.fasterxml.jackson.annotation.JsonProperty;
25 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
27 @JsonInclude(JsonInclude.Include.NON_NULL)
31 "workflowInputParameters"
33 public class WorkflowSpecification {
35 @JsonProperty("artifactInfo")
36 private ArtifactInfo artifactInfo;
37 @JsonProperty("activitySequence")
38 private List<ActivitySequence> activitySequence = null;
39 @JsonProperty("workflowInputParameters")
40 private List<WorkflowInputParameter> workflowInputParameters = null;
43 * No args constructor for use in serialization
46 public WorkflowSpecification() {
51 * @param activitySequence
53 * @param workflowInputParameters
55 public WorkflowSpecification(ArtifactInfo artifactInfo, List<ActivitySequence> activitySequence, List<WorkflowInputParameter> workflowInputParameters) {
57 this.artifactInfo = artifactInfo;
58 this.activitySequence = activitySequence;
59 this.workflowInputParameters = workflowInputParameters;
62 @JsonProperty("artifactInfo")
63 public ArtifactInfo getArtifactInfo() {
67 @JsonProperty("artifactInfo")
68 public void setArtifactInfo(ArtifactInfo artifactInfo) {
69 this.artifactInfo = artifactInfo;
72 public WorkflowSpecification withArtifactInfo(ArtifactInfo artifactInfo) {
73 this.artifactInfo = artifactInfo;
77 @JsonProperty("activitySequence")
78 public List<ActivitySequence> getActivitySequence() {
79 return activitySequence;
82 @JsonProperty("activitySequence")
83 public void setActivitySequence(List<ActivitySequence> activitySequence) {
84 this.activitySequence = activitySequence;
87 public WorkflowSpecification withActivitySequence(List<ActivitySequence> activitySequence) {
88 this.activitySequence = activitySequence;
92 @JsonProperty("workflowInputParameters")
93 public List<WorkflowInputParameter> getWorkflowInputParameters() {
94 return workflowInputParameters;
97 @JsonProperty("workflowInputParameters")
98 public void setWorkflowInputParameters(List<WorkflowInputParameter> workflowInputParameters) {
99 this.workflowInputParameters = workflowInputParameters;
102 public WorkflowSpecification withWorkflowInputParameters(List<WorkflowInputParameter> workflowInputParameters) {
103 this.workflowInputParameters = workflowInputParameters;