2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 - 2019 AT&T Intellectual Property. All rights reserved.
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ============LICENSE_END=========================================================
21 package org.onap.vid.model;
23 public class ServiceInstanceSearchResult {
25 private String serviceInstanceId;
27 private String globalCustomerId;
29 private String serviceType;
31 private String serviceInstanceName;
33 private String subscriberName;
35 private String aaiModelInvariantId;
37 private String aaiModelVersionId;
39 private boolean isPermitted;
41 public ServiceInstanceSearchResult(){
44 public ServiceInstanceSearchResult(String serviceInstanceId, String globalCustomerId, String serviceType,
45 String serviceInstanceName, String subscriberName, String aaiModelInvariantId,
46 String aaiModelVersionId, boolean isPermitted) {
47 this.serviceInstanceId = serviceInstanceId;
48 this.globalCustomerId = globalCustomerId;
49 this.serviceType = serviceType;
50 this.serviceInstanceName = serviceInstanceName;
51 this.subscriberName = subscriberName;
52 this.aaiModelInvariantId = aaiModelInvariantId;
53 this.aaiModelVersionId = aaiModelVersionId;
54 this.isPermitted = isPermitted;
57 public String getServiceInstanceId() {
58 return serviceInstanceId;
61 public void setServiceInstanceId(String serviceInstanceId) {
62 this.serviceInstanceId = serviceInstanceId;
65 public String getGlobalCustomerId() {
66 return globalCustomerId;
69 public void setGlobalCustomerId(String globalCustomerId) {
70 this.globalCustomerId = globalCustomerId;
73 public String getServiceType() {
77 public void setServiceType(String serviceType) {
78 this.serviceType = serviceType;
81 public String getServiceInstanceName() {
82 return serviceInstanceName;
85 public void setServiceInstanceName(String serviceInstanceName) {
86 this.serviceInstanceName = serviceInstanceName;
89 public String getSubscriberName() {
90 return subscriberName;
93 public void setSubscriberName(String subscriberName) {
94 this.subscriberName = subscriberName;
97 public String getAaiModelInvariantId() {
98 return aaiModelInvariantId;
101 public void setAaiModelInvariantId(String aaiModelInvariantId) {
102 this.aaiModelInvariantId = aaiModelInvariantId;
105 public String getAaiModelVersionId() {
106 return aaiModelVersionId;
109 public void setAaiModelVersionId(String aaiModelVersionId) {
110 this.aaiModelVersionId = aaiModelVersionId;
113 public boolean getIsPermitted() {
117 public void setIsPermitted(boolean isPermitted) {
118 this.isPermitted = isPermitted;
122 public boolean equals(Object other){
123 if (other instanceof ServiceInstanceSearchResult) {
124 ServiceInstanceSearchResult serviceInstanceSearchResultOther = (ServiceInstanceSearchResult) other;
125 if (this.getServiceInstanceId().equals(serviceInstanceSearchResultOther.getServiceInstanceId())) {
134 public int hashCode() {
136 result = 31 * result + serviceInstanceId.hashCode();