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
/*
* 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;
/**
* Feature
*/
public class Feature {
@JsonProperty("id")
private String id = null;
@JsonProperty("name")
private String name = null;
/**
* Gets or Sets type
*/
public enum TypeEnum {
FUNCTIONAL("FUNCTIONAL"),
QUOTA("QUOTA");
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("description")
private String description = null;
/**
* Gets or Sets status
*/
public enum StatusEnum {
DISABLED("DISABLED"),
ENABLED("ENABLED");
private String value;
StatusEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static StatusEnum fromValue(String text) {
for (StatusEnum b : StatusEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("status")
private StatusEnum status = null;
/**
* Gets or Sets group
*/
public enum GroupEnum {
BETA("BETA"),
PRODUCTIVE("PRODUCTIVE"),
LEGACY("LEGACY"),
CUSTOMER("CUSTOMER"),
EXCEPTION("EXCEPTION");
private String value;
GroupEnum(String value) {
this.value = value;
}
@JsonValue
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
@JsonCreator
public static GroupEnum fromValue(String text) {
for (GroupEnum b : GroupEnum.values()) {
if (String.valueOf(b.value).equals(text)) {
return b;
}
}
return null;
}
}
@JsonProperty("group")
private GroupEnum group = null;
@JsonProperty("quota")
private Integer quota = null;
@JsonProperty("roles")
private List roles = null;
@JsonProperty("customized")
private Boolean customized = false;
public Feature 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 Feature 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 Feature 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 Feature 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;
}
public Feature status(StatusEnum status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@ApiModelProperty(value = "")
public StatusEnum getStatus() {
return status;
}
public void setStatus(StatusEnum status) {
this.status = status;
}
public Feature group(GroupEnum group) {
this.group = group;
return this;
}
/**
* Get group
* @return group
**/
@ApiModelProperty(value = "")
public GroupEnum getGroup() {
return group;
}
public void setGroup(GroupEnum group) {
this.group = group;
}
public Feature quota(Integer quota) {
this.quota = quota;
return this;
}
/**
* Get quota
* @return quota
**/
@ApiModelProperty(value = "")
public Integer getQuota() {
return quota;
}
public void setQuota(Integer quota) {
this.quota = quota;
}
public Feature roles(List roles) {
this.roles = roles;
return this;
}
public Feature addRolesItem(String rolesItem) {
if (this.roles == null) {
this.roles = new ArrayList();
}
this.roles.add(rolesItem);
return this;
}
/**
* Get roles
* @return roles
**/
@ApiModelProperty(value = "")
public List getRoles() {
return roles;
}
public void setRoles(List roles) {
this.roles = roles;
}
public Feature customized(Boolean customized) {
this.customized = customized;
return this;
}
/**
* Get customized
* @return customized
**/
@ApiModelProperty(value = "")
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.group, feature.group) &&
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, group, 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(" group: ").append(toIndentedString(group)).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