com.criteo.marketing.model.SellerBudgetInfoMessage 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;
/**
* SellerBudgetInfoMessage
*/
public class SellerBudgetInfoMessage {
public static final String SERIALIZED_NAME_BUDGET_ID = "budgetId";
@SerializedName(SERIALIZED_NAME_BUDGET_ID)
private Long budgetId;
public static final String SERIALIZED_NAME_AMOUNT = "amount";
@SerializedName(SERIALIZED_NAME_AMOUNT)
private Double amount;
public static final String SERIALIZED_NAME_SPENT_AMOUNT = "spentAmount";
@SerializedName(SERIALIZED_NAME_SPENT_AMOUNT)
private Double spentAmount;
public static final String SERIALIZED_NAME_REMAINING_AMOUNT = "remainingAmount";
@SerializedName(SERIALIZED_NAME_REMAINING_AMOUNT)
private Double remainingAmount;
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 OffsetDateTime endDate;
/**
* Gets or Sets status
*/
@JsonAdapter(StatusEnum.Adapter.class)
public enum StatusEnum {
INACTIVE("Inactive"),
ACTIVE("Active");
private String value;
StatusEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static StatusEnum fromValue(String value) {
for (StatusEnum b : StatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public StatusEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return StatusEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_STATUS = "status";
@SerializedName(SERIALIZED_NAME_STATUS)
private StatusEnum status;
public SellerBudgetInfoMessage budgetId(Long budgetId) {
this.budgetId = budgetId;
return this;
}
/**
* Get budgetId
* @return budgetId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getBudgetId() {
return budgetId;
}
public void setBudgetId(Long budgetId) {
this.budgetId = budgetId;
}
public SellerBudgetInfoMessage amount(Double amount) {
this.amount = amount;
return this;
}
/**
* Get amount
* @return amount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Double getAmount() {
return amount;
}
public void setAmount(Double amount) {
this.amount = amount;
}
public SellerBudgetInfoMessage spentAmount(Double spentAmount) {
this.spentAmount = spentAmount;
return this;
}
/**
* Get spentAmount
* @return spentAmount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Double getSpentAmount() {
return spentAmount;
}
public void setSpentAmount(Double spentAmount) {
this.spentAmount = spentAmount;
}
public SellerBudgetInfoMessage remainingAmount(Double remainingAmount) {
this.remainingAmount = remainingAmount;
return this;
}
/**
* Get remainingAmount
* @return remainingAmount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Double getRemainingAmount() {
return remainingAmount;
}
public void setRemainingAmount(Double remainingAmount) {
this.remainingAmount = remainingAmount;
}
public SellerBudgetInfoMessage 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 SellerBudgetInfoMessage endDate(OffsetDateTime endDate) {
this.endDate = endDate;
return this;
}
/**
* Get endDate
* @return endDate
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public OffsetDateTime getEndDate() {
return endDate;
}
public void setEndDate(OffsetDateTime endDate) {
this.endDate = endDate;
}
public SellerBudgetInfoMessage status(StatusEnum status) {
this.status = status;
return this;
}
/**
* Get status
* @return status
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public StatusEnum getStatus() {
return status;
}
public void setStatus(StatusEnum status) {
this.status = status;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SellerBudgetInfoMessage sellerBudgetInfoMessage = (SellerBudgetInfoMessage) o;
return Objects.equals(this.budgetId, sellerBudgetInfoMessage.budgetId) &&
Objects.equals(this.amount, sellerBudgetInfoMessage.amount) &&
Objects.equals(this.spentAmount, sellerBudgetInfoMessage.spentAmount) &&
Objects.equals(this.remainingAmount, sellerBudgetInfoMessage.remainingAmount) &&
Objects.equals(this.startDate, sellerBudgetInfoMessage.startDate) &&
Objects.equals(this.endDate, sellerBudgetInfoMessage.endDate) &&
Objects.equals(this.status, sellerBudgetInfoMessage.status);
}
@Override
public int hashCode() {
return Objects.hash(budgetId, amount, spentAmount, remainingAmount, startDate, endDate, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SellerBudgetInfoMessage {\n");
sb.append(" budgetId: ").append(toIndentedString(budgetId)).append("\n");
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
sb.append(" spentAmount: ").append(toIndentedString(spentAmount)).append("\n");
sb.append(" remainingAmount: ").append(toIndentedString(remainingAmount)).append("\n");
sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n");
sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n");
sb.append(" status: ").append(toIndentedString(status)).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