2 * Copyright (c) 2014, 2017 Hewlett-Packard Development Company, L.P. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
8 package org.opendaylight.aaa.api.model;
10 import java.util.Objects;
11 import javax.xml.bind.annotation.XmlRootElement;
13 @XmlRootElement(name = "domain")
15 private String domainid;
17 private String description;
18 private Boolean enabled;
20 public String getDomainid() {
24 public void setDomainid(String id) {
28 public String getName() {
32 public void setName(String name) {
36 public String getDescription() {
40 public void setDescription(String description) {
41 this.description = description;
44 public Boolean isEnabled() {
48 public void setEnabled(Boolean enabled) {
49 this.enabled = enabled;
53 public int hashCode() {
54 return name != null ? name.hashCode() : 0;
58 public boolean equals(Object obj) {
63 if (obj == null || getClass() != obj.getClass()) {
67 Domain other = (Domain) obj;
68 if (Objects.equals(getName(), other.getName()) && Objects.equals(getDomainid(), other.getDomainid())
69 && Objects.equals(getDescription(), other.getDescription())) {
76 public String toString() {