/* * Selling Partner API for Catalog Items * The Selling Partner API for Catalog Items helps you programmatically retrieve item details for items in the catalog. * * OpenAPI spec version: v0 * * * 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 cn.amazon.aws.rp.spapi.clients.model; import java.util.Objects; import java.util.Arrays; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.annotations.SerializedName; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import java.math.BigDecimal; /** * The price attribute of the item. */ @ApiModel(description = "The price attribute of the item.") @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-16T17:41:56.163+08:00") public class Price { @SerializedName("Amount") private BigDecimal amount = null; @SerializedName("CurrencyCode") private String currencyCode = null; public Price amount(BigDecimal amount) { this.amount = amount; return this; } /** * The amount. * @return amount **/ @ApiModelProperty(value = "The amount.") public BigDecimal getAmount() { return amount; } public void setAmount(BigDecimal amount) { this.amount = amount; } public Price currencyCode(String currencyCode) { this.currencyCode = currencyCode; return this; } /** * The currency code of the amount. * @return currencyCode **/ @ApiModelProperty(value = "The currency code of the amount.") public String getCurrencyCode() { return currencyCode; } public void setCurrencyCode(String currencyCode) { this.currencyCode = currencyCode; } @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.amount, price.amount) && Objects.equals(this.currencyCode, price.currencyCode); } @Override public int hashCode() { return Objects.hash(amount, currencyCode); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Price {\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).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 "); } }