net.leanix.mtm.api.models.Price 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 Price {
private String currency = null;
private Float amount = null;
private String text = null;
/**
**/
public Price currency(String currency) {
this.currency = currency;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("currency")
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
/**
**/
public Price amount(Float amount) {
this.amount = amount;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("amount")
public Float getAmount() {
return amount;
}
public void setAmount(Float amount) {
this.amount = amount;
}
/**
**/
public Price text(String text) {
this.text = text;
return this;
}
@ApiModelProperty(example = "null", value = "")
@JsonProperty("text")
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Price price = (Price) o;
return Objects.equals(this.currency, price.currency) &&
Objects.equals(this.amount, price.amount) &&
Objects.equals(this.text, price.text);
}
@Override
public int hashCode() {
return Objects.hash(currency, amount, text);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Price {\n");
sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" text: ").append(toIndentedString(text)).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