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

com.anaptecs.jeaf.openapi.Product Maven / Gradle / Ivy

There is a newer version: 1.24.2
Show newest version
/*
 * Product Base Definitions
 * This component represents the Open API interface of the accounting service. 
 *
 * OpenAPI spec version: 0.0.1
 * Contact: [email protected]
 *
 * 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 com.anaptecs.jeaf.openapi;

import java.util.Objects;
import java.util.Arrays;
import com.anaptecs.jeaf.openapi.Reseller;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.v3.oas.annotations.media.Schema;
import java.util.ArrayList;
import java.util.List;
/**
 * Product
 */


public class Product {
  @JsonProperty("resellers")
  private List resellers = null;

  @JsonProperty("image")
  private List image = new ArrayList<>();

  @JsonProperty("link")
  private String link = null;

  @JsonProperty("productID")
  private String productID = null;

  public Product resellers(List resellers) {
    this.resellers = resellers;
    return this;
  }

  public Product addResellersItem(Reseller resellersItem) {
    if (this.resellers == null) {
      this.resellers = new ArrayList<>();
    }
    this.resellers.add(resellersItem);
    return this;
  }

   /**
   * Get resellers
   * @return resellers
  **/
  @Schema(description = "")
  public List getResellers() {
    return resellers;
  }

  public void setResellers(List resellers) {
    this.resellers = resellers;
  }

  public Product image(List image) {
    this.image = image;
    return this;
  }

  public Product addImageItem(Integer imageItem) {
    this.image.add(imageItem);
    return this;
  }

   /**
   * Get image
   * @return image
  **/
  @Schema(required = true, description = "")
  public List getImage() {
    return image;
  }

  public void setImage(List image) {
    this.image = image;
  }

  public Product link(String link) {
    this.link = link;
    return this;
  }

   /**
   * Get link
   * @return link
  **/
  @Schema(example = "https://www.company.com/products/1345-345", description = "")
  public String getLink() {
    return link;
  }

  public void setLink(String link) {
    this.link = link;
  }

  public Product productID(String productID) {
    this.productID = productID;
    return this;
  }

   /**
   * Get productID
   * @return productID
  **/
  @Schema(description = "")
  public String getProductID() {
    return productID;
  }

  public void setProductID(String productID) {
    this.productID = productID;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Product product = (Product) o;
    return Objects.equals(this.resellers, product.resellers) &&
        Objects.equals(this.image, product.image) &&
        Objects.equals(this.link, product.link) &&
        Objects.equals(this.productID, product.productID);
  }

  @Override
  public int hashCode() {
    return Objects.hash(resellers, image, link, productID);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Product {\n");
    
    sb.append("    resellers: ").append(toIndentedString(resellers)).append("\n");
    sb.append("    image: ").append(toIndentedString(image)).append("\n");
    sb.append("    link: ").append(toIndentedString(link)).append("\n");
    sb.append("    productID: ").append(toIndentedString(productID)).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