/*- * ============LICENSE_START======================================================= * ONAP - SO * ================================================================================ * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved. * ================================================================================ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * ============LICENSE_END========================================================= */ package org.onap.so.rest.catalog.beans; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; import java.util.List; import com.fasterxml.jackson.annotation.JsonFormat; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonInclude.Include; @JsonInclude(Include.NON_DEFAULT) public class Service implements Serializable { private static final long serialVersionUID = 768026109321305392L; private String modelName; private String description; private String modelVersionId; private String modelInvariantId; @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS") private Date created; private String modelVersion; private String serviceType; private String serviceRole; private String environmentContext; private String workloadContext; private String category; private String distrobutionStatus; private List vnf = new ArrayList<>(); public List getVnf() { return vnf; } public void setVnf(List vnf) { this.vnf = vnf; } public String getModelName() { return modelName; } public void setModelName(String modelName) { this.modelName = modelName; } public String getDescription() { return description; } public void setDescription(String description) { this.description = description; } public String getModelVersionId() { return modelVersionId; } public void setModelVersionId(String modelVersionId) { this.modelVersionId = modelVersionId; } public String getModelInvariantId() { return modelInvariantId; } public void setModelInvariantId(String modelInvariantId) { this.modelInvariantId = modelInvariantId; } public Date getCreated() { return created; } public void setCreated(Date created) { this.created = created; } public String getModelVersion() { return modelVersion; } public void setModelVersion(String modelVersion) { this.modelVersion = modelVersion; } public String getServiceType() { return serviceType; } public void setServiceType(String serviceType) { this.serviceType = serviceType; } public String getServiceRole() { return serviceRole; } public void setServiceRole(String serviceRole) { this.serviceRole = serviceRole; } public String getEnvironmentContext() { return environmentContext; } public void setEnvironmentContext(String environmentContext) { this.environmentContext = environmentContext; } public String getWorkloadContext() { return workloadContext; } public void setWorkloadContext(String workloadContext) { this.workloadContext = workloadContext; } public String getCategory() { return category; } public void setCategory(String category) { this.category = category; } public String getDistrobutionStatus() { return distrobutionStatus; } public void setDistrobutionStatus(String distrobutionStatus) { this.distrobutionStatus = distrobutionStatus; } }