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<>();
44 public StackInfo(String name, HeatStatus status, String statusMessage, Map<String, Object> outputs) {
46 this.canonicalName = name; // Don't have an ID, so just use name
49 if (statusMessage != null)
50 this.statusMessage = statusMessage;
52 this.outputs = outputs;
55 public StackInfo(String name, HeatStatus status) {
57 this.canonicalName = name; // Don't have an ID, so just use name
61 public String getName() {
65 public void setName(String name) {
69 public String getCanonicalName() {
73 public void setCanonicalName(String name) {
74 this.canonicalName = name;
77 public HeatStatus getStatus() {
81 public void setStatus(HeatStatus status) {
85 public String getStatusMessage() {
89 public void setStatusMessage(String statusMessage) {
90 this.statusMessage = statusMessage;
93 public Map<String, Object> getOutputs() {
97 public void setOutputs(Map<String, Object> outputs) {
98 this.outputs = outputs;
101 public Map<String, Object> getParameters() {
105 public void setParameters(Map<String, Object> parameters) {
106 this.parameters = parameters;