2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright (C) 2017 Huawei Technologies Co., Ltd. All rights reserved.
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
20 package org.openecomp.mso.requestsdb;
\r
23 * The Resource operation status
\r
29 * @version ONAP Amsterdam Release 2017-08-28
\r
31 public class ResourceOperationStatus {
\r
33 private String serviceId;
\r
35 private String operationId;
\r
37 private String resourceTemplateUUID;
\r
39 private String operType;
\r
41 private String resourceInstanceID;
\r
43 private String jobId;
\r
45 private String status;
\r
47 private String progress = "0";
\r
49 private String errorCode;
\r
51 private String statusDescription;
\r
53 public ResourceOperationStatus(){
\r
57 public ResourceOperationStatus(String serviceId, String operationId, String resourceTemplateUUID)
\r
59 this.serviceId = serviceId;
\r
60 this.operationId = operationId;
\r
61 this.resourceTemplateUUID = resourceTemplateUUID;
\r
64 public String getServiceId() {
\r
69 public void setServiceId(String serviceId) {
\r
70 this.serviceId = serviceId;
\r
74 public String getOperationId() {
\r
79 public void setOperationId(String operationId) {
\r
80 this.operationId = operationId;
\r
84 public String getResourceTemplateUUID() {
\r
85 return resourceTemplateUUID;
\r
89 public void setResourceTemplateUUID(String resourceTemplateUUId) {
\r
90 this.resourceTemplateUUID = resourceTemplateUUId;
\r
94 public String getJobId() {
\r
99 public void setJobId(String jobId) {
\r
100 this.jobId = jobId;
\r
104 public String getStatus() {
\r
109 public void setStatus(String status) {
\r
110 this.status = status;
\r
114 public String getProgress() {
\r
119 public void setProgress(String progress) {
\r
120 this.progress = progress;
\r
124 public String getErrorCode() {
\r
129 public void setErrorCode(String errorCode) {
\r
130 this.errorCode = errorCode;
\r
134 public String getStatusDescription() {
\r
135 return statusDescription;
\r
139 public void setStatusDescription(String statusDescription) {
\r
140 this.statusDescription = statusDescription;
\r
145 public String getResourceInstanceID() {
\r
146 return resourceInstanceID;
\r
151 public void setResourceInstanceID(String resourceInstanceID) {
\r
152 this.resourceInstanceID = resourceInstanceID;
\r
156 public String getOperType() {
\r
161 public void setOperType(String operType) {
\r
162 this.operType = operType;
\r