com.criteo.marketing.model.Shipping 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.criteo.marketing.model.Price;
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;
/**
* Shipping
*/
public class Shipping {
public static final String SERIALIZED_NAME_COUNTRY = "country";
@SerializedName(SERIALIZED_NAME_COUNTRY)
private String country;
public static final String SERIALIZED_NAME_LOCATION_ID = "locationId";
@SerializedName(SERIALIZED_NAME_LOCATION_ID)
private Long locationId;
public static final String SERIALIZED_NAME_POSTAL_CODE = "postalCode";
@SerializedName(SERIALIZED_NAME_POSTAL_CODE)
private String postalCode;
public static final String SERIALIZED_NAME_PRICE = "price";
@SerializedName(SERIALIZED_NAME_PRICE)
private Price price;
public static final String SERIALIZED_NAME_REGION = "region";
@SerializedName(SERIALIZED_NAME_REGION)
private String region;
public static final String SERIALIZED_NAME_SERVICE = "service";
@SerializedName(SERIALIZED_NAME_SERVICE)
private String service;
public Shipping country(String country) {
this.country = country;
return this;
}
/**
* Get country
* @return country
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getCountry() {
return country;
}
public void setCountry(String country) {
this.country = country;
}
public Shipping locationId(Long locationId) {
this.locationId = locationId;
return this;
}
/**
* Get locationId
* @return locationId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Long getLocationId() {
return locationId;
}
public void setLocationId(Long locationId) {
this.locationId = locationId;
}
public Shipping postalCode(String postalCode) {
this.postalCode = postalCode;
return this;
}
/**
* Get postalCode
* @return postalCode
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getPostalCode() {
return postalCode;
}
public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}
public Shipping price(Price price) {
this.price = price;
return this;
}
/**
* Get price
* @return price
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public Price getPrice() {
return price;
}
public void setPrice(Price price) {
this.price = price;
}
public Shipping region(String region) {
this.region = region;
return this;
}
/**
* Get region
* @return region
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getRegion() {
return region;
}
public void setRegion(String region) {
this.region = region;
}
public Shipping service(String service) {
this.service = service;
return this;
}
/**
* Get service
* @return service
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public String getService() {
return service;
}
public void setService(String service) {
this.service = service;
}
@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Shipping shipping = (Shipping) o;
return Objects.equals(this.country, shipping.country) &&
Objects.equals(this.locationId, shipping.locationId) &&
Objects.equals(this.postalCode, shipping.postalCode) &&
Objects.equals(this.price, shipping.price) &&
Objects.equals(this.region, shipping.region) &&
Objects.equals(this.service, shipping.service);
}
@Override
public int hashCode() {
return Objects.hash(country, locationId, postalCode, price, region, service);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Shipping {\n");
sb.append(" country: ").append(toIndentedString(country)).append("\n");
sb.append(" locationId: ").append(toIndentedString(locationId)).append("\n");
sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n");
sb.append(" price: ").append(toIndentedString(price)).append("\n");
sb.append(" region: ").append(toIndentedString(region)).append("\n");
sb.append(" service: ").append(toIndentedString(service)).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