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

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

There is a newer version: 1.7.25
Show newest version
package net.leanix.mtm.api.models;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModelProperty;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Objects;






public class Workspace   {
  
  private String id = null;
  private Contract contract = null;
  private Instance instance = null;
  private String name = null;
  private String featureBundleId = null;


  public enum StatusEnum {
    ACTIVE("ACTIVE"),
    BLOCKED("BLOCKED");

    private String value;

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

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

  private StatusEnum status = null;


  public enum TypeEnum {
    LIVE("LIVE"),
    DEMO("DEMO");

    private String value;

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

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

  private TypeEnum type = null;


  public enum DefaultRoleEnum {
    ADMIN("ADMIN"),
    MEMBER("MEMBER"),
    VIEWER("VIEWER"),
    CONTACT("CONTACT");

    private String value;

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

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

  private DefaultRoleEnum defaultRole = null;
  private String comment = null;
  private Date createdAt = null;
  private List customFeatures = new ArrayList();
  private Boolean active = null;
  private List links = new ArrayList();

  
  /**
   **/
  public Workspace 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 Workspace contract(Contract contract) {
    this.contract = contract;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("contract")
  public Contract getContract() {
    return contract;
  }
  public void setContract(Contract contract) {
    this.contract = contract;
  }

  
  /**
   **/
  public Workspace instance(Instance instance) {
    this.instance = instance;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("instance")
  public Instance getInstance() {
    return instance;
  }
  public void setInstance(Instance instance) {
    this.instance = instance;
  }

  
  /**
   **/
  public Workspace 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 Workspace featureBundleId(String featureBundleId) {
    this.featureBundleId = featureBundleId;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("featureBundleId")
  public String getFeatureBundleId() {
    return featureBundleId;
  }
  public void setFeatureBundleId(String featureBundleId) {
    this.featureBundleId = featureBundleId;
  }

  
  /**
   **/
  public Workspace status(StatusEnum status) {
    this.status = status;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("status")
  public StatusEnum getStatus() {
    return status;
  }
  public void setStatus(StatusEnum status) {
    this.status = status;
  }

  
  /**
   **/
  public Workspace type(TypeEnum type) {
    this.type = type;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("type")
  public TypeEnum getType() {
    return type;
  }
  public void setType(TypeEnum type) {
    this.type = type;
  }

  
  /**
   **/
  public Workspace defaultRole(DefaultRoleEnum defaultRole) {
    this.defaultRole = defaultRole;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("defaultRole")
  public DefaultRoleEnum getDefaultRole() {
    return defaultRole;
  }
  public void setDefaultRole(DefaultRoleEnum defaultRole) {
    this.defaultRole = defaultRole;
  }

  
  /**
   **/
  public Workspace comment(String comment) {
    this.comment = comment;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("comment")
  public String getComment() {
    return comment;
  }
  public void setComment(String comment) {
    this.comment = comment;
  }

  
  /**
   **/
  public Workspace createdAt(Date createdAt) {
    this.createdAt = createdAt;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("createdAt")
  public Date getCreatedAt() {
    return createdAt;
  }
  public void setCreatedAt(Date createdAt) {
    this.createdAt = createdAt;
  }

  
  /**
   **/
  public Workspace 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 Workspace active(Boolean active) {
    this.active = active;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("active")
  public Boolean getActive() {
    return active;
  }
  public void setActive(Boolean active) {
    this.active = active;
  }

  
  /**
   **/
  public Workspace 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;
  }

  

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Workspace workspace = (Workspace) o;
    return Objects.equals(this.id, workspace.id) &&
        Objects.equals(this.contract, workspace.contract) &&
        Objects.equals(this.instance, workspace.instance) &&
        Objects.equals(this.name, workspace.name) &&
        Objects.equals(this.featureBundleId, workspace.featureBundleId) &&
        Objects.equals(this.status, workspace.status) &&
        Objects.equals(this.type, workspace.type) &&
        Objects.equals(this.defaultRole, workspace.defaultRole) &&
        Objects.equals(this.comment, workspace.comment) &&
        Objects.equals(this.createdAt, workspace.createdAt) &&
        Objects.equals(this.customFeatures, workspace.customFeatures) &&
        Objects.equals(this.active, workspace.active) &&
        Objects.equals(this.links, workspace.links);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, contract, instance, name, featureBundleId, status, type, defaultRole, comment, createdAt, customFeatures, active, links);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Workspace {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    contract: ").append(toIndentedString(contract)).append("\n");
    sb.append("    instance: ").append(toIndentedString(instance)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    featureBundleId: ").append(toIndentedString(featureBundleId)).append("\n");
    sb.append("    status: ").append(toIndentedString(status)).append("\n");
    sb.append("    type: ").append(toIndentedString(type)).append("\n");
    sb.append("    defaultRole: ").append(toIndentedString(defaultRole)).append("\n");
    sb.append("    comment: ").append(toIndentedString(comment)).append("\n");
    sb.append("    createdAt: ").append(toIndentedString(createdAt)).append("\n");
    sb.append("    customFeatures: ").append(toIndentedString(customFeatures)).append("\n");
    sb.append("    active: ").append(toIndentedString(active)).append("\n");
    sb.append("    links: ").append(toIndentedString(links)).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