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.
18 * ============LICENSE_END=========================================================
21 package org.onap.dmaap.dbcapi.model;
23 import javax.xml.bind.annotation.XmlRootElement;
24 import java.util.Objects;
27 public class DR_Node extends DmaapObject {
29 private String dcaeLocationName;
30 private String hostName;
31 private String version;
37 public DR_Node( String f,
42 this.dcaeLocationName = dLN;
47 public String getFqdn() {
51 public void setFqdn(String fqdn) {
55 public String getDcaeLocationName() {
56 return dcaeLocationName;
59 public void setDcaeLocationName(String dcaeLocationName) {
60 this.dcaeLocationName = dcaeLocationName;
63 public String getHostName() {
67 public void setHostName(String hostName) {
68 this.hostName = hostName;
71 public String getVersion() {
75 public void setVersion(String version) {
76 this.version = version;
80 public boolean equals(Object o) {
81 if (this == o) return true;
82 if (o == null || getClass() != o.getClass()) return false;
83 DR_Node dr_node = (DR_Node) o;
84 return Objects.equals(fqdn, dr_node.fqdn) &&
85 Objects.equals(dcaeLocationName, dr_node.dcaeLocationName) &&
86 Objects.equals(hostName, dr_node.hostName) &&
87 Objects.equals(version, dr_node.version);
91 public int hashCode() {
92 return Objects.hash(fqdn, dcaeLocationName, hostName, version);