Add WorkflowSpecification Beans for APIH
[so.git] / mso-api-handlers / mso-api-handler-infra / src / main / java / org / onap / so / apihandlerinfra / workflowspecificationbeans / WorkflowSpecification.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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=========================================================
19  */
20 package org.onap.so.apihandlerinfra.workflowspecificationbeans;
21
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;
26
27 @JsonInclude(JsonInclude.Include.NON_NULL)
28 @JsonPropertyOrder({
29     "artifactInfo",
30     "activitySequence",
31     "workflowInputParameters"
32 })
33 public class WorkflowSpecification {
34
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;
41
42     /**
43      * No args constructor for use in serialization
44      * 
45      */
46     public WorkflowSpecification() {
47     }
48
49     /**
50      * 
51      * @param activitySequence
52      * @param artifactInfo
53      * @param workflowInputParameters
54      */
55     public WorkflowSpecification(ArtifactInfo artifactInfo, List<ActivitySequence> activitySequence, List<WorkflowInputParameter> workflowInputParameters) {
56         super();
57         this.artifactInfo = artifactInfo;
58         this.activitySequence = activitySequence;
59         this.workflowInputParameters = workflowInputParameters;
60     }
61
62     @JsonProperty("artifactInfo")
63     public ArtifactInfo getArtifactInfo() {
64         return artifactInfo;
65     }
66
67     @JsonProperty("artifactInfo")
68     public void setArtifactInfo(ArtifactInfo artifactInfo) {
69         this.artifactInfo = artifactInfo;
70     }
71
72     public WorkflowSpecification withArtifactInfo(ArtifactInfo artifactInfo) {
73         this.artifactInfo = artifactInfo;
74         return this;
75     }
76
77     @JsonProperty("activitySequence")
78     public List<ActivitySequence> getActivitySequence() {
79         return activitySequence;
80     }
81
82     @JsonProperty("activitySequence")
83     public void setActivitySequence(List<ActivitySequence> activitySequence) {
84         this.activitySequence = activitySequence;
85     }
86
87     public WorkflowSpecification withActivitySequence(List<ActivitySequence> activitySequence) {
88         this.activitySequence = activitySequence;
89         return this;
90     }
91
92     @JsonProperty("workflowInputParameters")
93     public List<WorkflowInputParameter> getWorkflowInputParameters() {
94         return workflowInputParameters;
95     }
96
97     @JsonProperty("workflowInputParameters")
98     public void setWorkflowInputParameters(List<WorkflowInputParameter> workflowInputParameters) {
99         this.workflowInputParameters = workflowInputParameters;
100     }
101
102     public WorkflowSpecification withWorkflowInputParameters(List<WorkflowInputParameter> workflowInputParameters) {
103         this.workflowInputParameters = workflowInputParameters;
104         return this;
105     }
106
107 }