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 = "role")
15 private String roleid;
17 private String description;
18 private String domainid;
20 public String getRoleid() {
24 public void setRoleid(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;
45 public int hashCode() {
46 return name != null ? name.hashCode() : 0;
50 public boolean equals(final Object obj) {
54 if (obj == null || getClass() != obj.getClass()) {
57 final Role other = (Role) obj;
58 return Objects.equals(getName(), other.getName()) && Objects.equals(getRoleid(), other.getRoleid())
59 && Objects.equals(getDescription(), other.getDescription());
63 public String toString() {
67 public void setDomainid(final String domainid) {
68 this.domainid = domainid;
71 public String getDomainid() {