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.openstack.beans;
24 import java.util.HashMap;
28 * This Java bean class relays Heat stack status information to ActiveVOS processes.
30 * This bean is returned by all Heat-specific adapter operations (create, query, delete)
33 public class StackInfo {
34 // Set defaults for everything
35 private String name = "";
36 private String canonicalName = "";
37 private HeatStatus status = HeatStatus.UNKNOWN;
38 private String statusMessage = "";
39 private Map<String,Object> outputs = new HashMap<>();
40 private Map<String,Object> parameters = new HashMap<>();
45 public StackInfo (String name, HeatStatus status, String statusMessage, Map<String,Object> outputs) {
47 this.canonicalName = name; // Don't have an ID, so just use name
50 if (statusMessage != null) this.statusMessage = statusMessage;
51 if (outputs != null) this.outputs = outputs;
54 public StackInfo (String name, HeatStatus status) {
56 this.canonicalName = name; // Don't have an ID, so just use name
60 public String getName() {
64 public void setName (String name) {
68 public String getCanonicalName() {
72 public void setCanonicalName (String name) {
73 this.canonicalName = name;
76 public HeatStatus getStatus() {
80 public void setStatus (HeatStatus status) {
84 public String getStatusMessage() {
88 public void setStatusMessage (String statusMessage) {
89 this.statusMessage = statusMessage;
92 public Map<String,Object> getOutputs () {
96 public void setOutputs (Map<String,Object> outputs) {
97 this.outputs = outputs;
100 public Map<String,Object> getParameters () {
104 public void setParameters (Map<String,Object> parameters) {
105 this.parameters = parameters;