Merge "add junit coverage for SvnfmService"
[so.git] / mso-catalog-db / src / main / java / org / onap / so / rest / catalog / beans / Service.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
4  * ================================================================================
5  * Copyright (C) 2017 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
21 package org.onap.so.rest.catalog.beans;
22
23 import java.io.Serializable;
24 import java.util.ArrayList;
25 import java.util.Date;
26 import java.util.List;
27 import com.fasterxml.jackson.annotation.JsonFormat;
28 import com.fasterxml.jackson.annotation.JsonInclude;
29 import com.fasterxml.jackson.annotation.JsonInclude.Include;
30
31 @JsonInclude(Include.NON_DEFAULT)
32 public class Service implements Serializable {
33
34     private static final long serialVersionUID = 768026109321305392L;
35
36     private String modelName;
37
38     private String description;
39
40     private String modelVersionId;
41
42     private String modelInvariantId;
43
44     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")
45     private Date created;
46
47     private String modelVersion;
48
49     private String serviceType;
50
51     private String serviceRole;
52
53     private String environmentContext;
54
55     private String workloadContext;
56
57     private String category;
58
59     private String distrobutionStatus;
60
61     private List<Vnf> vnf = new ArrayList<>();
62
63     public List<Vnf> getVnf() {
64         return vnf;
65     }
66
67     public void setVnf(List<Vnf> vnf) {
68         this.vnf = vnf;
69     }
70
71     public String getModelName() {
72         return modelName;
73     }
74
75     public void setModelName(String modelName) {
76         this.modelName = modelName;
77     }
78
79     public String getDescription() {
80         return description;
81     }
82
83     public void setDescription(String description) {
84         this.description = description;
85     }
86
87     public String getModelVersionId() {
88         return modelVersionId;
89     }
90
91     public void setModelVersionId(String modelVersionId) {
92         this.modelVersionId = modelVersionId;
93     }
94
95     public String getModelInvariantId() {
96         return modelInvariantId;
97     }
98
99     public void setModelInvariantId(String modelInvariantId) {
100         this.modelInvariantId = modelInvariantId;
101     }
102
103     public Date getCreated() {
104         return created;
105     }
106
107     public void setCreated(Date created) {
108         this.created = created;
109     }
110
111     public String getModelVersion() {
112         return modelVersion;
113     }
114
115     public void setModelVersion(String modelVersion) {
116         this.modelVersion = modelVersion;
117     }
118
119     public String getServiceType() {
120         return serviceType;
121     }
122
123     public void setServiceType(String serviceType) {
124         this.serviceType = serviceType;
125     }
126
127     public String getServiceRole() {
128         return serviceRole;
129     }
130
131     public void setServiceRole(String serviceRole) {
132         this.serviceRole = serviceRole;
133     }
134
135     public String getEnvironmentContext() {
136         return environmentContext;
137     }
138
139     public void setEnvironmentContext(String environmentContext) {
140         this.environmentContext = environmentContext;
141     }
142
143     public String getWorkloadContext() {
144         return workloadContext;
145     }
146
147     public void setWorkloadContext(String workloadContext) {
148         this.workloadContext = workloadContext;
149     }
150
151     public String getCategory() {
152         return category;
153     }
154
155     public void setCategory(String category) {
156         this.category = category;
157     }
158
159     public String getDistrobutionStatus() {
160         return distrobutionStatus;
161     }
162
163     public void setDistrobutionStatus(String distrobutionStatus) {
164         this.distrobutionStatus = distrobutionStatus;
165     }
166
167 }