All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.leanix.mtm.api.models.FeatureAccess Maven / Gradle / Ivy

There is a newer version: 1.7.25
Show newest version
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