2 * ============LICENSE_START==============================================
3 * Copyright (c) 2019 AT&T Intellectual Property.
4 * =======================================================================
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may
6 * not use this file except in compliance with the License. You may obtain a
7 * copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
14 * or implied. See the License for the specific language governing
15 * permissions and limitations under the License.
16 * ============LICENSE_END=================================================
19 package org.onap.optf.cmso.optimizer.clients.optimizer.models;
21 public class OptimizerEngineResponse
24 public enum OptimizerEngineResponseStatus {
25 IN_PROGRESS, COMPLETED, FAILED, IN_QUEUE,
28 private String requestId;
29 private OptimizerResults optimizerResults;
30 private OptimizerEngineResponseStatus status;
31 private Integer pollingSeconds;
32 private String errorMessage;
33 public String getRequestId() {
36 public void setRequestId(String requestId) {
37 this.requestId = requestId;
39 public OptimizerResults getOptimizerResults() {
40 return optimizerResults;
42 public void setOptimizerResults(OptimizerResults oprimizerResults) {
43 this.optimizerResults = oprimizerResults;
45 public OptimizerEngineResponseStatus getStatus() {
48 public void setStatus(OptimizerEngineResponseStatus status) {
51 public Integer getPollingSeconds() {
52 return pollingSeconds;
54 public void setPollingSeconds(Integer pollingSeconds) {
55 this.pollingSeconds = pollingSeconds;
57 public String getErrorMessage() {
60 public void setErrorMessage(String errorMessage) {
61 this.errorMessage = errorMessage;