2 * Copyright 2019 HUAWEI Corporation.
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
7 * http://www.apache.org/licenses/LICENSE-2.0
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.
13 package org.onap.usecaseui.server.service.slicingdomain.aai.bean;
15 import java.io.Serializable;
16 import java.util.List;
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;
24 @JsonIgnoreProperties(ignoreUnknown = true)
25 public class AAIServiceInstance implements Serializable {
27 private static final long serialVersionUID = -2847142014162429886L;
29 @JsonProperty("service-instance-id")
30 private String serviceInstanceId;
32 @JsonProperty("service-instance-name")
33 private String serviceInstanceName;
35 @JsonProperty("service-type")
36 private String serviceType;
38 @JsonProperty("service-role")
39 private String serviceRole;
41 @JsonProperty("environment-context")
42 private String environmentContext;
44 @JsonProperty("description")
45 private String description;
47 @JsonProperty("model-invariant-id")
48 private String modelInvariantId;
50 @JsonProperty("model-version-id")
51 private String modelVersionId;
53 @JsonProperty("resource-version")
54 private String resourceVersion;
56 @JsonProperty("service-instance-location-id")
57 private String serviceInstanceLocationId;
59 @JsonProperty("orchestration-status")
60 private String orchestrationStatus;
62 @JsonProperty("relationship-list")
63 public RelationshipList relationshipList;
66 public AAIServiceInstance() {
70 public String getEnvironmentContext() {
71 return environmentContext;
74 public void setEnvironmentContext(String environmentContext) {
75 this.environmentContext = environmentContext;
78 public String getDescription() {
82 public void setDescription(String description) {
83 this.description = description;
86 public String getServiceInstanceId() {
87 return serviceInstanceId;
90 public void setServiceInstanceId(String serviceInstanceId) {
91 this.serviceInstanceId = serviceInstanceId;
94 public String getServiceInstanceName() {
95 return serviceInstanceName;
98 public void setServiceInstanceName(String serviceInstanceName) {
99 this.serviceInstanceName = serviceInstanceName;
102 public String getServiceType() {
106 public void setServiceType(String serviceType) {
107 this.serviceType = serviceType;
110 public String getServiceRole() {
114 public void setServiceRole(String serviceRole) {
115 this.serviceRole = serviceRole;
118 public String getServiceInstanceLocationId() {
119 return serviceInstanceLocationId;
122 public void setServiceInstanceLocationId(String serviceInstanceLocationId) {
123 this.serviceInstanceLocationId = serviceInstanceLocationId;
126 public String getOrchestrationStatus() {
127 return orchestrationStatus;
130 public void setOrchestrationStatus(String orchestrationStatus) {
131 this.orchestrationStatus = orchestrationStatus;
134 public String getModelInvariantId() {
135 return modelInvariantId;
138 public void setModelInvariantId(String modelInvariantId) {
139 this.modelInvariantId = modelInvariantId;
142 public String getModelVersionId() {
143 return modelVersionId;
146 public void setModelVersionId(String modelVersionId) {
147 this.modelVersionId = modelVersionId;
150 public String getResourceVersion() {
151 return resourceVersion;
154 public void setResourceVersion(String resourceVersion) {
155 this.resourceVersion = resourceVersion;
158 public RelationshipList getRelationshipList() {
159 return relationshipList;
162 public void setRelationshipList(RelationshipList relationshipList) {
163 this.relationshipList = relationshipList;
167 public class RelationshipList {
169 public RelationshipList() {
173 @JsonProperty("relationship")
174 public List<Relationship> relationship;
176 public List<Relationship> getRelationship() {
180 public void setRelationship(List<Relationship> relationship) {
181 this.relationship = relationship;
186 public class Relationship {
188 public Relationship() {
192 @JsonProperty("related-to")
193 private String relatedTo;
195 @JsonProperty("relationship-label")
196 private String relationshipLabel;
198 @JsonProperty("related-link")
199 private String relatedLink;
201 @JsonProperty("relationship-data")
202 private List<RelationshipData> relationshipData;
204 @JsonProperty("related-to-property")
205 private List<RelatedToProperty> relatedToProperty;
207 public String getRelatedTo() {
211 public void setRelatedTo(String relatedTo) {
212 this.relatedTo = relatedTo;
215 public String getRelationshipLabel() {
216 return relationshipLabel;
219 public void setRelationshipLabel(String relationshipLabel) {
220 this.relationshipLabel = relationshipLabel;
223 public String getRelatedLink() {
227 public void setRelatedLink(String relatedLink) {
228 this.relatedLink = relatedLink;
231 public List<RelationshipData> getRelationshipData() {
232 return relationshipData;
235 public void setRelationshipData(List<RelationshipData> relationshipData) {
236 this.relationshipData = relationshipData;
239 public List<RelatedToProperty> getRelatedToProperty() {
240 return relatedToProperty;
243 public void setRelatedToProperty(List<RelatedToProperty> relatedToProperty) {
244 this.relatedToProperty = relatedToProperty;
249 public class RelationshipData {
251 @JsonProperty("relationship-key")
252 private String relationshipKey;
254 @JsonProperty("relationship-value")
255 private String relationshipValue;
257 public String getRelationshipKey() {
258 return relationshipKey;
261 public void setRelationshipKey(String relationshipKey) {
262 this.relationshipKey = relationshipKey;
265 public String getRelationshipValue() {
266 return relationshipValue;
269 public void setRelationshipValue(String relationshipValue) {
270 this.relationshipValue = relationshipValue;
275 public class RelatedToProperty {
277 @JsonProperty("property-key")
278 private String propertyKey;
280 @JsonProperty("property-value")
281 private String propertyValue;
283 public String getPropertyKey() {
287 public void setPropertyKey(String propertyKey) {
288 this.propertyKey = propertyKey;
291 public String getPropertyValue() {
292 return propertyValue;
295 public void setPropertyValue(String propertyValue) {
296 this.propertyValue = propertyValue;