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
/*
 * 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 net.leanix.mtm.api.models.Feature;

/**
 * FeatureAccess
 */

public class FeatureAccess {
  @JsonProperty("feature")
  private Feature feature = null;

  @JsonProperty("granted")
  private Boolean granted = false;

  @JsonProperty("usedValue")
  private Integer usedValue = null;

  @JsonProperty("usedRole")
  private String usedRole = null;

  public FeatureAccess feature(Feature feature) {
    this.feature = feature;
    return this;
  }

   /**
   * Get feature
   * @return feature
  **/
  @ApiModelProperty(value = "")
  public Feature getFeature() {
    return feature;
  }

  public void setFeature(Feature feature) {
    this.feature = feature;
  }

  public FeatureAccess granted(Boolean granted) {
    this.granted = granted;
    return this;
  }

   /**
   * Get granted
   * @return granted
  **/
  @ApiModelProperty(value = "")
  public Boolean getGranted() {
    return granted;
  }

  public void setGranted(Boolean granted) {
    this.granted = granted;
  }

  public FeatureAccess usedValue(Integer usedValue) {
    this.usedValue = usedValue;
    return this;
  }

   /**
   * Get usedValue
   * @return usedValue
  **/
  @ApiModelProperty(value = "")
  public Integer getUsedValue() {
    return usedValue;
  }

  public void setUsedValue(Integer usedValue) {
    this.usedValue = usedValue;
  }

  public FeatureAccess usedRole(String usedRole) {
    this.usedRole = usedRole;
    return this;
  }

   /**
   * Get usedRole
   * @return usedRole
  **/
  @ApiModelProperty(value = "")
  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