content: /*
   * Selling Partner API for Listings Items
   * The Selling Partner API for Listings Items (Listings Items API) provides programmatic access to selling partner listings on Amazon. Use this API in collaboration with the Selling Partner API for Product Type Definitions, which you use to retrieve the information about Amazon product types needed to use the Listings Items API.  For more information, see the [Listings Items API Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/listings-items-api-v2021-08-01-use-case-guide).
   *
   * OpenAPI spec version: 2021-08-01
   * 
   *
   * 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 io.swagger.client.model.ListingsApi;
  
  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 io.swagger.client.model.ListingsApi.Issue;
  import io.swagger.client.model.ListingsApi.ItemIdentifiers;
  import java.io.IOException;
  import java.util.ArrayList;
  import java.util.List;
  
  /**
   * Response containing the results of a submission to the Selling Partner API for Listings Items.
   */
  @ApiModel(description = "Response containing the results of a submission to the Selling Partner API for Listings Items.")
  @javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2024-06-06T15:54:38.472-07:00")
  public class ListingsItemSubmissionResponse {
    @SerializedName("sku")
    private String sku = null;
  
    /**
     * The status of the listings item submission.
     */
    @JsonAdapter(StatusEnum.Adapter.class)
    public enum StatusEnum {
      ACCEPTED("ACCEPTED"),
      
      INVALID("INVALID"),
      
      VALID("VALID");
  
      private String value;
  
      StatusEnum(String value) {
        this.value = value;
      }
  
      public String getValue() {
        return value;
      }
  
      @Override
      public String toString() {
        return String.valueOf(value);
      }
  
      public static StatusEnum fromValue(String text) {
        for (StatusEnum b : StatusEnum.values()) {
          if (String.valueOf(b.value).equals(text)) {
            return b;
          }
        }
        return null;
      }
  
      public static class Adapter extends TypeAdapter<StatusEnum> {
        @Override
        public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException {
          jsonWriter.value(enumeration.getValue());
        }
  
        @Override
        public StatusEnum read(final JsonReader jsonReader) throws IOException {
          String value = jsonReader.nextString();
          return StatusEnum.fromValue(String.valueOf(value));
        }
      }
    }
  
    @SerializedName("status")
    private StatusEnum status = null;
  
    @SerializedName("submissionId")
    private String submissionId = null;
  
    @SerializedName("issues")
    private List<Issue> issues = null;
  
    @SerializedName("identifiers")
    private ItemIdentifiers identifiers = null;
  
    public ListingsItemSubmissionResponse sku(String sku) {
      this.sku = sku;
      return this;
    }
  
     /**
     * A selling partner provided identifier for an Amazon listing.
     * @return sku
    **/
    @ApiModelProperty(required = true, value = "A selling partner provided identifier for an Amazon listing.")
    public String getSku() {
      return sku;
    }
  
    public void setSku(String sku) {
      this.sku = sku;
    }
  
    public ListingsItemSubmissionResponse status(StatusEnum status) {
      this.status = status;
      return this;
    }
  
     /**
     * The status of the listings item submission.
     * @return status
    **/
    @ApiModelProperty(required = true, value = "The status of the listings item submission.")
    public StatusEnum getStatus() {
      return status;
    }
  
    public void setStatus(StatusEnum status) {
      this.status = status;
    }
  
    public ListingsItemSubmissionResponse submissionId(String submissionId) {
      this.submissionId = submissionId;
      return this;
    }
  
     /**
     * The unique identifier of the listings item submission.
     * @return submissionId
    **/
    @ApiModelProperty(required = true, value = "The unique identifier of the listings item submission.")
    public String getSubmissionId() {
      return submissionId;
    }
  
    public void setSubmissionId(String submissionId) {
      this.submissionId = submissionId;
    }
  
    public ListingsItemSubmissionResponse issues(List<Issue> issues) {
      this.issues = issues;
      return this;
    }
  
    public ListingsItemSubmissionResponse addIssuesItem(Issue issuesItem) {
      if (this.issues == null) {
        this.issues = new ArrayList<Issue>();
      }
      this.issues.add(issuesItem);
      return this;
    }
  
     /**
     * Listings item issues related to the listings item submission.
     * @return issues
    **/
    @ApiModelProperty(value = "Listings item issues related to the listings item submission.")
    public List<Issue> getIssues() {
      return issues;
    }
  
    public void setIssues(List<Issue> issues) {
      this.issues = issues;
    }
  
    public ListingsItemSubmissionResponse identifiers(ItemIdentifiers identifiers) {
      this.identifiers = identifiers;
      return this;
    }
  
     /**
     * Identity attributes associated with the item in the Amazon catalog, such as the ASIN.
     * @return identifiers
    **/
    @ApiModelProperty(value = "Identity attributes associated with the item in the Amazon catalog, such as the ASIN.")
    public ItemIdentifiers getIdentifiers() {
      return identifiers;
    }
  
    public void setIdentifiers(ItemIdentifiers identifiers) {
      this.identifiers = identifiers;
    }
  
  
    @Override
    public boolean equals(java.lang.Object o) {
      if (this == o) {
        return true;
      }
      if (o == null || getClass() != o.getClass()) {
        return false;
      }
      ListingsItemSubmissionResponse listingsItemSubmissionResponse = (ListingsItemSubmissionResponse) o;
      return Objects.equals(this.sku, listingsItemSubmissionResponse.sku) &&
          Objects.equals(this.status, listingsItemSubmissionResponse.status) &&
          Objects.equals(this.submissionId, listingsItemSubmissionResponse.submissionId) &&
          Objects.equals(this.issues, listingsItemSubmissionResponse.issues) &&
          Objects.equals(this.identifiers, listingsItemSubmissionResponse.identifiers);
    }
  
    @Override
    public int hashCode() {
      return Objects.hash(sku, status, submissionId, issues, identifiers);
    }
  
  
    @Override
    public String toString() {
      StringBuilder sb = new StringBuilder();
      sb.append("class ListingsItemSubmissionResponse {\n");
      
      sb.append("    sku: ").append(toIndentedString(sku)).append("\n");
      sb.append("    status: ").append(toIndentedString(status)).append("\n");
      sb.append("    submissionId: ").append(toIndentedString(submissionId)).append("\n");
      sb.append("    issues: ").append(toIndentedString(issues)).append("\n");
      sb.append("    identifiers: ").append(toIndentedString(identifiers)).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    ");
    }
  
  }
  
  