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

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

There is a newer version: 1.7.25
Show newest version
/*
 * MTM
 * Multi-tenancy-manager for LeanIX. Manages accounts, contracts, users, workspaces, permissions, and more.
 *
 * OpenAPI spec version: 1.6.348
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package net.leanix.mtm.api.models;

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

/**
 * RoleDetail
 */

public class RoleDetail {
  /**
   * Gets or Sets permissionRole
   */
  public enum PermissionRoleEnum {
    ADMIN("ADMIN"),
    
    MEMBER("MEMBER"),
    
    VIEWER("VIEWER"),
    
    CONTACT("CONTACT"),
    
    SYSTEM_READ("SYSTEM_READ"),
    
    SYSTEM_WRITE("SYSTEM_WRITE"),
    
    SYSTEM_AS_USER("SYSTEM_AS_USER"),
    
    TRANSIENT("TRANSIENT");

    private String value;

    PermissionRoleEnum(String value) {
      this.value = value;
    }

    @JsonValue
    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }

    @JsonCreator
    public static PermissionRoleEnum fromValue(String text) {
      for (PermissionRoleEnum b : PermissionRoleEnum.values()) {
        if (String.valueOf(b.value).equals(text)) {
          return b;
        }
      }
      return null;
    }
  }

  @JsonProperty("permissionRole")
  private PermissionRoleEnum permissionRole = null;

  @JsonProperty("count")
  private Long count = null;

  public RoleDetail permissionRole(PermissionRoleEnum permissionRole) {
    this.permissionRole = permissionRole;
    return this;
  }

   /**
   * Get permissionRole
   * @return permissionRole
  **/
  @ApiModelProperty(value = "")
  public PermissionRoleEnum getPermissionRole() {
    return permissionRole;
  }

  public void setPermissionRole(PermissionRoleEnum permissionRole) {
    this.permissionRole = permissionRole;
  }

  public RoleDetail count(Long count) {
    this.count = count;
    return this;
  }

   /**
   * Get count
   * @return count
  **/
  @ApiModelProperty(value = "")
  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