
com.infobip.model.MmsMessagePrice Maven / Gradle / Ivy
/*
* This class is auto generated from the Infobip OpenAPI specification
* through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR),
* powered by the OpenAPI Generator (https://openapi-generator.tech).
*
* Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide
* or contact us @ [email protected].
*/
package com.infobip.model;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.Objects;
/**
* Sent message price.
*/
public class MmsMessagePrice {
private Double pricePerMessage;
private String currency;
/**
* Sets pricePerMessage.
*
* Field description:
* Price per one message.
*
* @param pricePerMessage
* @return This {@link MmsMessagePrice instance}.
*/
public MmsMessagePrice pricePerMessage(Double pricePerMessage) {
this.pricePerMessage = pricePerMessage;
return this;
}
/**
* Returns pricePerMessage.
*
* Field description:
* Price per one message.
*
* @return pricePerMessage
*/
@JsonProperty("pricePerMessage")
public Double getPricePerMessage() {
return pricePerMessage;
}
/**
* Sets pricePerMessage.
*
* Field description:
* Price per one message.
*
* @param pricePerMessage
*/
@JsonProperty("pricePerMessage")
public void setPricePerMessage(Double pricePerMessage) {
this.pricePerMessage = pricePerMessage;
}
/**
* Sets currency.
*
* Field description:
* The currency in which the price is expressed.
*
* @param currency
* @return This {@link MmsMessagePrice instance}.
*/
public MmsMessagePrice currency(String currency) {
this.currency = currency;
return this;
}
/**
* Returns currency.
*
* Field description:
* The currency in which the price is expressed.
*
* @return currency
*/
@JsonProperty("currency")
public String getCurrency() {
return currency;
}
/**
* Sets currency.
*
* Field description:
* The currency in which the price is expressed.
*
* @param currency
*/
@JsonProperty("currency")
public void setCurrency(String currency) {
this.currency = currency;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
MmsMessagePrice mmsMessagePrice = (MmsMessagePrice) o;
return Objects.equals(this.pricePerMessage, mmsMessagePrice.pricePerMessage)
&& Objects.equals(this.currency, mmsMessagePrice.currency);
}
@Override
public int hashCode() {
return Objects.hash(pricePerMessage, currency);
}
@Override
public String toString() {
String newLine = System.lineSeparator();
return new StringBuilder()
.append("class MmsMessagePrice {")
.append(newLine)
.append(" pricePerMessage: ")
.append(toIndentedString(pricePerMessage))
.append(newLine)
.append(" currency: ")
.append(toIndentedString(currency))
.append(newLine)
.append("}")
.toString();
}
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
String lineSeparator = System.lineSeparator();
String lineSeparatorFollowedByIndentation = lineSeparator + " ";
return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation);
}
}