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

net.leanix.mtm.api.models.FeatureAccessRequest 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 java.util.ArrayList;
import java.util.List;
import net.leanix.mtm.api.models.Feature;

/**
 * FeatureAccessRequest
 */

public class FeatureAccessRequest {
  @JsonProperty("edition")
  private String edition = null;

  @JsonProperty("custom")
  private List custom = null;

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

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

  public FeatureAccessRequest edition(String edition) {
    this.edition = edition;
    return this;
  }

   /**
   * Get edition
   * @return edition
  **/
  @ApiModelProperty(value = "")
  public String getEdition() {
    return edition;
  }

  public void setEdition(String edition) {
    this.edition = edition;
  }

  public FeatureAccessRequest custom(List custom) {
    this.custom = custom;
    return this;
  }

  public FeatureAccessRequest addCustomItem(Feature customItem) {
    if (this.custom == null) {
      this.custom = new ArrayList();
    }
    this.custom.add(customItem);
    return this;
  }

   /**
   * Get custom
   * @return custom
  **/
  @ApiModelProperty(value = "")
  public List getCustom() {
    return custom;
  }

  public void setCustom(List custom) {
    this.custom = custom;
  }

  public FeatureAccessRequest value(Integer value) {
    this.value = value;
    return this;
  }

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

  public void setValue(Integer value) {
    this.value = value;
  }

  public FeatureAccessRequest role(String role) {
    this.role = role;
    return this;
  }

   /**
   * Get role
   * @return role
  **/
  @ApiModelProperty(value = "")
  public String getRole() {
    return role;
  }

  public void setRole(String role) {
    this.role = role;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    FeatureAccessRequest featureAccessRequest = (FeatureAccessRequest) o;
    return Objects.equals(this.edition, featureAccessRequest.edition) &&
        Objects.equals(this.custom, featureAccessRequest.custom) &&
        Objects.equals(this.value, featureAccessRequest.value) &&
        Objects.equals(this.role, featureAccessRequest.role);
  }

  @Override
  public int hashCode() {
    return Objects.hash(edition, custom, value, role);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class FeatureAccessRequest {\n");
    
    sb.append("    edition: ").append(toIndentedString(edition)).append("\n");
    sb.append("    custom: ").append(toIndentedString(custom)).append("\n");
    sb.append("    value: ").append(toIndentedString(value)).append("\n");
    sb.append("    role: ").append(toIndentedString(role)).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