2 * Copyright (c) 2019 Huawei
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
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
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
15 package org.onap.nbi.apis.hub.model;
17 import org.onap.nbi.apis.serviceorder.model.RelatedParty;
18 import org.springframework.data.annotation.Id;
19 import com.fasterxml.jackson.annotation.JsonProperty;
21 public class ServiceInstanceEvent {
25 private String id = null;
28 private String href = null;
31 private String name = null;
34 private String type = "service-instance";
36 @JsonProperty("state")
37 private String state = null;
39 @JsonProperty("relatedParty")
40 private RelatedParty relatedParty = null;
42 public String getId() {
46 public void setId(String id) {
50 public String getHref() {
54 public void setHref(String href) {
58 public String getName() {
62 public void setName(String name) {
66 public String getType() {
70 public void setType(String type) {
74 public String getState() {
78 public void setState(String state) {
82 public RelatedParty getRelatedParty() {
86 public void setRelatedParty(RelatedParty relatedParty) {
87 this.relatedParty = relatedParty;