2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 - 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
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.vid.model.serviceInstantiation;
24 import com.fasterxml.jackson.annotation.JsonProperty;
25 import org.onap.vid.job.JobAdapter;
26 import org.onap.vid.mso.model.ModelInfo;
28 import java.util.List;
34 public class Vnf extends BaseResource implements JobAdapter.AsyncJobRequest {
36 private final String productFamilyId;
38 private final String platformName;
40 private final String lineOfBusiness;
42 private final Map<String, Map<String, VfModule>> vfModules;
44 public Vnf(@JsonProperty("modelInfo") ModelInfo modelInfo,
45 @JsonProperty("productFamilyId") String productFamilyId,
46 @JsonProperty("instanceName") String instanceName,
47 @JsonProperty("action") String action,
48 @JsonProperty("platformName") String platformName,
49 @JsonProperty("lcpCloudRegionId") String lcpCloudRegionId,
50 @JsonProperty("legacyRegion") String legacyRegion,
51 @JsonProperty("tenantId") String tenantId,
52 @JsonProperty("instanceParams") List<Map<String, String>> instanceParams,
53 @JsonProperty("lineOfBusinessName") String lineOfBusiness,
54 @JsonProperty("rollbackOnFailure") boolean rollbackOnFailure,
55 @JsonProperty("instanceId") String instanceId,
56 @JsonProperty("vfModules") Map<String, Map<String, VfModule>> vfModules) {
58 super(modelInfo, instanceName, action, lcpCloudRegionId, legacyRegion, tenantId, instanceParams, rollbackOnFailure, instanceId);
59 this.productFamilyId = productFamilyId;
60 this.platformName = platformName;
61 this.lineOfBusiness = lineOfBusiness;
62 this.vfModules = vfModules;
65 public String getProductFamilyId() {
66 return productFamilyId;
69 public String getPlatformName() {
73 public String getLineOfBusiness() {
74 return lineOfBusiness;
77 public Map<String, Map<String, VfModule>> getVfModules() {
82 protected String getModelType() {