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

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

There is a newer version: 1.7.25
Show newest version
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;
import java.util.ArrayList;
import java.util.List;
import net.leanix.mtm.api.models.Feature;
import net.leanix.mtm.api.models.Link;
import net.leanix.mtm.api.models.User;






public class Account   {
  
  private String id = null;
  private String name = null;
  private List customFeatures = new ArrayList();
  private String fromAddress = null;
  private List links = new ArrayList();
  private User responsibleUser = null;


  public enum PasswordPolicyEnum {
    NORMAL("NORMAL"),
    STRICT("STRICT");

    private String value;

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

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

  private PasswordPolicyEnum passwordPolicy = null;

  
  /**
   **/
  public Account id(String id) {
    this.id = id;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("id")
  public String getId() {
    return id;
  }
  public void setId(String id) {
    this.id = id;
  }

  
  /**
   **/
  public Account name(String name) {
    this.name = name;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("name")
  public String getName() {
    return name;
  }
  public void setName(String name) {
    this.name = name;
  }

  
  /**
   **/
  public Account customFeatures(List customFeatures) {
    this.customFeatures = customFeatures;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("customFeatures")
  public List getCustomFeatures() {
    return customFeatures;
  }
  public void setCustomFeatures(List customFeatures) {
    this.customFeatures = customFeatures;
  }

  
  /**
   **/
  public Account fromAddress(String fromAddress) {
    this.fromAddress = fromAddress;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("fromAddress")
  public String getFromAddress() {
    return fromAddress;
  }
  public void setFromAddress(String fromAddress) {
    this.fromAddress = fromAddress;
  }

  
  /**
   **/
  public Account links(List links) {
    this.links = links;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("links")
  public List getLinks() {
    return links;
  }
  public void setLinks(List links) {
    this.links = links;
  }

  
  /**
   **/
  public Account responsibleUser(User responsibleUser) {
    this.responsibleUser = responsibleUser;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("responsibleUser")
  public User getResponsibleUser() {
    return responsibleUser;
  }
  public void setResponsibleUser(User responsibleUser) {
    this.responsibleUser = responsibleUser;
  }

  
  /**
   **/
  public Account passwordPolicy(PasswordPolicyEnum passwordPolicy) {
    this.passwordPolicy = passwordPolicy;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("passwordPolicy")
  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.customFeatures, account.customFeatures) &&
        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, customFeatures, 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("    customFeatures: ").append(toIndentedString(customFeatures)).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