All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.criteo.marketing.model.SellerCampaignMessage Maven / Gradle / Ivy

There is a newer version: 1.0.28
Show newest version
/*
 * 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;

/**
 * SellerCampaignMessage
 */

public class SellerCampaignMessage {
  public static final String SERIALIZED_NAME_ID = "id";
  @SerializedName(SERIALIZED_NAME_ID)
  private String id;

  public static final String SERIALIZED_NAME_SELLER_ID = "sellerId";
  @SerializedName(SERIALIZED_NAME_SELLER_ID)
  private String sellerId;

  public static final String SERIALIZED_NAME_CAMPAIGN_ID = "campaignId";
  @SerializedName(SERIALIZED_NAME_CAMPAIGN_ID)
  private Integer campaignId;

  public static final String SERIALIZED_NAME_BID = "bid";
  @SerializedName(SERIALIZED_NAME_BID)
  private Double bid;

  public static final String SERIALIZED_NAME_SUSPENDED_SINCE = "suspendedSince";
  @SerializedName(SERIALIZED_NAME_SUSPENDED_SINCE)
  private OffsetDateTime suspendedSince;


   /**
   * Get id
   * @return id
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public String getId() {
    return id;
  }




  public SellerCampaignMessage 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;
  }


  public SellerCampaignMessage campaignId(Integer campaignId) {
    
    this.campaignId = campaignId;
    return this;
  }

   /**
   * Get campaignId
   * @return campaignId
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Integer getCampaignId() {
    return campaignId;
  }



  public void setCampaignId(Integer campaignId) {
    this.campaignId = campaignId;
  }


  public SellerCampaignMessage bid(Double bid) {
    
    this.bid = bid;
    return this;
  }

   /**
   * Get bid
   * @return bid
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public Double getBid() {
    return bid;
  }



  public void setBid(Double bid) {
    this.bid = bid;
  }


  public SellerCampaignMessage suspendedSince(OffsetDateTime suspendedSince) {
    
    this.suspendedSince = suspendedSince;
    return this;
  }

   /**
   * Get suspendedSince
   * @return suspendedSince
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public OffsetDateTime getSuspendedSince() {
    return suspendedSince;
  }



  public void setSuspendedSince(OffsetDateTime suspendedSince) {
    this.suspendedSince = suspendedSince;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    SellerCampaignMessage sellerCampaignMessage = (SellerCampaignMessage) o;
    return Objects.equals(this.id, sellerCampaignMessage.id) &&
        Objects.equals(this.sellerId, sellerCampaignMessage.sellerId) &&
        Objects.equals(this.campaignId, sellerCampaignMessage.campaignId) &&
        Objects.equals(this.bid, sellerCampaignMessage.bid) &&
        Objects.equals(this.suspendedSince, sellerCampaignMessage.suspendedSince);
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, sellerId, campaignId, bid, suspendedSince);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class SellerCampaignMessage {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    sellerId: ").append(toIndentedString(sellerId)).append("\n");
    sb.append("    campaignId: ").append(toIndentedString(campaignId)).append("\n");
    sb.append("    bid: ").append(toIndentedString(bid)).append("\n");
    sb.append("    suspendedSince: ").append(toIndentedString(suspendedSince)).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