net.leanix.mtm.api.models.Account 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 java.util.ArrayList;
import java.util.List;
import net.leanix.mtm.api.models.Link;
import net.leanix.mtm.api.models.User;
/**
* Account
*/
public class Account {
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("fromAddress")
private String fromAddress = null;
@JsonProperty("links")
private List links = null;
@JsonProperty("responsibleUser")
private User responsibleUser = null;
/**
* Gets or Sets passwordPolicy
*/
public enum PasswordPolicyEnum {
NORMAL("NORMAL"),
STRICT("STRICT");
private String value;
PasswordPolicyEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static PasswordPolicyEnum fromValue(String text) {
for (PasswordPolicyEnum b : PasswordPolicyEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("passwordPolicy")
private PasswordPolicyEnum passwordPolicy = null;
public Account id(String id) {
this.id = id;
return this;
}
/**
* Get id
* @return id
**/
@ApiModelProperty(value = "")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public Account name(String name) {
this.name = name;
return this;
}
/**
* Get name
* @return name
**/
@ApiModelProperty(value = "")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Account fromAddress(String fromAddress) {
this.fromAddress = fromAddress;
return this;
}
/**
* Get fromAddress
* @return fromAddress
**/
@ApiModelProperty(value = "")
public String getFromAddress() {
return fromAddress;
}
public void setFromAddress(String fromAddress) {
this.fromAddress = fromAddress;
}
public Account links(List links) {
this.links = links;
return this;
}
public Account addLinksItem(Link linksItem) {
if (this.links == null) {
this.links = new ArrayList();
}
this.links.add(linksItem);
return this;
}
/**
* Get links
* @return links
**/
@ApiModelProperty(value = "")
public List getLinks() {
return links;
}
public void setLinks(List links) {
this.links = links;
}
public Account responsibleUser(User responsibleUser) {
this.responsibleUser = responsibleUser;
return this;
}
/**
* Get responsibleUser
* @return responsibleUser
**/
@ApiModelProperty(value = "")
public User getResponsibleUser() {
return responsibleUser;
}
public void setResponsibleUser(User responsibleUser) {
this.responsibleUser = responsibleUser;
}
public Account passwordPolicy(PasswordPolicyEnum passwordPolicy) {
this.passwordPolicy = passwordPolicy;
return this;
}
/**
* Get passwordPolicy
* @return passwordPolicy
**/
@ApiModelProperty(value = "")
public PasswordPolicyEnum getPasswordPolicy() {
return passwordPolicy;
}
public void setPasswordPolicy(PasswordPolicyEnum passwordPolicy) {
this.passwordPolicy = passwordPolicy;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Account account = (Account) o;
return Objects.equals(this.id, account.id) &&
Objects.equals(this.name, account.name) &&
Objects.equals(this.fromAddress, account.fromAddress) &&
Objects.equals(this.links, account.links) &&
Objects.equals(this.responsibleUser, account.responsibleUser) &&
Objects.equals(this.passwordPolicy, account.passwordPolicy);
}
@Override
public int hashCode() {
return Objects.hash(id, name, fromAddress, links, responsibleUser, passwordPolicy);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Account {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" fromAddress: ").append(toIndentedString(fromAddress)).append("\n");
sb.append(" links: ").append(toIndentedString(links)).append("\n");
sb.append(" responsibleUser: ").append(toIndentedString(responsibleUser)).append("\n");
sb.append(" passwordPolicy: ").append(toIndentedString(passwordPolicy)).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