1 package org.onap.ccsdk.dashboard.model.deploymenthandler;
3 import java.util.Collection;
4 import java.util.Optional;
6 import com.fasterxml.jackson.annotation.JsonCreator;
7 import com.fasterxml.jackson.annotation.JsonProperty;
9 public class DeploymentErrorResponse {
11 /** HTTP status code for the response */
12 private final int status;
14 /** Human-readable description of the reason for the error */
15 private final String message;
17 /** exception stack trace */
18 private final Optional<Collection<String>> stack;
21 public DeploymentErrorResponse(@JsonProperty("status") int status,
22 @JsonProperty("message") String message,
23 @JsonProperty("stack") Optional<Collection<String>> stack) {
25 this.message = message;
29 public int getStatus() {
33 public String getMessage() {
37 public Optional<Collection<String>> getStack() {