![JAR search and dependency download from the Maven repository](/logo.png)
sibModel.GetProductDetails Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sib-api-v3-sdk Show documentation
Show all versions of sib-api-v3-sdk Show documentation
SendinBlue's API v3 Java Library
The newest version!
/*
* SendinBlue API
* SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed | | 406 | Error. Not Acceptable |
*
* OpenAPI spec version: 3.0.0
* 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 sibModel;
import org.apache.commons.lang3.ObjectUtils;
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.util.ArrayList;
import java.util.List;
/**
* GetProductDetails
*/
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2023-02-28T15:16:18.937+05:30")
public class GetProductDetails {
@SerializedName("id")
private String id = null;
@SerializedName("name")
private String name = null;
@SerializedName("createdAt")
private String createdAt = null;
@SerializedName("modifiedAt")
private String modifiedAt = null;
@SerializedName("url")
private String url = null;
@SerializedName("imageUrl")
private String imageUrl = null;
@SerializedName("sku")
private String sku = null;
@SerializedName("price")
private Float price = null;
@SerializedName("categories")
private List categories = null;
@SerializedName("parentId")
private String parentId = null;
@SerializedName("s3Original")
private String s3Original = null;
@SerializedName("s3ThumbAnalytics")
private String s3ThumbAnalytics = null;
@SerializedName("metaInfo")
private Object metaInfo = null;
@SerializedName("s3ThumbEditor")
private String s3ThumbEditor = null;
public GetProductDetails id(String id) {
this.id = id;
return this;
}
/**
* Product ID for which you requested the details
* @return id
**/
@ApiModelProperty(example = "P11", required = true, value = "Product ID for which you requested the details")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public GetProductDetails name(String name) {
this.name = name;
return this;
}
/**
* Name of the product for which you requested the details
* @return name
**/
@ApiModelProperty(example = "Iphone 11", required = true, value = "Name of the product for which you requested the details")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public GetProductDetails createdAt(String createdAt) {
this.createdAt = createdAt;
return this;
}
/**
* Creation UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ)
* @return createdAt
**/
@ApiModelProperty(example = "2017-05-12T12:30:00.000+0000", required = true, value = "Creation UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ)")
public String getCreatedAt() {
return createdAt;
}
public void setCreatedAt(String createdAt) {
this.createdAt = createdAt;
}
public GetProductDetails modifiedAt(String modifiedAt) {
this.modifiedAt = modifiedAt;
return this;
}
/**
* Last modification UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ)
* @return modifiedAt
**/
@ApiModelProperty(example = "2017-05-12T12:30:00.000+0000", required = true, value = "Last modification UTC date-time of the product (YYYY-MM-DDTHH:mm:ss.SSSZ)")
public String getModifiedAt() {
return modifiedAt;
}
public void setModifiedAt(String modifiedAt) {
this.modifiedAt = modifiedAt;
}
public GetProductDetails url(String url) {
this.url = url;
return this;
}
/**
* URL to the product
* @return url
**/
@ApiModelProperty(example = "http://mydomain.com/product/electronics/product1", value = "URL to the product")
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public GetProductDetails imageUrl(String imageUrl) {
this.imageUrl = imageUrl;
return this;
}
/**
* Absolute URL to the cover image of the product
* @return imageUrl
**/
@ApiModelProperty(example = "http://mydomain.com/product-absoulte-url/img.jpeg", value = "Absolute URL to the cover image of the product")
public String getImageUrl() {
return imageUrl;
}
public void setImageUrl(String imageUrl) {
this.imageUrl = imageUrl;
}
public GetProductDetails sku(String sku) {
this.sku = sku;
return this;
}
/**
* Product identifier from the shop
* @return sku
**/
@ApiModelProperty(value = "Product identifier from the shop")
public String getSku() {
return sku;
}
public void setSku(String sku) {
this.sku = sku;
}
public GetProductDetails price(Float price) {
this.price = price;
return this;
}
/**
* Price of the product
* @return price
**/
@ApiModelProperty(value = "Price of the product")
public Float getPrice() {
return price;
}
public void setPrice(Float price) {
this.price = price;
}
public GetProductDetails categories(List categories) {
this.categories = categories;
return this;
}
public GetProductDetails addCategoriesItem(String categoriesItem) {
if (this.categories == null) {
this.categories = new ArrayList();
}
this.categories.add(categoriesItem);
return this;
}
/**
* Category ID-s of the product
* @return categories
**/
@ApiModelProperty(value = "Category ID-s of the product")
public List getCategories() {
return categories;
}
public void setCategories(List categories) {
this.categories = categories;
}
public GetProductDetails parentId(String parentId) {
this.parentId = parentId;
return this;
}
/**
* Parent product id of the product
* @return parentId
**/
@ApiModelProperty(value = "Parent product id of the product")
public String getParentId() {
return parentId;
}
public void setParentId(String parentId) {
this.parentId = parentId;
}
public GetProductDetails s3Original(String s3Original) {
this.s3Original = s3Original;
return this;
}
/**
* S3 url of original image
* @return s3Original
**/
@ApiModelProperty(value = "S3 url of original image")
public String getS3Original() {
return s3Original;
}
public void setS3Original(String s3Original) {
this.s3Original = s3Original;
}
public GetProductDetails s3ThumbAnalytics(String s3ThumbAnalytics) {
this.s3ThumbAnalytics = s3ThumbAnalytics;
return this;
}
/**
* S3 thumbnail url of original image in 120x120 dimension for analytics section
* @return s3ThumbAnalytics
**/
@ApiModelProperty(required = true, value = "S3 thumbnail url of original image in 120x120 dimension for analytics section")
public String getS3ThumbAnalytics() {
return s3ThumbAnalytics;
}
public void setS3ThumbAnalytics(String s3ThumbAnalytics) {
this.s3ThumbAnalytics = s3ThumbAnalytics;
}
public GetProductDetails metaInfo(Object metaInfo) {
this.metaInfo = metaInfo;
return this;
}
/**
* Meta data of product such as description, vendor, producer, stock level, etc.
* @return metaInfo
**/
@ApiModelProperty(example = "{\"description\":\"Shoes for sports\",\"brand\":\"addidas\"}", value = "Meta data of product such as description, vendor, producer, stock level, etc.")
public Object getMetaInfo() {
return metaInfo;
}
public void setMetaInfo(Object metaInfo) {
this.metaInfo = metaInfo;
}
public GetProductDetails s3ThumbEditor(String s3ThumbEditor) {
this.s3ThumbEditor = s3ThumbEditor;
return this;
}
/**
* S3 thumbnail url of original image in 600x400 dimension for editor section
* @return s3ThumbEditor
**/
@ApiModelProperty(required = true, value = "S3 thumbnail url of original image in 600x400 dimension for editor section")
public String getS3ThumbEditor() {
return s3ThumbEditor;
}
public void setS3ThumbEditor(String s3ThumbEditor) {
this.s3ThumbEditor = s3ThumbEditor;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
GetProductDetails getProductDetails = (GetProductDetails) o;
return ObjectUtils.equals(this.id, getProductDetails.id) &&
ObjectUtils.equals(this.name, getProductDetails.name) &&
ObjectUtils.equals(this.createdAt, getProductDetails.createdAt) &&
ObjectUtils.equals(this.modifiedAt, getProductDetails.modifiedAt) &&
ObjectUtils.equals(this.url, getProductDetails.url) &&
ObjectUtils.equals(this.imageUrl, getProductDetails.imageUrl) &&
ObjectUtils.equals(this.sku, getProductDetails.sku) &&
ObjectUtils.equals(this.price, getProductDetails.price) &&
ObjectUtils.equals(this.categories, getProductDetails.categories) &&
ObjectUtils.equals(this.parentId, getProductDetails.parentId) &&
ObjectUtils.equals(this.s3Original, getProductDetails.s3Original) &&
ObjectUtils.equals(this.s3ThumbAnalytics, getProductDetails.s3ThumbAnalytics) &&
ObjectUtils.equals(this.metaInfo, getProductDetails.metaInfo) &&
ObjectUtils.equals(this.s3ThumbEditor, getProductDetails.s3ThumbEditor);
}
@Override
public int hashCode() {
return ObjectUtils.hashCodeMulti(id, name, createdAt, modifiedAt, url, imageUrl, sku, price, categories, parentId, s3Original, s3ThumbAnalytics, metaInfo, s3ThumbEditor);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class GetProductDetails {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n");
sb.append(" url: ").append(toIndentedString(url)).append("\n");
sb.append(" imageUrl: ").append(toIndentedString(imageUrl)).append("\n");
sb.append(" sku: ").append(toIndentedString(sku)).append("\n");
sb.append(" price: ").append(toIndentedString(price)).append("\n");
sb.append(" categories: ").append(toIndentedString(categories)).append("\n");
sb.append(" parentId: ").append(toIndentedString(parentId)).append("\n");
sb.append(" s3Original: ").append(toIndentedString(s3Original)).append("\n");
sb.append(" s3ThumbAnalytics: ").append(toIndentedString(s3ThumbAnalytics)).append("\n");
sb.append(" metaInfo: ").append(toIndentedString(metaInfo)).append("\n");
sb.append(" s3ThumbEditor: ").append(toIndentedString(s3ThumbEditor)).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