2 * ============LICENSE_START=======================================================
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
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.vdu;
24 import java.util.HashMap;
27 * This Java bean class relays VDU status information in a cloud-agnostic format.
29 * This bean is returned by all implementors of the VduPlugin interface operations (instantiate, query, delete).
32 public class VduInstance {
33 // Set defaults for everything
34 protected String vduInstanceId;
35 protected String vduInstanceName;
36 protected VduStatus status;
37 protected Map<String, Object> outputs = new HashMap<>();
38 protected Map<String, Object> inputs = new HashMap<>();
40 public String getVduInstanceId() {
44 public void setVduInstanceId(String vduInstanceId) {
45 this.vduInstanceId = vduInstanceId;
48 public String getVduInstanceName() {
49 return vduInstanceName;
52 public void setVduInstanceName(String vduInstanceName) {
53 this.vduInstanceName = vduInstanceName;
56 public VduStatus getStatus() {
60 public void setStatus(VduStatus status) {
64 public Map<String, Object> getOutputs() {
68 public void setOutputs(Map<String, Object> outputs) {
69 this.outputs = outputs;
72 public Map<String, Object> getInputs() {
76 public void setInputs(Map<String, Object> inputs) {