2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 - 2018 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.so.db.catalog.beans;
23 import java.io.Serializable;
25 import com.openpojo.business.annotation.BusinessKey;
26 import org.apache.commons.lang3.builder.ToStringBuilder;
27 import org.apache.commons.lang3.builder.HashCodeBuilder;
28 import org.apache.commons.lang3.builder.EqualsBuilder;
31 public class ControllerSelectionReferenceId implements Serializable {
33 private static final long serialVersionUID = 1L;
35 private String vnfType;
37 private String controllerName;
39 private String actionCategory;
43 public boolean equals(final Object other) {
44 if (!(other instanceof ControllerSelectionReferenceId)) {
47 ControllerSelectionReferenceId castOther = (ControllerSelectionReferenceId) other;
48 return new EqualsBuilder().append(vnfType, castOther.vnfType).append(controllerName, castOther.controllerName)
49 .append(actionCategory, castOther.actionCategory).isEquals();
53 public int hashCode() {
54 return new HashCodeBuilder().append(vnfType).append(controllerName).append(actionCategory).toHashCode();
58 public String toString() {
59 return new ToStringBuilder(this).append("vnfType", vnfType).append("controllerName", controllerName)
60 .append("actionCategory", actionCategory).toString();
63 public String getVnfType() {
66 public void setVnfType(String vnfType) {
67 this.vnfType = vnfType;
69 public String getControllerName() {
70 return controllerName;
72 public void setControllerName(String controllerName) {
73 this.controllerName = controllerName;
75 public String getActionCategory() {
76 return actionCategory;
78 public void setActionCategory(String actionCategory) {
79 this.actionCategory = actionCategory;