net.leanix.mtm.api.models.FeatureBundle 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 FeatureBundle {
private String id = null;
private String name = null;
private String summary = null;
private String base = null;
private List features = new ArrayList();
private List prices = new ArrayList();
private Integer stars = null;
private String description = null;
private List included = new ArrayList();
private List optional = new ArrayList();
private Boolean suggested = null;
public enum TypeEnum {
EDITION("EDITION"),
MODULE("MODULE"),
CUSTOM("CUSTOM");
private String value;
TypeEnum(String value) {
this.value = value;
}
@Override
@JsonValue
public String toString() {
return value;
}
}
private TypeEnum type = null;
/**
**/
public FeatureBundle 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 FeatureBundle 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 FeatureBundle summary(String summary) {
this.summary = summary;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("summary")
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
/**
**/
public FeatureBundle base(String base) {
this.base = base;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("base")
public String getBase() {
return base;
}
public void setBase(String base) {
this.base = base;
}
/**
**/
public FeatureBundle features(List features) {
this.features = features;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("features")
public List getFeatures() {
return features;
}
public void setFeatures(List features) {
this.features = features;
}
/**
**/
public FeatureBundle prices(List prices) {
this.prices = prices;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("prices")
public List getPrices() {
return prices;
}
public void setPrices(List prices) {
this.prices = prices;
}
/**
**/
public FeatureBundle stars(Integer stars) {
this.stars = stars;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("stars")
public Integer getStars() {
return stars;
}
public void setStars(Integer stars) {
this.stars = stars;
}
/**
**/
public FeatureBundle 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 FeatureBundle included(List included) {
this.included = included;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("included")
public List getIncluded() {
return included;
}
public void setIncluded(List included) {
this.included = included;
}
/**
**/
public FeatureBundle optional(List optional) {
this.optional = optional;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("optional")
public List getOptional() {
return optional;
}
public void setOptional(List optional) {
this.optional = optional;
}
/**
**/
public FeatureBundle suggested(Boolean suggested) {
this.suggested = suggested;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("suggested")
public Boolean getSuggested() {
return suggested;
}
public void setSuggested(Boolean suggested) {
this.suggested = suggested;
}
/**
**/
public FeatureBundle 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;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FeatureBundle featureBundle = (FeatureBundle) o;
return Objects.equals(this.id, featureBundle.id) &&
Objects.equals(this.name, featureBundle.name) &&
Objects.equals(this.summary, featureBundle.summary) &&
Objects.equals(this.base, featureBundle.base) &&
Objects.equals(this.features, featureBundle.features) &&
Objects.equals(this.prices, featureBundle.prices) &&
Objects.equals(this.stars, featureBundle.stars) &&
Objects.equals(this.description, featureBundle.description) &&
Objects.equals(this.included, featureBundle.included) &&
Objects.equals(this.optional, featureBundle.optional) &&
Objects.equals(this.suggested, featureBundle.suggested) &&
Objects.equals(this.type, featureBundle.type);
}
@Override
public int hashCode() {
return Objects.hash(id, name, summary, base, features, prices, stars, description, included, optional, suggested, type);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FeatureBundle {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" summary: ").append(toIndentedString(summary)).append("\n");
sb.append(" base: ").append(toIndentedString(base)).append("\n");
sb.append(" features: ").append(toIndentedString(features)).append("\n");
sb.append(" prices: ").append(toIndentedString(prices)).append("\n");
sb.append(" stars: ").append(toIndentedString(stars)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).append("\n");
sb.append(" included: ").append(toIndentedString(included)).append("\n");
sb.append(" optional: ").append(toIndentedString(optional)).append("\n");
sb.append(" suggested: ").append(toIndentedString(suggested)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).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