2 * ============LICENSE_START=======================================================
4 * ================================================================================
5 * Copyright (C) 2017 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.
19 * ECOMP is a trademark and service mark of AT&T Intellectual Property.
20 * ============LICENSE_END=========================================================
23 package org.onap.appc.flow.controller.data;
25 import com.fasterxml.jackson.annotation.JsonProperty;
27 public class ActionIdentifier {
30 public int hashCode() {
33 result = prime * result + ((vnfId == null) ? 0 : vnfId.hashCode());
34 result = prime * result + ((vnfcName == null) ? 0 : vnfcName.hashCode());
35 result = prime * result + ((vserverId == null) ? 0 : vserverId.hashCode());
40 public boolean equals(Object obj) {
45 if (getClass() != obj.getClass())
47 ActionIdentifier other = (ActionIdentifier) obj;
49 if (other.vnfId != null)
51 } else if (!vnfId.equals(other.vnfId))
53 if (vnfcName == null) {
54 if (other.vnfcName != null)
56 } else if (!vnfcName.equals(other.vnfcName))
58 if (vserverId == null) {
59 if (other.vserverId != null)
61 } else if (!vserverId.equals(other.vserverId))
66 @JsonProperty("vnf-id")
67 private String vnfId ;
68 @JsonProperty("vserver-id")
69 private String vserverId;
70 @JsonProperty("vnfc-name")
71 private String vnfcName;
73 public String getVserverId() {
77 public void setVserverId(String vserverId) {
78 this.vserverId = vserverId;
81 public String getVnfcName() {
85 public void setVnfcName(String vnfcName) {
86 this.vnfcName = vnfcName;
89 public String getVnfId() {
93 public void setVnfId(String vnfId) {
98 public String toString() {
99 return "ActionIdentifier [vnfId=" + vnfId + ", vserverId=" + vserverId + ", vnfcName=" + vnfcName + "]";