com.criteo.marketing.model.PublisherStatsMessage 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.
*
* The version of the OpenAPI document: 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.PublisherFileStatsMessage;
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;
/**
* PublisherStatsMessage
*/
public class PublisherStatsMessage {
public static final String SERIALIZED_NAME_ADVERTISER_ID = "advertiserId";
@SerializedName(SERIALIZED_NAME_ADVERTISER_ID)
private Integer advertiserId;
public static final String SERIALIZED_NAME_STATS = "stats";
@SerializedName(SERIALIZED_NAME_STATS)
private List stats = null;
public static final String SERIALIZED_NAME_MESSAGE = "message";
@SerializedName(SERIALIZED_NAME_MESSAGE)
private String message;
public PublisherStatsMessage advertiserId(Integer advertiserId) {
this.advertiserId = advertiserId;
return this;
}
/**
* Get advertiserId
* @return advertiserId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Integer getAdvertiserId() {
return advertiserId;
}
public void setAdvertiserId(Integer advertiserId) {
this.advertiserId = advertiserId;
}
public PublisherStatsMessage stats(List stats) {
this.stats = stats;
return this;
}
public PublisherStatsMessage addStatsItem(PublisherFileStatsMessage statsItem) {
if (this.stats == null) {
this.stats = new ArrayList<>();
}
this.stats.add(statsItem);
return this;
}
/**
* Get stats
* @return stats
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getStats() {
return stats;
}
public void setStats(List stats) {
this.stats = stats;
}
public PublisherStatsMessage message(String message) {
this.message = message;
return this;
}
/**
* Get message
* @return message
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getMessage() {
return message;
}
public void setMessage(String message) {
this.message = message;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
PublisherStatsMessage publisherStatsMessage = (PublisherStatsMessage) o;
return Objects.equals(this.advertiserId, publisherStatsMessage.advertiserId) &&
Objects.equals(this.stats, publisherStatsMessage.stats) &&
Objects.equals(this.message, publisherStatsMessage.message);
}
@Override
public int hashCode() {
return Objects.hash(advertiserId, stats, message);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class PublisherStatsMessage {\n");
sb.append(" advertiserId: ").append(toIndentedString(advertiserId)).append("\n");
sb.append(" stats: ").append(toIndentedString(stats)).append("\n");
sb.append(" message: ").append(toIndentedString(message)).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