Merge "Increase test coverage for services/mapper"
[dcaegen2/services/mapper.git] / UniversalVesAdapter / src / main / java / org / onap / dcaegen2 / ves / domain / ves7_0 / VendorNfNameFields.java
1 /*\r
2 * ============LICENSE_START=======================================================\r
3 * ONAP : DCAE\r
4 * ================================================================================\r
5 * Copyright 2018 TechMahindra\r
6 *=================================================================================\r
7 * Licensed under the Apache License, Version 2.0 (the "License");\r
8 * you may not use this file except in compliance with the License.\r
9 * You may obtain a copy of the License at\r
10 *\r
11 *     http://www.apache.org/licenses/LICENSE-2.0\r
12 *\r
13 * Unless required by applicable law or agreed to in writing, software\r
14 * distributed under the License is distributed on an "AS IS" BASIS,\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16 * See the License for the specific language governing permissions and\r
17 * limitations under the License.\r
18 * ============LICENSE_END=========================================================\r
19 */\r
20 package org.onap.dcaegen2.ves.domain.ves7_0;\r
21 \r
22 import com.fasterxml.jackson.annotation.JsonInclude;\r
23 import com.fasterxml.jackson.annotation.JsonProperty;\r
24 import com.fasterxml.jackson.annotation.JsonPropertyDescription;\r
25 import com.fasterxml.jackson.annotation.JsonPropertyOrder;\r
26 import org.apache.commons.lang.builder.EqualsBuilder;\r
27 import org.apache.commons.lang.builder.HashCodeBuilder;\r
28 import org.apache.commons.lang.builder.ToStringBuilder;\r
29 \r
30 \r
31 /**\r
32  * provides vendor, nf and nfModule identifying information\r
33  * \r
34  */\r
35 @JsonInclude(JsonInclude.Include.NON_NULL)\r
36 @JsonPropertyOrder({\r
37     "vendorName",\r
38     "nfModuleName",\r
39     "nfName"\r
40 })\r
41 public class VendorNfNameFields {\r
42 \r
43     /**\r
44      * network function vendor name\r
45      * (Required)\r
46      * \r
47      */\r
48     @JsonProperty("vendorName")\r
49     @JsonPropertyDescription("network function vendor name")\r
50     private String vendorName;\r
51     /**\r
52      * name of the nfModule generating the event\r
53      * \r
54      */\r
55     @JsonProperty("nfModuleName")\r
56     @JsonPropertyDescription("name of the nfModule generating the event")\r
57     private String nfModuleName;\r
58     /**\r
59      * name of the network function generating the event\r
60      * \r
61      */\r
62     @JsonProperty("nfName")\r
63     @JsonPropertyDescription("name of the network function generating the event")\r
64     private String nfName;\r
65 \r
66     /**\r
67      * network function vendor name\r
68      * (Required)\r
69      * \r
70      */\r
71     @JsonProperty("vendorName")\r
72     public String getVendorName() {\r
73         return vendorName;\r
74     }\r
75 \r
76     /**\r
77      * network function vendor name\r
78      * (Required)\r
79      * \r
80      */\r
81     @JsonProperty("vendorName")\r
82     public void setVendorName(String vendorName) {\r
83         this.vendorName = vendorName;\r
84     }\r
85 \r
86     /**\r
87      * name of the nfModule generating the event\r
88      * \r
89      */\r
90     @JsonProperty("nfModuleName")\r
91     public String getNfModuleName() {\r
92         return nfModuleName;\r
93     }\r
94 \r
95     /**\r
96      * name of the nfModule generating the event\r
97      * \r
98      */\r
99     @JsonProperty("nfModuleName")\r
100     public void setNfModuleName(String nfModuleName) {\r
101         this.nfModuleName = nfModuleName;\r
102     }\r
103 \r
104     /**\r
105      * name of the network function generating the event\r
106      * \r
107      */\r
108     @JsonProperty("nfName")\r
109     public String getNfName() {\r
110         return nfName;\r
111     }\r
112 \r
113     /**\r
114      * name of the network function generating the event\r
115      * \r
116      */\r
117     @JsonProperty("nfName")\r
118     public void setNfName(String nfName) {\r
119         this.nfName = nfName;\r
120     }\r
121 \r
122     @Override\r
123     public String toString() {\r
124         return ToStringBuilder.reflectionToString(this);\r
125     }\r
126 \r
127     @Override\r
128     public int hashCode() {\r
129         return new HashCodeBuilder().append(vendorName).append(nfModuleName).append(nfName).toHashCode();\r
130     }\r
131 \r
132     @Override\r
133     public boolean equals(Object other) {\r
134         if (other == this) {\r
135             return true;\r
136         }\r
137         if ((other instanceof VendorNfNameFields) == false) {\r
138             return false;\r
139         }\r
140         VendorNfNameFields rhs = ((VendorNfNameFields) other);\r
141         return new EqualsBuilder().append(vendorName, rhs.vendorName).append(nfModuleName, rhs.nfModuleName).append(nfName, rhs.nfName).isEquals();\r
142     }\r
143 \r
144 }\r