net.leanix.mtm.api.models.RoleDetail Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of leanix-mtm-sdk-java Show documentation
Show all versions of leanix-mtm-sdk-java Show documentation
SDK for Java to access leanIX MTM REST API
package net.leanix.mtm.api.models;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
public class RoleDetail {
public enum PermissionRoleEnum {
ADMIN("ADMIN"),
MEMBER("MEMBER"),
VIEWER("VIEWER"),
CONTACT("CONTACT");
private String value;
PermissionRoleEnum(String value) {
this.value = value;
}
@Override
@JsonValue
public String toString() {
return value;
}
}
private PermissionRoleEnum permissionRole = null;
private Long count = null;
/**
**/
public RoleDetail permissionRole(PermissionRoleEnum permissionRole) {
this.permissionRole = permissionRole;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("permissionRole")
public PermissionRoleEnum getPermissionRole() {
return permissionRole;
}
public void setPermissionRole(PermissionRoleEnum permissionRole) {
this.permissionRole = permissionRole;
}
/**
**/
public RoleDetail count(Long count) {
this.count = count;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("count")
public Long getCount() {
return count;
}
public void setCount(Long count) {
this.count = count;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
RoleDetail roleDetail = (RoleDetail) o;
return Objects.equals(this.permissionRole, roleDetail.permissionRole) &&
Objects.equals(this.count, roleDetail.count);
}
@Override
public int hashCode() {
return Objects.hash(permissionRole, count);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class RoleDetail {\n");
sb.append(" permissionRole: ").append(toIndentedString(permissionRole)).append("\n");
sb.append(" count: ").append(toIndentedString(count)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy