8f5f0f97459b4e76dfa7eee835c0f37ae143001e
[so.git] / adapters / mso-adapters-rest-interface / src / main / java / org / onap / so / adapters / vdu / VduInstance.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * OPENECOMP - MSO
4  * ================================================================================
5  * Copyright (C) 2017 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
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.vdu;
22
23 import java.util.Map;
24 import java.util.HashMap;
25
26 /*
27  * This Java bean class relays VDU status information in a cloud-agnostic format.
28  * 
29  * This bean is returned by all implementors of the VduPlugin interface operations
30  * (instantiate, query, delete).
31  */
32
33 public class VduInstance {
34         // Set defaults for everything
35         protected String vduInstanceId;
36         protected String vduInstanceName;
37         protected VduStatus status;
38         protected Map<String, Object> outputs = new HashMap<>();
39         protected Map<String, Object> inputs = new HashMap<>();
40
41         public String getVduInstanceId() {
42                 return vduInstanceId;
43         }
44
45         public void setVduInstanceId(String vduInstanceId) {
46                 this.vduInstanceId = vduInstanceId;
47         }
48
49         public String getVduInstanceName() {
50                 return vduInstanceName;
51         }
52
53         public void setVduInstanceName(String vduInstanceName) {
54                 this.vduInstanceName = vduInstanceName;
55         }
56
57         public VduStatus getStatus() {
58                 return status;
59         }
60
61         public void setStatus(VduStatus status) {
62                 this.status = status;
63         }
64
65         public Map<String, Object> getOutputs() {
66                 return outputs;
67         }
68
69         public void setOutputs(Map<String, Object> outputs) {
70                 this.outputs = outputs;
71         }
72
73         public Map<String, Object> getInputs() {
74                 return inputs;
75         }
76
77         public void setInputs(Map<String, Object> inputs) {
78                 this.inputs = inputs;
79         }
80 }