net.leanix.mtm.api.models.FeatureAccess 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 io.swagger.annotations.ApiModelProperty;
import java.util.Objects;
public class FeatureAccess {
private Feature feature = null;
private Boolean granted = null;
private Integer usedValue = null;
private String usedRole = null;
/**
**/
public FeatureAccess feature(Feature feature) {
this.feature = feature;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("feature")
public Feature getFeature() {
return feature;
}
public void setFeature(Feature feature) {
this.feature = feature;
}
/**
**/
public FeatureAccess granted(Boolean granted) {
this.granted = granted;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("granted")
public Boolean getGranted() {
return granted;
}
public void setGranted(Boolean granted) {
this.granted = granted;
}
/**
**/
public FeatureAccess usedValue(Integer usedValue) {
this.usedValue = usedValue;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("usedValue")
public Integer getUsedValue() {
return usedValue;
}
public void setUsedValue(Integer usedValue) {
this.usedValue = usedValue;
}
/**
**/
public FeatureAccess usedRole(String usedRole) {
this.usedRole = usedRole;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("usedRole")
public String getUsedRole() {
return usedRole;
}
public void setUsedRole(String usedRole) {
this.usedRole = usedRole;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FeatureAccess featureAccess = (FeatureAccess) o;
return Objects.equals(this.feature, featureAccess.feature) &&
Objects.equals(this.granted, featureAccess.granted) &&
Objects.equals(this.usedValue, featureAccess.usedValue) &&
Objects.equals(this.usedRole, featureAccess.usedRole);
}
@Override
public int hashCode() {
return Objects.hash(feature, granted, usedValue, usedRole);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FeatureAccess {\n");
sb.append(" feature: ").append(toIndentedString(feature)).append("\n");
sb.append(" granted: ").append(toIndentedString(granted)).append("\n");
sb.append(" usedValue: ").append(toIndentedString(usedValue)).append("\n");
sb.append(" usedRole: ").append(toIndentedString(usedRole)).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