2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2018 CMCC Technologies Co., Ltd. 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.adapters.vfc.model;
23 import java.util.ArrayList;
24 import java.util.List;
27 * Object totally matches required VFC input json format
28 * JsonUtil.marshal will convert this Object to string
30 * added on 2018/01/30 by Qihui Zhao from CMCC*/
32 public class VFCScaleData {
34 private String nsInstanceId;
36 private String scaleType;
38 private List<ScaleNsData> scaleNsData = new ArrayList<>();
41 * @return Returns the nsInstanceId.
43 public String getNsInstanceId() {
48 * @param nsInstanceId The nsInstanceId to set.
50 public void setNsInstanceId(String nsInstanceId) {
51 this.nsInstanceId = nsInstanceId;
55 * @return Returns the scale Type.
57 public String getScaleType() {
62 * @param scaleType The scaleType to set.
64 public void setScaleType(String scaleType) {
65 this.scaleType = scaleType;
69 *@return Returns the scaleNsDate.
71 public List<ScaleNsData> getScaleNsData(){return scaleNsData;}
74 * The scaleNsData to set.
76 public void setScaleNsData(List<ScaleNsByStepsData> scaleNsByStepsData){
77 ScaleNsData scaleNsDataObj = new ScaleNsData();
78 scaleNsDataObj.setScaleNsByStepsData(scaleNsByStepsData);
80 this.scaleNsData.add(scaleNsDataObj);