2 * ============LICENSE_START=======================================================
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
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=========================================================
21 package org.onap.so.rest.catalog.beans;
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;
31 @JsonInclude(Include.NON_DEFAULT)
32 public class Service implements Serializable {
34 private static final long serialVersionUID = 768026109321305392L;
36 private String modelName;
38 private String description;
40 private String modelVersionId;
42 private String modelInvariantId;
44 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS")
47 private String modelVersion;
49 private String serviceType;
51 private String serviceRole;
53 private String environmentContext;
55 private String workloadContext;
57 private String category;
59 private String distrobutionStatus;
61 private List<Vnf> vnf = new ArrayList<>();
63 public List<Vnf> getVnf() {
67 public void setVnf(List<Vnf> vnf) {
71 public String getModelName() {
75 public void setModelName(String modelName) {
76 this.modelName = modelName;
79 public String getDescription() {
83 public void setDescription(String description) {
84 this.description = description;
87 public String getModelVersionId() {
88 return modelVersionId;
91 public void setModelVersionId(String modelVersionId) {
92 this.modelVersionId = modelVersionId;
95 public String getModelInvariantId() {
96 return modelInvariantId;
99 public void setModelInvariantId(String modelInvariantId) {
100 this.modelInvariantId = modelInvariantId;
103 public Date getCreated() {
107 public void setCreated(Date created) {
108 this.created = created;
111 public String getModelVersion() {
115 public void setModelVersion(String modelVersion) {
116 this.modelVersion = modelVersion;
119 public String getServiceType() {
123 public void setServiceType(String serviceType) {
124 this.serviceType = serviceType;
127 public String getServiceRole() {
131 public void setServiceRole(String serviceRole) {
132 this.serviceRole = serviceRole;
135 public String getEnvironmentContext() {
136 return environmentContext;
139 public void setEnvironmentContext(String environmentContext) {
140 this.environmentContext = environmentContext;
143 public String getWorkloadContext() {
144 return workloadContext;
147 public void setWorkloadContext(String workloadContext) {
148 this.workloadContext = workloadContext;
151 public String getCategory() {
155 public void setCategory(String category) {
156 this.category = category;
159 public String getDistrobutionStatus() {
160 return distrobutionStatus;
163 public void setDistrobutionStatus(String distrobutionStatus) {
164 this.distrobutionStatus = distrobutionStatus;