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
/*
* MTM
* 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.Feature;
/**
* FeatureBundle
*/
public class FeatureBundle {
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
@JsonProperty("summary")
private String summary = null;
@JsonProperty("base")
private String base = null;
/**
* Gets or Sets type
*/
public enum TypeEnum {
EDITION("EDITION"),
CUSTOM("CUSTOM");
private String value;
TypeEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static TypeEnum fromValue(String text) {
for (TypeEnum b : TypeEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("type")
private TypeEnum type = null;
@JsonProperty("legacy")
private Boolean legacy = false;
@JsonProperty("version")
private String version = null;
@JsonProperty("features")
private List features = null;
@JsonProperty("description")
private String description = null;
public FeatureBundle 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 FeatureBundle 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 FeatureBundle summary(String summary) {
this.summary = summary;
return this;
}
/**
* Get summary
* @return summary
**/
@ApiModelProperty(value = "")
public String getSummary() {
return summary;
}
public void setSummary(String summary) {
this.summary = summary;
}
public FeatureBundle base(String base) {
this.base = base;
return this;
}
/**
* Get base
* @return base
**/
@ApiModelProperty(value = "")
public String getBase() {
return base;
}
public void setBase(String base) {
this.base = base;
}
public FeatureBundle type(TypeEnum type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(value = "")
public TypeEnum getType() {
return type;
}
public void setType(TypeEnum type) {
this.type = type;
}
public FeatureBundle legacy(Boolean legacy) {
this.legacy = legacy;
return this;
}
/**
* Get legacy
* @return legacy
**/
@ApiModelProperty(value = "")
public Boolean getLegacy() {
return legacy;
}
public void setLegacy(Boolean legacy) {
this.legacy = legacy;
}
public FeatureBundle version(String version) {
this.version = version;
return this;
}
/**
* Get version
* @return version
**/
@ApiModelProperty(value = "")
public String getVersion() {
return version;
}
public void setVersion(String version) {
this.version = version;
}
public FeatureBundle features(List features) {
this.features = features;
return this;
}
public FeatureBundle addFeaturesItem(Feature featuresItem) {
if (this.features == null) {
this.features = new ArrayList();
}
this.features.add(featuresItem);
return this;
}
/**
* Get features
* @return features
**/
@ApiModelProperty(value = "")
public List getFeatures() {
return features;
}
public void setFeatures(List features) {
this.features = features;
}
public FeatureBundle description(String description) {
this.description = description;
return this;
}
/**
* Get description
* @return description
**/
@ApiModelProperty(value = "")
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
@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.type, featureBundle.type) &&
Objects.equals(this.legacy, featureBundle.legacy) &&
Objects.equals(this.version, featureBundle.version) &&
Objects.equals(this.features, featureBundle.features) &&
Objects.equals(this.description, featureBundle.description);
}
@Override
public int hashCode() {
return Objects.hash(id, name, summary, base, type, legacy, version, features, description);
}
@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(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" legacy: ").append(toIndentedString(legacy)).append("\n");
sb.append(" version: ").append(toIndentedString(version)).append("\n");
sb.append(" features: ").append(toIndentedString(features)).append("\n");
sb.append(" description: ").append(toIndentedString(description)).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