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