Update license header in appc-flow-controller file
[appc.git] / appc-config / appc-flow-controller / provider / src / main / java / org / onap / appc / flow / controller / data / ActionIdentifier.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * ONAP : APPC
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
10  *
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  *
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  *
19  * ============LICENSE_END=========================================================
20  */
21
22 package org.onap.appc.flow.controller.data;
23
24 import com.fasterxml.jackson.annotation.JsonProperty;
25
26 public class ActionIdentifier {
27
28     @Override
29     public int hashCode() {
30         final int prime = 31;
31         int result = 1;
32         result = prime * result + ((vnfId == null) ? 0 : vnfId.hashCode());
33         result = prime * result + ((vnfcName == null) ? 0 : vnfcName.hashCode());
34         result = prime * result + ((vserverId == null) ? 0 : vserverId.hashCode());
35         return result;
36     }
37
38     @Override
39     public boolean equals(Object obj) {
40         if (this == obj)
41             return true;
42         if (obj == null)
43             return false;
44         if (getClass() != obj.getClass())
45             return false;
46         ActionIdentifier other = (ActionIdentifier) obj;
47         if (vnfId == null) {
48             if (other.vnfId != null)
49                 return false;
50         } else if (!vnfId.equals(other.vnfId))
51             return false;
52         if (vnfcName == null) {
53             if (other.vnfcName != null)
54                 return false;
55         } else if (!vnfcName.equals(other.vnfcName))
56             return false;
57         if (vserverId == null) {
58             if (other.vserverId != null)
59                 return false;
60         } else if (!vserverId.equals(other.vserverId))
61             return false;
62         return true;
63     }
64
65     @JsonProperty("vnf-id")
66     private String vnfId ;
67     @JsonProperty("vserver-id")
68     private String vserverId;
69     @JsonProperty("vnfc-name")
70     private String vnfcName;
71
72     public String getVserverId() {
73         return vserverId;
74     }
75
76     public void setVserverId(String vserverId) {
77         this.vserverId = vserverId;
78     }
79
80     public String getVnfcName() {
81         return vnfcName;
82     }
83
84     public void setVnfcName(String vnfcName) {
85         this.vnfcName = vnfcName;
86     }
87
88     public String getVnfId() {
89         return vnfId;
90     }
91
92     public void setVnfId(String vnfId) {
93         this.vnfId = vnfId;
94     }
95
96     @Override
97     public String toString() {
98         return "ActionIdentifier [vnfId=" + vnfId + ", vserverId=" + vserverId + ", vnfcName=" + vnfcName + "]";
99     }
100
101 }