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