com.criteo.api.retailmedia.v2021_10.model.ExternalStoreIdsUpdateModel202110 Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of criteo-api-retailmedia-sdk Show documentation
Show all versions of criteo-api-retailmedia-sdk Show documentation
JAVA SDK for Criteo API retailmedia for 2024_07 version
/*
* Criteo API
* Criteo publicly exposed API
*
* The version of the OpenAPI document: 2021-10
*
*
* 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.api.retailmedia.v2021_10.model;
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 java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* Update model for updating store target ids
*/
@ApiModel(description = "Update model for updating store target ids")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class ExternalStoreIdsUpdateModel202110 {
public static final String SERIALIZED_NAME_STORE_IDS = "storeIds";
@SerializedName(SERIALIZED_NAME_STORE_IDS)
private List storeIds = new ArrayList<>();
public ExternalStoreIdsUpdateModel202110 storeIds(List storeIds) {
this.storeIds = storeIds;
return this;
}
public ExternalStoreIdsUpdateModel202110 addStoreIdsItem(String storeIdsItem) {
this.storeIds.add(storeIdsItem);
return this;
}
/**
* Store ids that should be targeted
* @return storeIds
**/
@javax.annotation.Nonnull
@ApiModelProperty(required = true, value = "Store ids that should be targeted")
public List getStoreIds() {
return storeIds;
}
public void setStoreIds(List storeIds) {
this.storeIds = storeIds;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ExternalStoreIdsUpdateModel202110 externalStoreIdsUpdateModel202110 = (ExternalStoreIdsUpdateModel202110) o;
return Objects.equals(this.storeIds, externalStoreIdsUpdateModel202110.storeIds);
}
@Override
public int hashCode() {
return Objects.hash(storeIds);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ExternalStoreIdsUpdateModel202110 {\n");
sb.append(" storeIds: ").append(toIndentedString(storeIds)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}