/* * 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; /** * ASINIdentifier */ @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2020-12-16T17:41:56.163+08:00") public class ASINIdentifier { @SerializedName("MarketplaceId") private String marketplaceId = null; @SerializedName("ASIN") private String ASIN = null; public ASINIdentifier marketplaceId(String marketplaceId) { this.marketplaceId = marketplaceId; return this; } /** * A marketplace identifier. * @return marketplaceId **/ @ApiModelProperty(required = true, value = "A marketplace identifier.") public String getMarketplaceId() { return marketplaceId; } public void setMarketplaceId(String marketplaceId) { this.marketplaceId = marketplaceId; } public ASINIdentifier ASIN(String ASIN) { this.ASIN = ASIN; return this; } /** * The Amazon Standard Identification Number (ASIN) of the item. * @return ASIN **/ @ApiModelProperty(required = true, value = "The Amazon Standard Identification Number (ASIN) of the item.") public String getASIN() { return ASIN; } public void setASIN(String ASIN) { this.ASIN = ASIN; } @Override public boolean equals(java.lang.Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } ASINIdentifier asINIdentifier = (ASINIdentifier) o; return Objects.equals(this.marketplaceId, asINIdentifier.marketplaceId) && Objects.equals(this.ASIN, asINIdentifier.ASIN); } @Override public int hashCode() { return Objects.hash(marketplaceId, ASIN); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ASINIdentifier {\n"); sb.append(" marketplaceId: ").append(toIndentedString(marketplaceId)).append("\n"); sb.append(" ASIN: ").append(toIndentedString(ASIN)).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 "); } }