Add Model Version Query
[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.JsonInclude;
28 import com.fasterxml.jackson.annotation.JsonInclude.Include;
29
30 @JsonInclude(Include.NON_DEFAULT)
31 public class Service implements Serializable {
32
33     private static final long serialVersionUID = 768026109321305392L;
34
35     private String modelName;
36
37     private String description;
38
39     private String modelVersionId;
40
41     private String modelInvariantId;
42
43     private Date created;
44
45     private String modelVersion;
46
47     private String serviceType;
48
49     private String serviceRole;
50
51     private String environmentContext;
52
53     private String workloadContext;
54
55     private String category;
56
57     private String distrobutionStatus;
58
59     private List<Vnf> vnf = new ArrayList<>();
60
61     public List<Vnf> getVnf() {
62         return vnf;
63     }
64
65     public void setVnf(List<Vnf> vnf) {
66         this.vnf = vnf;
67     }
68
69     public String getModelName() {
70         return modelName;
71     }
72
73     public void setModelName(String modelName) {
74         this.modelName = modelName;
75     }
76
77     public String getDescription() {
78         return description;
79     }
80
81     public void setDescription(String description) {
82         this.description = description;
83     }
84
85     public String getModelVersionId() {
86         return modelVersionId;
87     }
88
89     public void setModelVersionId(String modelVersionId) {
90         this.modelVersionId = modelVersionId;
91     }
92
93     public String getModelInvariantId() {
94         return modelInvariantId;
95     }
96
97     public void setModelInvariantId(String modelInvariantId) {
98         this.modelInvariantId = modelInvariantId;
99     }
100
101     public Date getCreated() {
102         return created;
103     }
104
105     public void setCreated(Date created) {
106         this.created = created;
107     }
108
109     public String getModelVersion() {
110         return modelVersion;
111     }
112
113     public void setModelVersion(String modelVersion) {
114         this.modelVersion = modelVersion;
115     }
116
117     public String getServiceType() {
118         return serviceType;
119     }
120
121     public void setServiceType(String serviceType) {
122         this.serviceType = serviceType;
123     }
124
125     public String getServiceRole() {
126         return serviceRole;
127     }
128
129     public void setServiceRole(String serviceRole) {
130         this.serviceRole = serviceRole;
131     }
132
133     public String getEnvironmentContext() {
134         return environmentContext;
135     }
136
137     public void setEnvironmentContext(String environmentContext) {
138         this.environmentContext = environmentContext;
139     }
140
141     public String getWorkloadContext() {
142         return workloadContext;
143     }
144
145     public void setWorkloadContext(String workloadContext) {
146         this.workloadContext = workloadContext;
147     }
148
149     public String getCategory() {
150         return category;
151     }
152
153     public void setCategory(String category) {
154         this.category = category;
155     }
156
157     public String getDistrobutionStatus() {
158         return distrobutionStatus;
159     }
160
161     public void setDistrobutionStatus(String distrobutionStatus) {
162         this.distrobutionStatus = distrobutionStatus;
163     }
164
165 }