com.atlan.model.admin.AtlanRole Maven / Gradle / Ivy
// Generated by delombok at Thu Oct 10 18:56:32 UTC 2024
/* SPDX-License-Identifier: Apache-2.0
Copyright 2022 Atlan Pte. Ltd. */
package com.atlan.model.admin;
import com.atlan.model.core.AtlanObject;
@com.fasterxml.jackson.databind.annotation.JsonDeserialize(builder = AtlanRole.AtlanRoleBuilderImpl.class)
public class AtlanRole extends AtlanObject {
private static final long serialVersionUID = 2L;
/**
* Unique identifier for the role (GUID).
*/
String id;
/**
* Description of the role.
*/
String description;
/**
* Unique name for the role.
*/
String name;
/**
* TBC
*/
Boolean clientRole;
/**
* TBC
*/
String level;
/**
* Number of users with this role.
*/
String memberCount;
/**
* TBC
*/
String userCount;
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static abstract class AtlanRoleBuilder> extends AtlanObject.AtlanObjectBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String id;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String description;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String name;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private Boolean clientRole;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String level;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String memberCount;
@java.lang.SuppressWarnings("all")
@lombok.Generated
private String userCount;
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected B $fillValuesFrom(final C instance) {
super.$fillValuesFrom(instance);
AtlanRole.AtlanRoleBuilder.$fillValuesFromInstanceIntoBuilder(instance, this);
return self();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
private static void $fillValuesFromInstanceIntoBuilder(final AtlanRole instance, final AtlanRole.AtlanRoleBuilder, ?> b) {
b.id(instance.id);
b.description(instance.description);
b.name(instance.name);
b.clientRole(instance.clientRole);
b.level(instance.level);
b.memberCount(instance.memberCount);
b.userCount(instance.userCount);
}
/**
* Unique identifier for the role (GUID).
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B id(final String id) {
this.id = id;
return self();
}
/**
* Description of the role.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B description(final String description) {
this.description = description;
return self();
}
/**
* Unique name for the role.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B name(final String name) {
this.name = name;
return self();
}
/**
* TBC
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B clientRole(final Boolean clientRole) {
this.clientRole = clientRole;
return self();
}
/**
* TBC
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B level(final String level) {
this.level = level;
return self();
}
/**
* Number of users with this role.
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B memberCount(final String memberCount) {
this.memberCount = memberCount;
return self();
}
/**
* TBC
* @return {@code this}.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public B userCount(final String userCount) {
this.userCount = userCount;
return self();
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected abstract B self();
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public abstract C build();
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public java.lang.String toString() {
return "AtlanRole.AtlanRoleBuilder(super=" + super.toString() + ", id=" + this.id + ", description=" + this.description + ", name=" + this.name + ", clientRole=" + this.clientRole + ", level=" + this.level + ", memberCount=" + this.memberCount + ", userCount=" + this.userCount + ")";
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
@com.fasterxml.jackson.databind.annotation.JsonPOJOBuilder(withPrefix = "", buildMethodName = "build")
static final class AtlanRoleBuilderImpl extends AtlanRole.AtlanRoleBuilder {
@java.lang.SuppressWarnings("all")
@lombok.Generated
private AtlanRoleBuilderImpl() {
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected AtlanRole.AtlanRoleBuilderImpl self() {
return this;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public AtlanRole build() {
return new AtlanRole(this);
}
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected AtlanRole(final AtlanRole.AtlanRoleBuilder, ?> b) {
super(b);
this.id = b.id;
this.description = b.description;
this.name = b.name;
this.clientRole = b.clientRole;
this.level = b.level;
this.memberCount = b.memberCount;
this.userCount = b.userCount;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public static AtlanRole.AtlanRoleBuilder, ?> builder() {
return new AtlanRole.AtlanRoleBuilderImpl();
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public AtlanRole.AtlanRoleBuilder, ?> toBuilder() {
return new AtlanRole.AtlanRoleBuilderImpl().$fillValuesFrom(this);
}
/**
* Unique identifier for the role (GUID).
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getId() {
return this.id;
}
/**
* Description of the role.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getDescription() {
return this.description;
}
/**
* Unique name for the role.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getName() {
return this.name;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getClientRole() {
return this.clientRole;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getLevel() {
return this.level;
}
/**
* Number of users with this role.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getMemberCount() {
return this.memberCount;
}
/**
* TBC
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getUserCount() {
return this.userCount;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public boolean equals(final java.lang.Object o) {
if (o == this) return true;
if (!(o instanceof AtlanRole)) return false;
final AtlanRole other = (AtlanRole) o;
if (!other.canEqual((java.lang.Object) this)) return false;
if (!super.equals(o)) return false;
final java.lang.Object this$clientRole = this.getClientRole();
final java.lang.Object other$clientRole = other.getClientRole();
if (this$clientRole == null ? other$clientRole != null : !this$clientRole.equals(other$clientRole)) return false;
final java.lang.Object this$id = this.getId();
final java.lang.Object other$id = other.getId();
if (this$id == null ? other$id != null : !this$id.equals(other$id)) return false;
final java.lang.Object this$description = this.getDescription();
final java.lang.Object other$description = other.getDescription();
if (this$description == null ? other$description != null : !this$description.equals(other$description)) return false;
final java.lang.Object this$name = this.getName();
final java.lang.Object other$name = other.getName();
if (this$name == null ? other$name != null : !this$name.equals(other$name)) return false;
final java.lang.Object this$level = this.getLevel();
final java.lang.Object other$level = other.getLevel();
if (this$level == null ? other$level != null : !this$level.equals(other$level)) return false;
final java.lang.Object this$memberCount = this.getMemberCount();
final java.lang.Object other$memberCount = other.getMemberCount();
if (this$memberCount == null ? other$memberCount != null : !this$memberCount.equals(other$memberCount)) return false;
final java.lang.Object this$userCount = this.getUserCount();
final java.lang.Object other$userCount = other.getUserCount();
if (this$userCount == null ? other$userCount != null : !this$userCount.equals(other$userCount)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof AtlanRole;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = super.hashCode();
final java.lang.Object $clientRole = this.getClientRole();
result = result * PRIME + ($clientRole == null ? 43 : $clientRole.hashCode());
final java.lang.Object $id = this.getId();
result = result * PRIME + ($id == null ? 43 : $id.hashCode());
final java.lang.Object $description = this.getDescription();
result = result * PRIME + ($description == null ? 43 : $description.hashCode());
final java.lang.Object $name = this.getName();
result = result * PRIME + ($name == null ? 43 : $name.hashCode());
final java.lang.Object $level = this.getLevel();
result = result * PRIME + ($level == null ? 43 : $level.hashCode());
final java.lang.Object $memberCount = this.getMemberCount();
result = result * PRIME + ($memberCount == null ? 43 : $memberCount.hashCode());
final java.lang.Object $userCount = this.getUserCount();
result = result * PRIME + ($userCount == null ? 43 : $userCount.hashCode());
return result;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public java.lang.String toString() {
return "AtlanRole(super=" + super.toString() + ", id=" + this.getId() + ", description=" + this.getDescription() + ", name=" + this.getName() + ", clientRole=" + this.getClientRole() + ", level=" + this.getLevel() + ", memberCount=" + this.getMemberCount() + ", userCount=" + this.getUserCount() + ")";
}
}