0e50f6144e118d626be48a51ed761c79305e65fc
[usecase-ui/server.git] /
1 /**
2  * Copyright 2019 HUAWEI Corporation.
3  * <p>
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
5  * the License. You may obtain a copy of the License at
6  * <p>
7  * http://www.apache.org/licenses/LICENSE-2.0
8  * <p>
9  * Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
10  * an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
11  * specific language governing permissions and limitations under the License.
12  */
13 package org.onap.usecaseui.server.service.slicingdomain.aai.bean;
14
15 import java.io.Serializable;
16 import java.util.List;
17
18 import javax.persistence.Column;
19 import javax.persistence.Id;
20 import com.fasterxml.jackson.annotation.JsonCreator;
21 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
22 import com.fasterxml.jackson.annotation.JsonProperty;
23
24 @JsonIgnoreProperties(ignoreUnknown = true)
25 public class AAIServiceInstance implements Serializable {
26
27     private static final long serialVersionUID = -2847142014162429886L;
28
29     @JsonProperty("service-instance-id")
30     private String serviceInstanceId;
31
32     @JsonProperty("service-instance-name")
33     private String serviceInstanceName;
34
35     @JsonProperty("service-type")
36     private String serviceType;
37
38     @JsonProperty("service-role")
39     private String serviceRole;
40
41     @JsonProperty("environment-context")
42     private String environmentContext;
43
44     @JsonProperty("description")
45     private String description;
46
47     @JsonProperty("model-invariant-id")
48     private String modelInvariantId;
49
50     @JsonProperty("model-version-id")
51     private String modelVersionId;
52
53     @JsonProperty("resource-version")
54     private String resourceVersion;
55
56     @JsonProperty("service-instance-location-id")
57     private String serviceInstanceLocationId;
58
59     @JsonProperty("orchestration-status")
60     private String orchestrationStatus;
61
62     @JsonProperty("relationship-list")
63     public RelationshipList relationshipList;
64
65
66     public AAIServiceInstance() {
67         super();
68     }
69
70     public String getEnvironmentContext() {
71         return environmentContext;
72     }
73
74     public void setEnvironmentContext(String environmentContext) {
75         this.environmentContext = environmentContext;
76     }
77
78     public String getDescription() {
79         return description;
80     }
81
82     public void setDescription(String description) {
83         this.description = description;
84     }
85
86     public String getServiceInstanceId() {
87         return serviceInstanceId;
88     }
89
90     public void setServiceInstanceId(String serviceInstanceId) {
91         this.serviceInstanceId = serviceInstanceId;
92     }
93
94     public String getServiceInstanceName() {
95         return serviceInstanceName;
96     }
97
98     public void setServiceInstanceName(String serviceInstanceName) {
99         this.serviceInstanceName = serviceInstanceName;
100     }
101
102     public String getServiceType() {
103         return serviceType;
104     }
105
106     public void setServiceType(String serviceType) {
107         this.serviceType = serviceType;
108     }
109
110     public String getServiceRole() {
111         return serviceRole;
112     }
113
114     public void setServiceRole(String serviceRole) {
115         this.serviceRole = serviceRole;
116     }
117
118     public String getServiceInstanceLocationId() {
119         return serviceInstanceLocationId;
120     }
121
122     public void setServiceInstanceLocationId(String serviceInstanceLocationId) {
123         this.serviceInstanceLocationId = serviceInstanceLocationId;
124     }
125
126     public String getOrchestrationStatus() {
127         return orchestrationStatus;
128     }
129
130     public void setOrchestrationStatus(String orchestrationStatus) {
131         this.orchestrationStatus = orchestrationStatus;
132     }
133
134     public String getModelInvariantId() {
135         return modelInvariantId;
136     }
137
138     public void setModelInvariantId(String modelInvariantId) {
139         this.modelInvariantId = modelInvariantId;
140     }
141
142     public String getModelVersionId() {
143         return modelVersionId;
144     }
145
146     public void setModelVersionId(String modelVersionId) {
147         this.modelVersionId = modelVersionId;
148     }
149
150     public String getResourceVersion() {
151         return resourceVersion;
152     }
153
154     public void setResourceVersion(String resourceVersion) {
155         this.resourceVersion = resourceVersion;
156     }
157
158     public RelationshipList getRelationshipList() {
159         return relationshipList;
160     }
161
162     public void setRelationshipList(RelationshipList relationshipList) {
163         this.relationshipList = relationshipList;
164     }
165
166
167     public class RelationshipList {
168
169         public RelationshipList() {
170             super();
171         }
172
173         @JsonProperty("relationship")
174         public List<Relationship> relationship;
175
176         public List<Relationship> getRelationship() {
177             return relationship;
178         }
179
180         public void setRelationship(List<Relationship> relationship) {
181             this.relationship = relationship;
182         }
183
184     }
185
186     public class Relationship {
187
188         public Relationship() {
189             super();
190         }
191
192         @JsonProperty("related-to")
193         private String relatedTo;
194
195         @JsonProperty("relationship-label")
196         private String relationshipLabel;
197
198         @JsonProperty("related-link")
199         private String relatedLink;
200
201         @JsonProperty("relationship-data")
202         private List<RelationshipData> relationshipData;
203
204         @JsonProperty("related-to-property")
205         private List<RelatedToProperty> relatedToProperty;
206
207         public String getRelatedTo() {
208             return relatedTo;
209         }
210
211         public void setRelatedTo(String relatedTo) {
212             this.relatedTo = relatedTo;
213         }
214
215         public String getRelationshipLabel() {
216             return relationshipLabel;
217         }
218
219         public void setRelationshipLabel(String relationshipLabel) {
220             this.relationshipLabel = relationshipLabel;
221         }
222
223         public String getRelatedLink() {
224             return relatedLink;
225         }
226
227         public void setRelatedLink(String relatedLink) {
228             this.relatedLink = relatedLink;
229         }
230
231         public List<RelationshipData> getRelationshipData() {
232             return relationshipData;
233         }
234
235         public void setRelationshipData(List<RelationshipData> relationshipData) {
236             this.relationshipData = relationshipData;
237         }
238
239         public List<RelatedToProperty> getRelatedToProperty() {
240             return relatedToProperty;
241         }
242
243         public void setRelatedToProperty(List<RelatedToProperty> relatedToProperty) {
244             this.relatedToProperty = relatedToProperty;
245         }
246
247     }
248
249     public class RelationshipData {
250
251         @JsonProperty("relationship-key")
252         private String relationshipKey;
253
254         @JsonProperty("relationship-value")
255         private String relationshipValue;
256
257         public String getRelationshipKey() {
258             return relationshipKey;
259         }
260
261         public void setRelationshipKey(String relationshipKey) {
262             this.relationshipKey = relationshipKey;
263         }
264
265         public String getRelationshipValue() {
266             return relationshipValue;
267         }
268
269         public void setRelationshipValue(String relationshipValue) {
270             this.relationshipValue = relationshipValue;
271         }
272
273     }
274
275     public class RelatedToProperty {
276
277         @JsonProperty("property-key")
278         private String propertyKey;
279
280         @JsonProperty("property-value")
281         private String propertyValue;
282
283         public String getPropertyKey() {
284             return propertyKey;
285         }
286
287         public void setPropertyKey(String propertyKey) {
288             this.propertyKey = propertyKey;
289         }
290
291         public String getPropertyValue() {
292             return propertyValue;
293         }
294
295         public void setPropertyValue(String propertyValue) {
296             this.propertyValue = propertyValue;
297         }
298
299     }
300
301 }