1 package org.onap.sdc.dcae.errormng;
3 import com.fasterxml.jackson.annotation.JsonIgnore;
4 import com.fasterxml.jackson.annotation.JsonInclude;
8 @JsonInclude(JsonInclude.Include.NON_NULL)
9 public class ResponseFormat {
13 private RequestError requestError;
14 private String notes = "";
16 public String getNotes() {
20 void setNotes(String notes) {
24 public ResponseFormat() {
28 public ResponseFormat(int status) {
34 public void setStatus(int status) {
38 public Integer getStatus() {
42 public RequestError getRequestError() {
46 public void setRequestError(RequestError requestError) {
47 this.requestError = requestError;
50 void setPolicyException(PolicyException policyException) {
51 this.requestError = new RequestError();
52 requestError.setPolicyException(policyException);
55 void setServiceException(ServiceException serviceException) {
56 this.requestError = new RequestError();
57 requestError.setServiceException(serviceException);
60 void setOkResponseInfo(OkResponseInfo okResponseInfo) {
61 this.requestError = new RequestError();
62 requestError.setOkResponseInfo(okResponseInfo);
65 void setServiceExceptions(List<ServiceException> serviceExceptions) {
66 this.requestError = new RequestError();
67 requestError.setServiceExceptions(serviceExceptions);
71 public String toString() {
72 return "ResponseFormat[" + "status=" + status + ", requestError=" + requestError + ']';