net.leanix.mtm.api.models.Feature 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
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.List;
import java.util.Objects;
public class Feature {
private String id = null;
private String name = null;
public enum TypeEnum {
FUNCTIONAL("FUNCTIONAL"),
QUOTA("QUOTA");
private String value;
TypeEnum(String value) {
this.value = value;
}
@Override
@JsonValue
public String toString() {
return value;
}
}
private TypeEnum type = null;
private String description = null;
public enum StatusEnum {
DISABLED("DISABLED"),
ENABLED("ENABLED");
private String value;
StatusEnum(String value) {
this.value = value;
}
@Override
@JsonValue
public String toString() {
return value;
}
}
private StatusEnum status = null;
private Integer quota = null;
private List roles = new ArrayList();
private Boolean customized = null;
/**
**/
public Feature 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 Feature 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 Feature 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 Feature description(String description) {
this.description = description;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("description")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
/**
**/
public Feature 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 Feature quota(Integer quota) {
this.quota = quota;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("quota")
public Integer getQuota() {
return quota;
}
public void setQuota(Integer quota) {
this.quota = quota;
}
/**
**/
public Feature roles(List roles) {
this.roles = roles;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("roles")
public List getRoles() {
return roles;
}
public void setRoles(List roles) {
this.roles = roles;
}
/**
**/
public Feature customized(Boolean customized) {
this.customized = customized;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("customized")
public Boolean getCustomized() {
return customized;
}
public void setCustomized(Boolean customized) {
this.customized = customized;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Feature feature = (Feature) o;
return Objects.equals(this.id, feature.id) &&
Objects.equals(this.name, feature.name) &&
Objects.equals(this.type, feature.type) &&
Objects.equals(this.description, feature.description) &&
Objects.equals(this.status, feature.status) &&
Objects.equals(this.quota, feature.quota) &&
Objects.equals(this.roles, feature.roles) &&
Objects.equals(this.customized, feature.customized);
}
@Override
public int hashCode() {
return Objects.hash(id, name, type, description, status, quota, roles, customized);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Feature {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).append("\n");
sb.append(" quota: ").append(toIndentedString(quota)).append("\n");
sb.append(" roles: ").append(toIndentedString(roles)).append("\n");
sb.append(" customized: ").append(toIndentedString(customized)).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