
com.infobip.model.SmsPreviewRequest 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;
/** SmsPreviewRequest */
public class SmsPreviewRequest {
public static final String SERIALIZED_NAME_LANGUAGE_CODE = "languageCode";
@SerializedName(SERIALIZED_NAME_LANGUAGE_CODE)
private String languageCode;
public static final String SERIALIZED_NAME_TEXT = "text";
@SerializedName(SERIALIZED_NAME_TEXT)
private String text;
public static final String SERIALIZED_NAME_TRANSLITERATION = "transliteration";
@SerializedName(SERIALIZED_NAME_TRANSLITERATION)
private String transliteration;
public SmsPreviewRequest languageCode(String languageCode) {
this.languageCode = languageCode;
return this;
}
/**
* Code for language character set of a message text. Possible values: `TR` for Turkish,
* `ES` for Spanish, `PT` for Portuguese and `AUTODETECT` to let
* platform pick character set automatically based on the message text.
*
* @return languageCode
*/
public String getLanguageCode() {
return languageCode;
}
public void setLanguageCode(String languageCode) {
this.languageCode = languageCode;
}
public SmsPreviewRequest text(String text) {
this.text = text;
return this;
}
/**
* Message text to preview.
*
* @return text
*/
public String getText() {
return text;
}
public void setText(String text) {
this.text = text;
}
public SmsPreviewRequest transliteration(String transliteration) {
this.transliteration = transliteration;
return this;
}
/**
* Conversion of a message text from one script to another. Possible values: `TURKISH`,
* `GREEK`, `CYRILLIC`, `SERBIAN_CYRILLIC`,
* `CENTRAL_EUROPEAN`, `BALTIC` and `NON_UNICODE`.
*
* @return transliteration
*/
public String getTransliteration() {
return transliteration;
}
public void setTransliteration(String transliteration) {
this.transliteration = transliteration;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
SmsPreviewRequest smsPreviewRequest = (SmsPreviewRequest) o;
return Objects.equals(this.languageCode, smsPreviewRequest.languageCode)
&& Objects.equals(this.text, smsPreviewRequest.text)
&& Objects.equals(this.transliteration, smsPreviewRequest.transliteration);
}
@Override
public int hashCode() {
return Objects.hash(languageCode, text, transliteration);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SmsPreviewRequest {\n");
sb.append(" languageCode: ").append(toIndentedString(languageCode)).append("\n");
sb.append(" text: ").append(toIndentedString(text)).append("\n");
sb.append(" transliteration: ").append(toIndentedString(transliteration)).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