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(final String id) {
28 public String getName() {
32 public void setName(final String name) {
36 public String getDescription() {
40 public void setDescription(final String description) {
41 this.description = description;
44 public Boolean isEnabled() {
48 public void setEnabled(final Boolean enabled) {
49 this.enabled = enabled;
53 public int hashCode() {
54 return name != null ? name.hashCode() : 0;
58 public boolean equals(final Object obj) {
62 if (obj == null || getClass() != obj.getClass()) {
65 final Domain other = (Domain) obj;
66 return Objects.equals(getName(), other.getName()) && Objects.equals(getDomainid(), other.getDomainid())
67 && Objects.equals(getDescription(), other.getDescription());
71 public String toString() {