com.criteo.marketing.model.CreateSellerBudgetMapiMessage 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.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.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
/**
* CreateSellerBudgetMapiMessage
*/
public class CreateSellerBudgetMapiMessage {
public static final String SERIALIZED_NAME_AMOUNT = "amount";
@SerializedName(SERIALIZED_NAME_AMOUNT)
private String amount;
public static final String SERIALIZED_NAME_START_DATE = "startDate";
@SerializedName(SERIALIZED_NAME_START_DATE)
private OffsetDateTime startDate;
public static final String SERIALIZED_NAME_END_DATE = "endDate";
@SerializedName(SERIALIZED_NAME_END_DATE)
private String endDate;
public static final String SERIALIZED_NAME_CAMPAIGN_IDS = "campaignIds";
@SerializedName(SERIALIZED_NAME_CAMPAIGN_IDS)
private List campaignIds = null;
public static final String SERIALIZED_NAME_BUDGET_TYPE = "budgetType";
@SerializedName(SERIALIZED_NAME_BUDGET_TYPE)
private String budgetType;
public static final String SERIALIZED_NAME_SELLER_ID = "sellerId";
@SerializedName(SERIALIZED_NAME_SELLER_ID)
private String sellerId;
public CreateSellerBudgetMapiMessage amount(String amount) {
this.amount = amount;
return this;
}
/**
* Get amount
* @return amount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getAmount() {
return amount;
}
public void setAmount(String amount) {
this.amount = amount;
}
public CreateSellerBudgetMapiMessage startDate(OffsetDateTime startDate) {
this.startDate = startDate;
return this;
}
/**
* Get startDate
* @return startDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OffsetDateTime getStartDate() {
return startDate;
}
public void setStartDate(OffsetDateTime startDate) {
this.startDate = startDate;
}
public CreateSellerBudgetMapiMessage endDate(String endDate) {
this.endDate = endDate;
return this;
}
/**
* Get endDate
* @return endDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getEndDate() {
return endDate;
}
public void setEndDate(String endDate) {
this.endDate = endDate;
}
public CreateSellerBudgetMapiMessage campaignIds(List campaignIds) {
this.campaignIds = campaignIds;
return this;
}
public CreateSellerBudgetMapiMessage addCampaignIdsItem(Integer campaignIdsItem) {
if (this.campaignIds == null) {
this.campaignIds = new ArrayList<>();
}
this.campaignIds.add(campaignIdsItem);
return this;
}
/**
* Get campaignIds
* @return campaignIds
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public List getCampaignIds() {
return campaignIds;
}
public void setCampaignIds(List campaignIds) {
this.campaignIds = campaignIds;
}
public CreateSellerBudgetMapiMessage budgetType(String budgetType) {
this.budgetType = budgetType;
return this;
}
/**
* Get budgetType
* @return budgetType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getBudgetType() {
return budgetType;
}
public void setBudgetType(String budgetType) {
this.budgetType = budgetType;
}
public CreateSellerBudgetMapiMessage sellerId(String sellerId) {
this.sellerId = sellerId;
return this;
}
/**
* Get sellerId
* @return sellerId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getSellerId() {
return sellerId;
}
public void setSellerId(String sellerId) {
this.sellerId = sellerId;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
CreateSellerBudgetMapiMessage createSellerBudgetMapiMessage = (CreateSellerBudgetMapiMessage) o;
return Objects.equals(this.amount, createSellerBudgetMapiMessage.amount) &&
Objects.equals(this.startDate, createSellerBudgetMapiMessage.startDate) &&
Objects.equals(this.endDate, createSellerBudgetMapiMessage.endDate) &&
Objects.equals(this.campaignIds, createSellerBudgetMapiMessage.campaignIds) &&
Objects.equals(this.budgetType, createSellerBudgetMapiMessage.budgetType) &&
Objects.equals(this.sellerId, createSellerBudgetMapiMessage.sellerId);
}
@Override
public int hashCode() {
return Objects.hash(amount, startDate, endDate, campaignIds, budgetType, sellerId);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class CreateSellerBudgetMapiMessage {\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n");
sb.append(" campaignIds: ").append(toIndentedString(campaignIds)).append("\n");
sb.append(" budgetType: ").append(toIndentedString(budgetType)).append("\n");
sb.append(" sellerId: ").append(toIndentedString(sellerId)).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