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

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

There is a newer version: 1.7.25
Show newest version
package net.leanix.mtm.api.models;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;






public class ModulePurchase   {
  
  private String id = null;
  private Integer purchases = null;

  
  /**
   **/
  public ModulePurchase id(String id) {
    this.id = id;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("id")
  public String getId() {
    return id;
  }
  public void setId(String id) {
    this.id = id;
  }

  
  /**
   **/
  public ModulePurchase purchases(Integer purchases) {
    this.purchases = purchases;
    return this;
  }
  
  @ApiModelProperty(example = "null", value = "")
  @JsonProperty("purchases")
  public Integer getPurchases() {
    return purchases;
  }
  public void setPurchases(Integer purchases) {
    this.purchases = purchases;
  }

  

  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ModulePurchase modulePurchase = (ModulePurchase) o;
    return Objects.equals(this.id, modulePurchase.id) &&
        Objects.equals(this.purchases, modulePurchase.purchases);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, purchases);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ModulePurchase {\n");
    
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    purchases: ").append(toIndentedString(purchases)).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