Implant vid-app-common org.onap.vid.job (main and test)
[vid.git] / vid-app-common / src / main / java / org / onap / vid / model / aaiTree / AbstractNode.java
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.model.aaiTree;
22
23 import org.onap.vid.model.Action;
24 import org.onap.vid.mso.model.ModelInfo;
25
26 public abstract class AbstractNode {
27
28     protected final Action action;
29     protected String instanceName;
30     protected String instanceId;
31     protected String orchStatus;
32     protected String productFamilyId;
33     protected String lcpCloudRegionId;
34     protected String tenantId;
35     protected String cloudOwner;
36     protected ModelInfo modelInfo;
37
38     public AbstractNode() {
39         this.action = Action.None;
40     }
41
42     public final Action getAction() {
43         return action;
44     }
45
46     public final String getInstanceName() {
47         return instanceName;
48     }
49
50     public final String getInstanceId() {
51         return instanceId;
52     }
53
54     public final String getOrchStatus() {
55         return orchStatus;
56     }
57
58     public final String getProductFamilyId() {
59         return productFamilyId;
60     }
61
62     public final String getLcpCloudRegionId() {
63         return lcpCloudRegionId;
64     }
65
66     public final String getTenantId() {
67         return tenantId;
68     }
69
70     public final ModelInfo getModelInfo() {
71         return modelInfo;
72     }
73
74     public String getCloudOwner() {
75         return cloudOwner;
76     }
77 }