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

com.infobip.model.SmsPreviewRequest 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;

/**
 * Represents SmsPreviewRequest model.
 */
public class SmsPreviewRequest {

    private String text;

    private String languageCode;

    private String transliteration;

    /**
     * Sets text.
     * 

* Field description: * Content of the message being sent. *

* The field is required. * * @param text * @return This {@link SmsPreviewRequest instance}. */ public SmsPreviewRequest text(String text) { this.text = text; return this; } /** * Returns text. *

* Field description: * Content of the message being sent. *

* The field is required. * * @return text */ @JsonProperty("text") public String getText() { return text; } /** * Sets text. *

* Field description: * Content of the message being sent. *

* The field is required. * * @param text */ @JsonProperty("text") public void setText(String text) { this.text = text; } /** * Sets languageCode. *

* Field description: * Language code for the correct character set. Possible values: `TR` for Turkish, `ES` for Spanish, `PT` for Portuguese, or `AUTODETECT` to let platform select the character set based on message content. * * @param languageCode * @return This {@link SmsPreviewRequest instance}. */ public SmsPreviewRequest languageCode(String languageCode) { this.languageCode = languageCode; return this; } /** * Returns languageCode. *

* Field description: * Language code for the correct character set. Possible values: `TR` for Turkish, `ES` for Spanish, `PT` for Portuguese, or `AUTODETECT` to let platform select the character set based on message content. * * @return languageCode */ @JsonProperty("languageCode") public String getLanguageCode() { return languageCode; } /** * Sets languageCode. *

* Field description: * Language code for the correct character set. Possible values: `TR` for Turkish, `ES` for Spanish, `PT` for Portuguese, or `AUTODETECT` to let platform select the character set based on message content. * * @param languageCode */ @JsonProperty("languageCode") public void setLanguageCode(String languageCode) { this.languageCode = languageCode; } /** * Sets transliteration. *

* Field description: * The transliteration of your sent message from one script to another. Transliteration is used to replace characters which are not recognized as part of your defaulted alphabet. Possible values: `TURKISH`, `GREEK`, `CYRILLIC`, `SERBIAN_CYRILLIC`, `BULGARIAN_CYRILLIC`, `CENTRAL_EUROPEAN`, `BALTIC`, `PORTUGUESE`, `COLOMBIAN`, `NON_UNICDE`, `ALL` and `NONE`. * * @param transliteration * @return This {@link SmsPreviewRequest instance}. */ public SmsPreviewRequest transliteration(String transliteration) { this.transliteration = transliteration; return this; } /** * Returns transliteration. *

* Field description: * The transliteration of your sent message from one script to another. Transliteration is used to replace characters which are not recognized as part of your defaulted alphabet. Possible values: `TURKISH`, `GREEK`, `CYRILLIC`, `SERBIAN_CYRILLIC`, `BULGARIAN_CYRILLIC`, `CENTRAL_EUROPEAN`, `BALTIC`, `PORTUGUESE`, `COLOMBIAN`, `NON_UNICDE`, `ALL` and `NONE`. * * @return transliteration */ @JsonProperty("transliteration") public String getTransliteration() { return transliteration; } /** * Sets transliteration. *

* Field description: * The transliteration of your sent message from one script to another. Transliteration is used to replace characters which are not recognized as part of your defaulted alphabet. Possible values: `TURKISH`, `GREEK`, `CYRILLIC`, `SERBIAN_CYRILLIC`, `BULGARIAN_CYRILLIC`, `CENTRAL_EUROPEAN`, `BALTIC`, `PORTUGUESE`, `COLOMBIAN`, `NON_UNICDE`, `ALL` and `NONE`. * * @param transliteration */ @JsonProperty("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.text, smsPreviewRequest.text) && Objects.equals(this.languageCode, smsPreviewRequest.languageCode) && Objects.equals(this.transliteration, smsPreviewRequest.transliteration); } @Override public int hashCode() { return Objects.hash(text, languageCode, transliteration); } @Override public String toString() { String newLine = System.lineSeparator(); return new StringBuilder() .append("class SmsPreviewRequest {") .append(newLine) .append(" text: ") .append(toIndentedString(text)) .append(newLine) .append(" languageCode: ") .append(toIndentedString(languageCode)) .append(newLine) .append(" transliteration: ") .append(toIndentedString(transliteration)) .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); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy