All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.leanix.mtm.api.models.RoleDetail Maven / Gradle / Ivy

package net.leanix.mtm.api.models;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;






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