4a393e1064224576f51ed9d7f0a0d93ce19dbb1d
[so.git] / adapters / mso-vfc-adapter / src / main / java / org / onap / so / adapters / vfc / model / VFCScaleData.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
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=========================================================
19  */
20
21 package org.onap.so.adapters.vfc.model;
22
23 import java.util.ArrayList;
24 import java.util.List;
25
26 /**
27  * Object totally matches required VFC input json format
28  * JsonUtil.marshal will convert this Object to string
29  *
30  * added on 2018/01/30 by Qihui Zhao from CMCC*/
31
32 public class VFCScaleData {
33
34     private String nsInstanceId;
35
36     private String scaleType;
37
38     private List<ScaleNsData> scaleNsData = new ArrayList<>();
39
40     /**
41      * @return Returns the nsInstanceId.
42      */
43     public String getNsInstanceId() {
44         return nsInstanceId;
45     }
46
47     /**
48      * @param nsInstanceId The nsInstanceId to set.
49      */
50     public void setNsInstanceId(String nsInstanceId) {
51         this.nsInstanceId = nsInstanceId;
52     }
53
54     /**
55      * @return Returns the scale Type.
56      */
57     public String getScaleType() {
58         return scaleType;
59     }
60
61     /**
62      * @param scaleType The scaleType to set.
63      */
64     public void setScaleType(String scaleType) {
65         this.scaleType = scaleType;
66     }
67
68     /**
69      *@return Returns the scaleNsDate.
70      */
71     public List<ScaleNsData> getScaleNsData(){return scaleNsData;}
72
73     /**
74      * The scaleNsData to set.
75      */
76     public void setScaleNsData(List<ScaleNsByStepsData> scaleNsByStepsData){
77         ScaleNsData scaleNsDataObj = new ScaleNsData();
78         scaleNsDataObj.setScaleNsByStepsData(scaleNsByStepsData);
79
80         this.scaleNsData.add(scaleNsDataObj);
81     }
82 }