Add factories for Ext tls parameters
[dcaegen2/platform.git] / mod / bpgenerator / src / main / java / org / onap / blueprintgenerator / models / blueprint / ResourceConfig.java
index f1a9a17..13aa0d0 100644 (file)
@@ -1,7 +1,8 @@
-/**============LICENSE_START=======================================================
+/*============LICENSE_START=======================================================
  org.onap.dcae
  ================================================================================
  Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.
+ Copyright (c) 2020 Nokia. 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.
@@ -23,8 +24,6 @@ package org.onap.blueprintgenerator.models.blueprint;
 import java.util.LinkedHashMap;
 import java.util.TreeMap;
 
-import com.fasterxml.jackson.annotation.JsonInclude;
-
 import lombok.AllArgsConstructor;
 import lombok.Builder;
 import lombok.Getter;
@@ -91,11 +90,11 @@ public class ResourceConfig {
                TreeMap<String, GetInput> lim = new TreeMap<String, GetInput>();
 
                GetInput cpu = new GetInput();
-               cpu.setGet_input(name + "cpu_limit");
+               cpu.setBpInputName(name + "cpu_limit");
                lim.put("cpu", cpu);
 
                GetInput memL = new GetInput();
-               memL.setGet_input(name + "memory_limit");
+               memL.setBpInputName(name + "memory_limit");
                lim.put("memory", memL);
 
                retInputs.put(name + "cpu_limit", m);
@@ -107,11 +106,11 @@ public class ResourceConfig {
                TreeMap<String, GetInput> req = new TreeMap<String, GetInput>();
 
                GetInput cpuR = new GetInput();
-               cpuR.setGet_input(name + "cpu_request");
+               cpuR.setBpInputName(name + "cpu_request");
                req.put("cpu", cpuR);
 
                GetInput memR = new GetInput();
-               memR.setGet_input(name + "memory_request");
+               memR.setBpInputName(name + "memory_request");
                req.put("memory", memR);
 
                retInputs.put(name + "cpu_request", m);