com.criteo.marketing.model.SellerMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of marketing.java-client Show documentation
Show all versions of marketing.java-client Show documentation
Criteo Marketing SDK for Java
/*
* Marketing API v.1.0
* IMPORTANT: This swagger links to Criteo production environment. Any test applied here will thus impact real campaigns.
*
* OpenAPI spec version: v.1.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.criteo.marketing.model;
import java.util.Objects;
import java.util.Arrays;
import com.criteo.marketing.model.SellerInfoMessage;
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;
/**
* SellerMessage
*/
public class SellerMessage {
public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId";
@SerializedName(SERIALIZED_NAME_CAMPAIGN_ID)
private Integer campaignId;
public static final String SERIALIZED_NAME_SELLERS = "sellers";
@SerializedName(SERIALIZED_NAME_SELLERS)
private List sellers = new ArrayList<>();
public SellerMessage campaignId(Integer campaignId) {
this.campaignId = campaignId;
return this;
}
/**
* Get campaignId
* @return campaignId
**/
@ApiModelProperty(value = "")
public Integer getCampaignId() {
return campaignId;
}
public void setCampaignId(Integer campaignId) {
this.campaignId = campaignId;
}
public SellerMessage sellers(List sellers) {
this.sellers = sellers;
return this;
}
public SellerMessage addSellersItem(SellerInfoMessage sellersItem) {
if (this.sellers == null) {
this.sellers = new ArrayList<>();
}
this.sellers.add(sellersItem);
return this;
}
/**
* Get sellers
* @return sellers
**/
@ApiModelProperty(value = "")
public List getSellers() {
return sellers;
}
public void setSellers(List sellers) {
this.sellers = sellers;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SellerMessage sellerMessage = (SellerMessage) o;
return Objects.equals(this.campaignId, sellerMessage.campaignId) &&
Objects.equals(this.sellers, sellerMessage.sellers);
}
@Override
public int hashCode() {
return Objects.hash(campaignId, sellers);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SellerMessage {\n");
sb.append(" campaignId: ").append(toIndentedString(campaignId)).append("\n");
sb.append(" sellers: ").append(toIndentedString(sellers)).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 ");
}
}