Return a value from MsoInterface::setServiceInstanceStatus
[vid.git] / vid-app-common / src / main / java / org / onap / vid / mso / rest / Task.kt
1 /*-
2  * ============LICENSE_START=======================================================
3  * VID
4  * ================================================================================
5  * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.vid.mso.rest
22
23 data class Task(
24         var taskId: String?,
25         var type: String?,
26         var nfRole: String?,
27         var subscriptionServiceType: String?,
28         var originalRequestId: String?,
29         var originalRequestorId: String?,
30         var errorSource: String?,
31         var errorCode: String?,
32         var errorMessage: String?,
33         var buildingBlockName: String?,
34         var buildingBlockStep: String?,
35         var description: String?,
36         var timeout: String?,
37         var validResponses: List<String>?
38 ) {
39     // i.e. "default constructor", no params
40     constructor() : this(
41             null, null, null, null,
42             null, null, null, null,
43             null, null, null,
44             null, null, null
45     )
46 }