2 * ============LICENSE_START=======================================================
\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
11 * http://www.apache.org/licenses/LICENSE-2.0
\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
20 package org.onap.dcaegen2.ves.domain.ves7_0;
\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
32 * provides vendor, nf and nfModule identifying information
\r
35 @JsonInclude(JsonInclude.Include.NON_NULL)
\r
36 @JsonPropertyOrder({
\r
41 public class VendorNfNameFields {
\r
44 * network function vendor name
\r
48 @JsonProperty("vendorName")
\r
49 @JsonPropertyDescription("network function vendor name")
\r
50 private String vendorName;
\r
52 * name of the nfModule generating the event
\r
55 @JsonProperty("nfModuleName")
\r
56 @JsonPropertyDescription("name of the nfModule generating the event")
\r
57 private String nfModuleName;
\r
59 * name of the network function generating the event
\r
62 @JsonProperty("nfName")
\r
63 @JsonPropertyDescription("name of the network function generating the event")
\r
64 private String nfName;
\r
67 * network function vendor name
\r
71 @JsonProperty("vendorName")
\r
72 public String getVendorName() {
\r
77 * network function vendor name
\r
81 @JsonProperty("vendorName")
\r
82 public void setVendorName(String vendorName) {
\r
83 this.vendorName = vendorName;
\r
87 * name of the nfModule generating the event
\r
90 @JsonProperty("nfModuleName")
\r
91 public String getNfModuleName() {
\r
92 return nfModuleName;
\r
96 * name of the nfModule generating the event
\r
99 @JsonProperty("nfModuleName")
\r
100 public void setNfModuleName(String nfModuleName) {
\r
101 this.nfModuleName = nfModuleName;
\r
105 * name of the network function generating the event
\r
108 @JsonProperty("nfName")
\r
109 public String getNfName() {
\r
114 * name of the network function generating the event
\r
117 @JsonProperty("nfName")
\r
118 public void setNfName(String nfName) {
\r
119 this.nfName = nfName;
\r
123 public String toString() {
\r
124 return ToStringBuilder.reflectionToString(this);
\r
128 public int hashCode() {
\r
129 return new HashCodeBuilder().append(vendorName).append(nfModuleName).append(nfName).toHashCode();
\r
133 public boolean equals(Object other) {
\r
134 if (other == this) {
\r
137 if ((other instanceof VendorNfNameFields) == false) {
\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