com.criteo.marketing.model.SellerBudgetResponseMessage 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;
/**
* SellerBudgetResponseMessage
*/
public class SellerBudgetResponseMessage {
public static final String SERIALIZED_NAME_BUDGET_ID = "budgetId";
@SerializedName(SERIALIZED_NAME_BUDGET_ID)
private Long budgetId;
public static final String SERIALIZED_NAME_SELLER_NAME = "sellerName";
@SerializedName(SERIALIZED_NAME_SELLER_NAME)
private String sellerName;
public static final String SERIALIZED_NAME_AMOUNT = "amount";
@SerializedName(SERIALIZED_NAME_AMOUNT)
private Double 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 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 SellerBudgetResponseMessage 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 SellerBudgetResponseMessage sellerName(String sellerName) {
this.sellerName = sellerName;
return this;
}
/**
* Seller name is case insensitive.
* @return sellerName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Seller name is case insensitive.")
public String getSellerName() {
return sellerName;
}
public void setSellerName(String sellerName) {
this.sellerName = sellerName;
}
public SellerBudgetResponseMessage 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 SellerBudgetResponseMessage 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 SellerBudgetResponseMessage 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 SellerBudgetResponseMessage 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;
}
SellerBudgetResponseMessage sellerBudgetResponseMessage = (SellerBudgetResponseMessage) o;
return Objects.equals(this.budgetId, sellerBudgetResponseMessage.budgetId) &&
Objects.equals(this.sellerName, sellerBudgetResponseMessage.sellerName) &&
Objects.equals(this.amount, sellerBudgetResponseMessage.amount) &&
Objects.equals(this.startDate, sellerBudgetResponseMessage.startDate) &&
Objects.equals(this.endDate, sellerBudgetResponseMessage.endDate) &&
Objects.equals(this.status, sellerBudgetResponseMessage.status);
}
@Override
public int hashCode() {
return Objects.hash(budgetId, sellerName, amount, startDate, endDate, status);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SellerBudgetResponseMessage {\n");
sb.append(" budgetId: ").append(toIndentedString(budgetId)).append("\n");
sb.append(" sellerName: ").append(toIndentedString(sellerName)).append("\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(" 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