Add DMaaP Integration to retrieve AAI-EVENT
[externalapi/nbi.git] / src / main / java / org / onap / nbi / apis / hub / model / ServiceInstanceEvent.java
1 /**
2  * Copyright (c) 2019 Huawei
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5  * in compliance with the License. You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software distributed under the License
10  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11  * or implied. See the License for the specific language governing permissions and limitations under
12  * the License.
13  */
14
15 package org.onap.nbi.apis.hub.model;
16
17 import org.onap.nbi.apis.serviceorder.model.RelatedParty;
18 import org.springframework.data.annotation.Id;
19 import com.fasterxml.jackson.annotation.JsonProperty;
20
21 public class ServiceInstanceEvent {
22
23   @Id
24   @JsonProperty("id")
25   private String id = null;
26
27   @JsonProperty("href")
28   private String href = null;
29
30   @JsonProperty("name")
31   private String name = null;
32
33   @JsonProperty("type")
34   private String type = "service-instance";
35
36   @JsonProperty("state")
37   private String state = null;
38
39   @JsonProperty("relatedParty")
40   private RelatedParty relatedParty = null;
41
42   public String getId() {
43     return id;
44   }
45
46   public void setId(String id) {
47     this.id = id;
48   }
49
50   public String getHref() {
51     return href;
52   }
53
54   public void setHref(String href) {
55     this.href = href;
56   }
57
58   public String getName() {
59     return name;
60   }
61
62   public void setName(String name) {
63     this.name = name;
64   }
65
66   public String getType() {
67     return type;
68   }
69
70   public void setType(String type) {
71     this.type = type;
72   }
73
74   public String getState() {
75     return state;
76   }
77
78   public void setState(String state) {
79     this.state = state;
80   }
81
82   public RelatedParty getRelatedParty() {
83     return relatedParty;
84   }
85
86   public void setRelatedParty(RelatedParty relatedParty) {
87     this.relatedParty = relatedParty;
88   }
89
90 }