594b43e07d3be0bbf07c94c44baaa363a5f774e3
[so.git] / mso-api-handlers / mso-api-handler-infra / src / main / java / org / onap / so / apihandlerinfra / workflowspecificationbeans / ActivitySequence.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 com.fasterxml.jackson.annotation.JsonInclude;
23 import com.fasterxml.jackson.annotation.JsonProperty;
24 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
25
26 @JsonInclude(JsonInclude.Include.NON_NULL)
27 @JsonPropertyOrder({
28     "name",
29     "description"
30 })
31 public class ActivitySequence {
32
33     @JsonProperty("name")
34     private String name;
35     @JsonProperty("description")
36     private String description;
37
38     /**
39      * No args constructor for use in serialization
40      * 
41      */
42     public ActivitySequence() {
43     }
44
45     /**
46      * 
47      * @param description
48      * @param name
49      */
50     public ActivitySequence(String name, String description) {
51         super();
52         this.name = name;
53         this.description = description;
54     }
55
56     @JsonProperty("name")
57     public String getName() {
58         return name;
59     }
60
61     @JsonProperty("name")
62     public void setName(String name) {
63         this.name = name;
64     }
65
66     public ActivitySequence withName(String name) {
67         this.name = name;
68         return this;
69     }
70
71     @JsonProperty("description")
72     public String getDescription() {
73         return description;
74     }
75
76     @JsonProperty("description")
77     public void setDescription(String description) {
78         this.description = description;
79     }
80
81     public ActivitySequence withDescription(String description) {
82         this.description = description;
83         return this;
84     }
85
86 }