net.leanix.mtm.api.models.TechnicalUserInputData 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
/*
* 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 net.leanix.mtm.api.models.ApiTokenInputData;
/**
* TechnicalUserInputData
*/
public class TechnicalUserInputData {
@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 ApiTokenInputData apiTokenData = null;
public TechnicalUserInputData 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 TechnicalUserInputData 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 TechnicalUserInputData 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 TechnicalUserInputData 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 TechnicalUserInputData 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 TechnicalUserInputData apiTokenData(ApiTokenInputData apiTokenData) {
this.apiTokenData = apiTokenData;
return this;
}
/**
* Get apiTokenData
* @return apiTokenData
**/
@ApiModelProperty(value = "")
public ApiTokenInputData getApiTokenData() {
return apiTokenData;
}
public void setApiTokenData(ApiTokenInputData apiTokenData) {
this.apiTokenData = apiTokenData;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
TechnicalUserInputData technicalUserInputData = (TechnicalUserInputData) o;
return Objects.equals(this.userName, technicalUserInputData.userName) &&
Objects.equals(this.email, technicalUserInputData.email) &&
Objects.equals(this.permissionRole, technicalUserInputData.permissionRole) &&
Objects.equals(this.customerRoles, technicalUserInputData.customerRoles) &&
Objects.equals(this.accessControlEntities, technicalUserInputData.accessControlEntities) &&
Objects.equals(this.apiTokenData, technicalUserInputData.apiTokenData);
}
@Override
public int hashCode() {
return Objects.hash(userName, email, permissionRole, customerRoles, accessControlEntities, apiTokenData);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class TechnicalUserInputData {\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("}");
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