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

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

There is a newer version: 1.7.25
Show newest version
/*
 * LeanIX MTM REST API
 * 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;
import java.util.UUID;
import net.leanix.mtm.api.models.ApiTokenData;

/**
 * TechnicalUserData
 */

public class TechnicalUserData {
  @JsonProperty("userName")
  private String userName = null;

  @JsonProperty("email")
  private String email = null;

  /**
   * 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("customerRoles")
  private String customerRoles = null;

  @JsonProperty("accessControlEntities")
  private String accessControlEntities = null;

  @JsonProperty("apiTokenData")
  private ApiTokenData apiTokenData = null;

  @JsonProperty("id")
  private UUID id = null;

  @JsonProperty("accountId")
  private UUID accountId = null;

  @JsonProperty("workspaceId")
  private UUID workspaceId = null;

  public TechnicalUserData userName(String userName) {
    this.userName = userName;
    return this;
  }

   /**
   * Get userName
   * @return userName
  **/
  @ApiModelProperty(required = true, value = "")
  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public TechnicalUserData email(String email) {
    this.email = email;
    return this;
  }

   /**
   * Get email
   * @return email
  **/
  @ApiModelProperty(value = "")
  public String getEmail() {
    return email;
  }

  public void setEmail(String email) {
    this.email = email;
  }

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

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

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

  public TechnicalUserData customerRoles(String customerRoles) {
    this.customerRoles = customerRoles;
    return this;
  }

   /**
   * Get customerRoles
   * @return customerRoles
  **/
  @ApiModelProperty(value = "")
  public String getCustomerRoles() {
    return customerRoles;
  }

  public void setCustomerRoles(String customerRoles) {
    this.customerRoles = customerRoles;
  }

  public TechnicalUserData accessControlEntities(String accessControlEntities) {
    this.accessControlEntities = accessControlEntities;
    return this;
  }

   /**
   * Get accessControlEntities
   * @return accessControlEntities
  **/
  @ApiModelProperty(value = "")
  public String getAccessControlEntities() {
    return accessControlEntities;
  }

  public void setAccessControlEntities(String accessControlEntities) {
    this.accessControlEntities = accessControlEntities;
  }

  public TechnicalUserData apiTokenData(ApiTokenData apiTokenData) {
    this.apiTokenData = apiTokenData;
    return this;
  }

   /**
   * Get apiTokenData
   * @return apiTokenData
  **/
  @ApiModelProperty(value = "")
  public ApiTokenData getApiTokenData() {
    return apiTokenData;
  }

  public void setApiTokenData(ApiTokenData apiTokenData) {
    this.apiTokenData = apiTokenData;
  }

  public TechnicalUserData id(UUID id) {
    this.id = id;
    return this;
  }

   /**
   * Get id
   * @return id
  **/
  @ApiModelProperty(value = "")
  public UUID getId() {
    return id;
  }

  public void setId(UUID id) {
    this.id = id;
  }

  public TechnicalUserData accountId(UUID accountId) {
    this.accountId = accountId;
    return this;
  }

   /**
   * Get accountId
   * @return accountId
  **/
  @ApiModelProperty(value = "")
  public UUID getAccountId() {
    return accountId;
  }

  public void setAccountId(UUID accountId) {
    this.accountId = accountId;
  }

  public TechnicalUserData workspaceId(UUID workspaceId) {
    this.workspaceId = workspaceId;
    return this;
  }

   /**
   * Get workspaceId
   * @return workspaceId
  **/
  @ApiModelProperty(required = true, value = "")
  public UUID getWorkspaceId() {
    return workspaceId;
  }

  public void setWorkspaceId(UUID workspaceId) {
    this.workspaceId = workspaceId;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TechnicalUserData technicalUserData = (TechnicalUserData) o;
    return Objects.equals(this.userName, technicalUserData.userName) &&
        Objects.equals(this.email, technicalUserData.email) &&
        Objects.equals(this.permissionRole, technicalUserData.permissionRole) &&
        Objects.equals(this.customerRoles, technicalUserData.customerRoles) &&
        Objects.equals(this.accessControlEntities, technicalUserData.accessControlEntities) &&
        Objects.equals(this.apiTokenData, technicalUserData.apiTokenData) &&
        Objects.equals(this.id, technicalUserData.id) &&
        Objects.equals(this.accountId, technicalUserData.accountId) &&
        Objects.equals(this.workspaceId, technicalUserData.workspaceId);
  }

  @Override
  public int hashCode() {
    return Objects.hash(userName, email, permissionRole, customerRoles, accessControlEntities, apiTokenData, id, accountId, workspaceId);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TechnicalUserData {\n");
    
    sb.append("    userName: ").append(toIndentedString(userName)).append("\n");
    sb.append("    email: ").append(toIndentedString(email)).append("\n");
    sb.append("    permissionRole: ").append(toIndentedString(permissionRole)).append("\n");
    sb.append("    customerRoles: ").append(toIndentedString(customerRoles)).append("\n");
    sb.append("    accessControlEntities: ").append(toIndentedString(accessControlEntities)).append("\n");
    sb.append("    apiTokenData: ").append(toIndentedString(apiTokenData)).append("\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    accountId: ").append(toIndentedString(accountId)).append("\n");
    sb.append("    workspaceId: ").append(toIndentedString(workspaceId)).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