ae5084a89da01b8b49cef21486dee97f85891f87
[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 com.fasterxml.jackson.annotation.JsonIgnoreProperties;
19 import com.fasterxml.jackson.annotation.JsonProperty;
20
21 @JsonIgnoreProperties(ignoreUnknown = true)
22 public class AAIServiceInstance implements Serializable {
23
24     private static final long serialVersionUID = -2847142014162429886L;
25
26     @JsonProperty("service-instance-id")
27     private String serviceInstanceId;
28
29     @JsonProperty("service-instance-name")
30     private String serviceInstanceName;
31
32     @JsonProperty("service-type")
33     private String serviceType;
34
35     @JsonProperty("service-role")
36     private String serviceRole;
37
38     @JsonProperty("environment-context")
39     private String environmentContext;
40
41     @JsonProperty("description")
42     private String description;
43
44     @JsonProperty("model-invariant-id")
45     private String modelInvariantId;
46
47     @JsonProperty("model-version-id")
48     private String modelVersionId;
49
50     @JsonProperty("resource-version")
51     private String resourceVersion;
52
53     @JsonProperty("service-instance-location-id")
54     private String serviceInstanceLocationId;
55
56     @JsonProperty("orchestration-status")
57     private String orchestrationStatus;
58
59     @JsonProperty("relationship-list")
60     public RelationshipList relationshipList;
61
62
63     public AAIServiceInstance() {
64         super();
65     }
66
67     public String getEnvironmentContext() {
68         return environmentContext;
69     }
70
71     public void setEnvironmentContext(String environmentContext) {
72         this.environmentContext = environmentContext;
73     }
74
75     public String getDescription() {
76         return description;
77     }
78
79     public void setDescription(String description) {
80         this.description = description;
81     }
82
83     public String getServiceInstanceId() {
84         return serviceInstanceId;
85     }
86
87     public void setServiceInstanceId(String serviceInstanceId) {
88         this.serviceInstanceId = serviceInstanceId;
89     }
90
91     public String getServiceInstanceName() {
92         return serviceInstanceName;
93     }
94
95     public void setServiceInstanceName(String serviceInstanceName) {
96         this.serviceInstanceName = serviceInstanceName;
97     }
98
99     public String getServiceType() {
100         return serviceType;
101     }
102
103     public void setServiceType(String serviceType) {
104         this.serviceType = serviceType;
105     }
106
107     public String getServiceRole() {
108         return serviceRole;
109     }
110
111     public void setServiceRole(String serviceRole) {
112         this.serviceRole = serviceRole;
113     }
114
115     public String getServiceInstanceLocationId() {
116         return serviceInstanceLocationId;
117     }
118
119     public void setServiceInstanceLocationId(String serviceInstanceLocationId) {
120         this.serviceInstanceLocationId = serviceInstanceLocationId;
121     }
122
123     public String getOrchestrationStatus() {
124         return orchestrationStatus;
125     }
126
127     public void setOrchestrationStatus(String orchestrationStatus) {
128         this.orchestrationStatus = orchestrationStatus;
129     }
130
131     public String getModelInvariantId() {
132         return modelInvariantId;
133     }
134
135     public void setModelInvariantId(String modelInvariantId) {
136         this.modelInvariantId = modelInvariantId;
137     }
138
139     public String getModelVersionId() {
140         return modelVersionId;
141     }
142
143     public void setModelVersionId(String modelVersionId) {
144         this.modelVersionId = modelVersionId;
145     }
146
147     public String getResourceVersion() {
148         return resourceVersion;
149     }
150
151     public void setResourceVersion(String resourceVersion) {
152         this.resourceVersion = resourceVersion;
153     }
154
155     public RelationshipList getRelationshipList() {
156         return relationshipList;
157     }
158
159     public void setRelationshipList(RelationshipList relationshipList) {
160         this.relationshipList = relationshipList;
161     }
162
163
164     public class RelationshipList {
165
166         public RelationshipList() {
167             super();
168         }
169
170         @JsonProperty("relationship")
171         public List<Relationship> relationship;
172
173         public List<Relationship> getRelationship() {
174             return relationship;
175         }
176
177         public void setRelationship(List<Relationship> relationship) {
178             this.relationship = relationship;
179         }
180
181     }
182
183     public class Relationship {
184
185         public Relationship() {
186             super();
187         }
188
189         @JsonProperty("related-to")
190         private String relatedTo;
191
192         @JsonProperty("relationship-label")
193         private String relationshipLabel;
194
195         @JsonProperty("related-link")
196         private String relatedLink;
197
198         @JsonProperty("relationship-data")
199         private List<RelationshipData> relationshipData;
200
201         @JsonProperty("related-to-property")
202         private List<RelatedToProperty> relatedToProperty;
203
204         public String getRelatedTo() {
205             return relatedTo;
206         }
207
208         public void setRelatedTo(String relatedTo) {
209             this.relatedTo = relatedTo;
210         }
211
212         public String getRelationshipLabel() {
213             return relationshipLabel;
214         }
215
216         public void setRelationshipLabel(String relationshipLabel) {
217             this.relationshipLabel = relationshipLabel;
218         }
219
220         public String getRelatedLink() {
221             return relatedLink;
222         }
223
224         public void setRelatedLink(String relatedLink) {
225             this.relatedLink = relatedLink;
226         }
227
228         public List<RelationshipData> getRelationshipData() {
229             return relationshipData;
230         }
231
232         public void setRelationshipData(List<RelationshipData> relationshipData) {
233             this.relationshipData = relationshipData;
234         }
235
236         public List<RelatedToProperty> getRelatedToProperty() {
237             return relatedToProperty;
238         }
239
240         public void setRelatedToProperty(List<RelatedToProperty> relatedToProperty) {
241             this.relatedToProperty = relatedToProperty;
242         }
243
244     }
245
246     public class RelationshipData {
247
248         @JsonProperty("relationship-key")
249         private String relationshipKey;
250
251         @JsonProperty("relationship-value")
252         private String relationshipValue;
253
254         public String getRelationshipKey() {
255             return relationshipKey;
256         }
257
258         public void setRelationshipKey(String relationshipKey) {
259             this.relationshipKey = relationshipKey;
260         }
261
262         public String getRelationshipValue() {
263             return relationshipValue;
264         }
265
266         public void setRelationshipValue(String relationshipValue) {
267             this.relationshipValue = relationshipValue;
268         }
269
270     }
271
272     public class RelatedToProperty {
273
274         @JsonProperty("property-key")
275         private String propertyKey;
276
277         @JsonProperty("property-value")
278         private String propertyValue;
279
280         public String getPropertyKey() {
281             return propertyKey;
282         }
283
284         public void setPropertyKey(String propertyKey) {
285             this.propertyKey = propertyKey;
286         }
287
288         public String getPropertyValue() {
289             return propertyValue;
290         }
291
292         public void setPropertyValue(String propertyValue) {
293             this.propertyValue = propertyValue;
294         }
295
296     }
297
298 }