diff options
Diffstat (limited to 'so-cnf-adapter-application/src/main/java/org/onap/so/adapters/cnf/model/statuscheck/StatusCheckResponse.java')
-rw-r--r-- | so-cnf-adapter-application/src/main/java/org/onap/so/adapters/cnf/model/statuscheck/StatusCheckResponse.java | 43 |
1 files changed, 26 insertions, 17 deletions
diff --git a/so-cnf-adapter-application/src/main/java/org/onap/so/adapters/cnf/model/statuscheck/StatusCheckResponse.java b/so-cnf-adapter-application/src/main/java/org/onap/so/adapters/cnf/model/statuscheck/StatusCheckResponse.java index 33f1847..f1eada3 100644 --- a/so-cnf-adapter-application/src/main/java/org/onap/so/adapters/cnf/model/statuscheck/StatusCheckResponse.java +++ b/so-cnf-adapter-application/src/main/java/org/onap/so/adapters/cnf/model/statuscheck/StatusCheckResponse.java @@ -1,3 +1,24 @@ +/*- + * ============LICENSE_START======================================================= + * ONAP - SO + * ================================================================================ + * Copyright (C) 2021 Samsung Electronics Co. Ltd. All rights reserved. + * Modifications Copyright (C) 2021 Orange. + * ================================================================================ + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ + package org.onap.so.adapters.cnf.model.statuscheck; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; @@ -11,32 +32,20 @@ import java.util.List; public class StatusCheckResponse { @JsonProperty("result") - private List<StatusCheckInstanceResponse> instanceResponse; - - @JsonProperty("error") - private String errorMessage; + private List<StatusCheckInstanceResponse> result; public List<StatusCheckInstanceResponse> getInstanceResponse() { - return instanceResponse; - } - - public void setInstanceResponse(List<StatusCheckInstanceResponse> instanceResponse) { - this.instanceResponse = instanceResponse; - } - - public String getErrorMessage() { - return errorMessage; + return result; } - public void setErrorMessage(String errorMessage) { - this.errorMessage = errorMessage; + public void setInstanceResponse(List<StatusCheckInstanceResponse> result) { + this.result = result; } @Override public String toString() { return "StatusCheckResponse{" + - "instanceResponse=" + instanceResponse + - ", errorMessage='" + errorMessage + '\'' + + "result=" + result + '}'; } } |