06a516c6390ec8c2a65c226e358e2b72effdf85d
[ccsdk/dashboard.git] /
1 package org.onap.ccsdk.dashboard.model.deploymenthandler;
2
3 import java.util.Collection;
4 import java.util.Optional;
5
6 import com.fasterxml.jackson.annotation.JsonCreator;
7 import com.fasterxml.jackson.annotation.JsonProperty;
8
9 public class DeploymentErrorResponse {
10
11         /** HTTP status code for the response */
12         private final int status;
13
14         /** Human-readable description of the reason for the error */ 
15         private final String message;
16         
17         /** exception stack trace */
18         private final Optional<Collection<String>> stack;
19         
20         @JsonCreator
21         public DeploymentErrorResponse(@JsonProperty("status") int status, 
22                         @JsonProperty("message") String message,
23                         @JsonProperty("stack") Optional<Collection<String>> stack) {
24                 this.status = status;
25                 this.message = message;
26                 this.stack = stack;
27         }
28         
29         public int getStatus() {
30                 return status;
31         }
32
33         public String getMessage() {
34                 return message;
35         }
36
37         public Optional<Collection<String>> getStack() {
38                 return stack;
39         }
40 }