Replaced all tabs with spaces in java and pom.xml
[so.git] / adapters / mso-adapter-utils / src / main / java / org / onap / so / cloudify / beans / DeploymentInfo.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP - SO
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
12  *
13  *      http://www.apache.org/licenses/LICENSE-2.0
14  *
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=========================================================
21  */
22
23 package org.onap.so.cloudify.beans;
24
25 import java.util.Map;
26
27 /*
28  * This Java bean class relays Heat stack status information to ActiveVOS processes.
29  *
30  * This bean is returned by all Heat-specific adapter operations (create, query, delete)
31  */
32
33 public final class DeploymentInfo {
34
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;
42
43     DeploymentInfo(String id, DeploymentStatus deploymentStatus, Map<String, Object> deploymentOutputs,
44             Map<String, Object> deploymentInputs, String lastAction, String actionStatus, String errorMessage) {
45
46         this.id = id;
47         this.status = deploymentStatus;
48         this.outputs = deploymentOutputs;
49         this.inputs = deploymentInputs;
50         this.lastAction = lastAction;
51         this.actionStatus = actionStatus;
52         this.errorMessage = errorMessage;
53     }
54
55     public String getId() {
56         return id;
57     }
58
59     public DeploymentStatus getStatus() {
60         return status;
61     }
62
63     public Map<String, Object> getOutputs() {
64         return outputs;
65     }
66
67     public Map<String, Object> getInputs() {
68         return inputs;
69     }
70
71     public String getLastAction() {
72         return lastAction;
73     }
74
75     public String getActionStatus() {
76         return actionStatus;
77     }
78
79     public String getErrorMessage() {
80         return errorMessage;
81     }
82
83     @Override
84     public String toString() {
85         return "DeploymentInfo {" + "id='" + id + '\'' + ", inputs='" + inputs + '\'' + ", outputs='" + outputs + '\''
86                 + ", lastAction='" + lastAction + '\'' + ", status='" + status + '\'' + ", errorMessage='"
87                 + errorMessage + '\'' + '}';
88     }
89
90 }
91