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;
23 import com.fasterxml.jackson.annotation.JsonProperty;
24 import org.onap.vid.job.JobAdapter;
25 import org.onap.vid.mso.model.ModelInfo;
27 import java.util.List;
30 public class Network extends BaseResource implements JobAdapter.AsyncJobRequest {
32 private final String productFamilyId;
34 private final String platformName;
36 private final String lineOfBusiness;
38 public Network(@JsonProperty("modelInfo") ModelInfo modelInfo,
39 @JsonProperty("productFamilyId") String productFamilyId,
40 @JsonProperty("instanceName") String instanceName,
41 @JsonProperty("action") String action,
42 @JsonProperty("platformName") String platformName,
43 @JsonProperty("lcpCloudRegionId") String lcpCloudRegionId,
44 @JsonProperty("legacyRegion") String legacyRegion,
45 @JsonProperty("tenantId") String tenantId,
46 @JsonProperty("instanceParams") List<Map<String, String>> instanceParams,
47 @JsonProperty("lineOfBusinessName") String lineOfBusiness,
48 @JsonProperty("rollbackOnFailure") boolean rollbackOnFailure,
49 @JsonProperty("instanceId") String instanceId) {
51 super(modelInfo, instanceName, action, lcpCloudRegionId, legacyRegion, tenantId, instanceParams, rollbackOnFailure, instanceId);
52 this.productFamilyId = productFamilyId;
53 this.platformName = platformName;
54 this.lineOfBusiness = lineOfBusiness;
57 public String getProductFamilyId() {
58 return productFamilyId;
61 public String getPlatformName() {
65 public String getLineOfBusiness() {
66 return lineOfBusiness;
70 protected String getModelType() {