Implant vid-app-common org.onap.vid.job (main and test)
[vid.git] / vid-app-common / src / main / java / org / onap / vid / model / aaiTree / ServiceInstance.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 java.util.HashMap;
24 import java.util.Map;
25 import org.onap.vid.mso.model.ModelInfo;
26
27 public class ServiceInstance extends AbstractNode {
28
29     private String globalSubscriberId;
30     private String subscriptionServiceType;
31
32     private String owningEntityId;
33
34     private String owningEntityName;
35     private String tenantName;
36     private String aicZoneId;
37     private String aicZoneName;
38     private String projectName;
39
40     private String rollbackOnFailure;
41     private boolean isALaCarte;
42
43     private Map<String, Vnf> vnfs = new HashMap<>();
44     private Map<String, Network> networks = new HashMap<>();
45     private Map<String, Vrf> vrfs = new HashMap<>();
46
47
48     private Map<String, VnfGroup> vnfGroups = new HashMap<>();
49     private Map<String, CollectionResource> collectionResources = new HashMap<>();
50
51     private int validationCounter;
52     private Map<String, Long> existingVNFCounterMap;
53     private Map<String, Long> existingNetworksCounterMap;
54     private Map<String, Long> existingVnfGroupCounterMap;
55     private Map<String, Long> existingVRFCounterMap;
56
57     public void setInstanceName(String instanceName) {
58         this.instanceName = instanceName;
59     }
60
61     public void setInstanceId(String instanceId) {
62         this.instanceId = instanceId;
63     }
64
65     public void setOrchStatus(String orchStatus) {
66         this.orchStatus = orchStatus;
67     }
68
69     public String getGlobalSubscriberId() {
70         return globalSubscriberId;
71     }
72
73     public void setGlobalSubscriberId(String globalSubscriberId) {
74         this.globalSubscriberId = globalSubscriberId;
75     }
76
77     public String getSubscriptionServiceType() {
78         return subscriptionServiceType;
79     }
80
81     public void setSubscriptionServiceType(String subscriptionServiceType) {
82         this.subscriptionServiceType = subscriptionServiceType;
83     }
84
85     public String getOwningEntityId() {
86         return owningEntityId;
87     }
88
89     public void setOwningEntityId(String owningEntityId) {
90         this.owningEntityId = owningEntityId;
91     }
92
93     public String getOwningEntityName() {
94         return owningEntityName;
95     }
96
97     public void setOwningEntityName(String owningEntityName) {
98         this.owningEntityName = owningEntityName;
99     }
100
101     public void setProductFamilyId(String productFamilyId) {
102         this.productFamilyId = productFamilyId;
103     }
104
105     public void setLcpCloudRegionId(String lcpCloudRegionId) {
106         this.lcpCloudRegionId = lcpCloudRegionId;
107     }
108
109     public void setTenantId(String tenantId) {
110         this.tenantId = tenantId;
111     }
112
113     public String getTenantName() {
114         return tenantName;
115     }
116
117     public void setTenantName(String tenantName) {
118         this.tenantName = tenantName;
119     }
120
121     public String getAicZoneId() {
122         return aicZoneId;
123     }
124
125     public void setAicZoneId(String aicZoneId) {
126         this.aicZoneId = aicZoneId;
127     }
128
129     public String getAicZoneName() {
130         return aicZoneName;
131     }
132
133     public void setAicZoneName(String aicZoneName) {
134         this.aicZoneName = aicZoneName;
135     }
136
137     public String getProjectName() {
138         return projectName;
139     }
140
141     public void setProjectName(String projectName) {
142         this.projectName = projectName;
143     }
144
145     public String getRollbackOnFailure() {
146         return rollbackOnFailure;
147     }
148
149     public void setRollbackOnFailure(String rollbackOnFailure) {
150         this.rollbackOnFailure = rollbackOnFailure;
151     }
152
153     public boolean getIsALaCarte() {
154         return isALaCarte;
155     }
156
157     public void setIsALaCarte(boolean isALaCarte) {
158         this.isALaCarte = isALaCarte;
159     }
160
161     public void setModelInfo(ModelInfo modelInfo) {
162         this.modelInfo = modelInfo;
163     }
164
165     public Map<String, Vnf> getVnfs() {
166         return vnfs;
167     }
168
169     public void setVnfs(Map<String, Vnf> vnfs) {
170         this.vnfs = vnfs;
171     }
172
173     public Map<String, Network> getNetworks() {
174         return networks;
175     }
176
177     public void setNetworks(Map<String, Network> networks) {
178         this.networks = networks;
179     }
180
181     public Map<String, CollectionResource> getCollectionResources() {
182         return collectionResources;
183     }
184
185     public void setCollectionResources(Map<String, CollectionResource> collectionResources) {
186         this.collectionResources = collectionResources;
187     }
188
189     public Map<String, VnfGroup> getVnfGroups() { return vnfGroups; }
190
191     public void setVnfGroups(Map<String, VnfGroup> vnfGroups) { this.vnfGroups = vnfGroups; }
192
193     public int getValidationCounter() {
194         return validationCounter;
195     }
196
197     public void setValidationCounter(int validationCounter) {
198         this.validationCounter = validationCounter;
199     }
200
201     public Map<String, Long> getExistingVNFCounterMap() {
202         return existingVNFCounterMap;
203     }
204
205     public void setExistingVNFCounterMap(Map<String, Long> existingVNFCounterMap) {
206         this.existingVNFCounterMap = existingVNFCounterMap;
207     }
208
209     public Map<String, Long> getExistingNetworksCounterMap() {
210         return existingNetworksCounterMap;
211     }
212
213     public void setExistingNetworksCounterMap(Map<String, Long> existingNetworksCounterMap) {
214         this.existingNetworksCounterMap = existingNetworksCounterMap;
215     }
216
217     public Map<String, Long> getExistingVnfGroupCounterMap() {
218         return existingVnfGroupCounterMap;
219     }
220
221     public void setExistingVnfGroupCounterMap(Map<String, Long> existingVnfGroupCounterMap) {
222         this.existingVnfGroupCounterMap = existingVnfGroupCounterMap;
223     }
224
225     public Map<String, Vrf> getVrfs() {
226         return vrfs;
227     }
228
229     public void setVrfs(Map<String, Vrf> vrfs) {
230         this.vrfs = vrfs;
231     }
232
233     public Map<String, Long> getExistingVRFCounterMap() {
234         return existingVRFCounterMap;
235     }
236
237     public void setExistingVRFCounterMap(Map<String, Long> existingVRFCounterMap) {
238         this.existingVRFCounterMap = existingVRFCounterMap;
239     }
240 }