8711e2cbf4fe09408bc6154b118d373a25f99d36
[holmes/common.git] / holmes-actions / src / main / java / org / onap / holmes / common / aai / entity / RelationshipList.java
1 /**
2  * Copyright 2017 ZTE Corporation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 package org.onap.holmes.common.aai.entity;
18
19 import java.util.List;
20 import lombok.Getter;
21 import lombok.Setter;
22
23 @Setter
24 @Getter
25 public class RelationshipList {
26
27     private List<Relationship> relationships;
28
29     @Setter
30     @Getter
31     public static class Relationship {
32         private String relatedLink;
33         private String relatedTo;
34         private List<RelatedToProperty> relatedToPropertyList;
35         private List<RelationshipData> relationshipDataList;
36     }
37
38     @Setter
39     @Getter
40     public static class RelationshipData {
41         private String relationshipKey;
42         private String relationshipValue;
43     }
44
45     @Getter
46     @Setter
47     public static class RelatedToProperty {
48         private String propertyKey;
49         private String propertyValue;
50     }
51
52 }