
com.infobip.model.EmailPrice Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of infobip-api-java-client Show documentation
Show all versions of infobip-api-java-client Show documentation
API client in Java for Infobip's API (http://dev.infobip.com/).
/*
* Infobip Client API Libraries OpenAPI Specification
* OpenAPI specification containing public endpoints supported in client API libraries.
*
* Contact: [email protected]
*
* 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.infobip.model;
import com.google.gson.annotations.SerializedName;
import java.util.Objects;
/** EmailPrice */
public class EmailPrice {
public static final String SERIALIZED_NAME_CURRENCY = "currency";
@SerializedName(SERIALIZED_NAME_CURRENCY)
private String currency;
public static final String SERIALIZED_NAME_PRICE_PER_LOOKUP = "pricePerLookup";
@SerializedName(SERIALIZED_NAME_PRICE_PER_LOOKUP)
private Double pricePerLookup;
public static final String SERIALIZED_NAME_PRICE_PER_MESSAGE = "pricePerMessage";
@SerializedName(SERIALIZED_NAME_PRICE_PER_MESSAGE)
private Double pricePerMessage;
public EmailPrice currency(String currency) {
this.currency = currency;
return this;
}
/**
* Get currency
*
* @return currency
*/
public String getCurrency() {
return currency;
}
public void setCurrency(String currency) {
this.currency = currency;
}
public EmailPrice pricePerLookup(Double pricePerLookup) {
this.pricePerLookup = pricePerLookup;
return this;
}
/**
* Get pricePerLookup
*
* @return pricePerLookup
*/
public Double getPricePerLookup() {
return pricePerLookup;
}
public void setPricePerLookup(Double pricePerLookup) {
this.pricePerLookup = pricePerLookup;
}
public EmailPrice pricePerMessage(Double pricePerMessage) {
this.pricePerMessage = pricePerMessage;
return this;
}
/**
* Get pricePerMessage
*
* @return pricePerMessage
*/
public Double getPricePerMessage() {
return pricePerMessage;
}
public void setPricePerMessage(Double pricePerMessage) {
this.pricePerMessage = pricePerMessage;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
EmailPrice emailPrice = (EmailPrice) o;
return Objects.equals(this.currency, emailPrice.currency)
&& Objects.equals(this.pricePerLookup, emailPrice.pricePerLookup)
&& Objects.equals(this.pricePerMessage, emailPrice.pricePerMessage);
}
@Override
public int hashCode() {
return Objects.hash(currency, pricePerLookup, pricePerMessage);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EmailPrice {\n");
sb.append(" currency: ").append(toIndentedString(currency)).append("\n");
sb.append(" pricePerLookup: ").append(toIndentedString(pricePerLookup)).append("\n");
sb.append(" pricePerMessage: ").append(toIndentedString(pricePerMessage)).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(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy