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

infobip.api.model.omni.send.SmsData Maven / Gradle / Ivy

There is a newer version: 4.4.0
Show newest version
package infobip.api.model.omni.send;

import infobip.api.model.omni.send.Language;
import java.util.concurrent.TimeUnit;

/**
 * This is a generated class and is not intended for modification!
 */
public class SmsData {
    private String transliteration;
    private Language language;
    private String text;
    private Long validityPeriod;
    private TimeUnit validityPeriodTimeUnit;

    public SmsData() {
    }

    public String getTransliteration() {
        return this.transliteration;
    }

    public SmsData setTransliteration(String transliteration) {
        this.transliteration = transliteration;
        return this;
    }

    public Language getLanguage() {
        return this.language;
    }

    public SmsData setLanguage(Language language) {
        this.language = language;
        return this;
    }

    public String getText() {
        return this.text;
    }

    public SmsData setText(String text) {
        this.text = text;
        return this;
    }

    public Long getValidityPeriod() {
        return this.validityPeriod;
    }

    public SmsData setValidityPeriod(Long validityPeriod) {
        this.validityPeriod = validityPeriod;
        return this;
    }

    public TimeUnit getValidityPeriodTimeUnit() {
        return this.validityPeriodTimeUnit;
    }

    public SmsData setValidityPeriodTimeUnit(TimeUnit validityPeriodTimeUnit) {
        this.validityPeriodTimeUnit = validityPeriodTimeUnit;
        return this;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }

        SmsData o = (SmsData)obj;
        if (this.transliteration == null) {
            if (o.transliteration != null){
                return false;
            }
        } else if (!this.transliteration.equals(o.transliteration)) {
            return false;
        }
        if (this.language == null) {
            if (o.language != null){
                return false;
            }
        } else if (!this.language.equals(o.language)) {
            return false;
        }
        if (this.text == null) {
            if (o.text != null){
                return false;
            }
        } else if (!this.text.equals(o.text)) {
            return false;
        }
        if (this.validityPeriod == null) {
            if (o.validityPeriod != null){
                return false;
            }
        } else if (!this.validityPeriod.equals(o.validityPeriod)) {
            return false;
        }
        if (this.validityPeriodTimeUnit == null) {
            if (o.validityPeriodTimeUnit != null){
                return false;
            }
        } else if (!this.validityPeriodTimeUnit.equals(o.validityPeriodTimeUnit)) {
            return false;
        }

        return true;
    }

    @Override
    public String toString() {
        return "SmsData{" +
            "transliteration='" + transliteration + "'" +
            ", language='" + language + "'" +
            ", text='" + text + "'" +
            ", validityPeriod='" + validityPeriod + "'" +
            ", validityPeriodTimeUnit='" + validityPeriodTimeUnit + "'" +
            '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy