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(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;
45 public int hashCode() {
46 return name != null ? name.hashCode() : 0;
50 public boolean equals(Object obj) {
55 if (obj == null || getClass() != obj.getClass()) {
59 Role other = (Role) obj;
60 if (Objects.equals(getName(), other.getName()) && Objects.equals(getRoleid(), other.getRoleid())
61 && Objects.equals(getDescription(), other.getDescription())) {
68 public String toString() {
72 public void setDomainid(String domainid) {
73 this.domainid = domainid;
76 public String getDomainid() {