2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Copyright (C) 2018 Nokia.
8 * ================================================================================
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
20 * ============LICENSE_END=========================================================
23 package org.onap.so.cloudify.beans;
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 final class DeploymentInfo {
35 private final String id;
36 private final DeploymentStatus status;
37 private final Map<String, Object> outputs;
38 private final Map<String, Object> inputs;
39 private final String lastAction;
40 private final String actionStatus;
41 private final String errorMessage;
43 DeploymentInfo(String id, DeploymentStatus deploymentStatus, Map<String, Object> deploymentOutputs,
44 Map<String, Object> deploymentInputs, String lastAction, String actionStatus, String errorMessage) {
47 this.status = deploymentStatus;
48 this.outputs = deploymentOutputs;
49 this.inputs = deploymentInputs;
50 this.lastAction = lastAction;
51 this.actionStatus = actionStatus;
52 this.errorMessage = errorMessage;
55 public String getId() {
59 public DeploymentStatus getStatus() {
63 public Map<String, Object> getOutputs() {
67 public Map<String, Object> getInputs() {
71 public String getLastAction() {
75 public String getActionStatus() {
79 public String getErrorMessage() {
84 public String toString() {
85 return "DeploymentInfo {" + "id='" + id + '\'' + ", inputs='" + inputs + '\'' + ", outputs='" + outputs + '\''
86 + ", lastAction='" + lastAction + '\'' + ", status='" + status + '\'' + ", errorMessage='"
87 + errorMessage + '\'' + '}';