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

com.infobip.model.MessagesApiInboundMoEventChannel Maven / Gradle / Ivy

The newest version!
/*
 * 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.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * Messaging channel using which the message was sent.
 */
public enum MessagesApiInboundMoEventChannel {
    SMS("SMS"),
    MMS("MMS"),
    WHATSAPP("WHATSAPP"),
    VIBER_BM("VIBER_BM"),
    VIBER_BOT("VIBER_BOT"),
    RCS("RCS"),
    APPLE_MB("APPLE_MB"),
    INSTAGRAM_DM("INSTAGRAM_DM"),
    MESSENGER("MESSENGER");

    private final String value;

    MessagesApiInboundMoEventChannel(String value) {
        this.value = value;
    }

    @JsonValue
    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return String.valueOf(value);
    }

    @JsonCreator
    public static MessagesApiInboundMoEventChannel fromValue(String value) {
        for (MessagesApiInboundMoEventChannel enumElement : MessagesApiInboundMoEventChannel.values()) {
            if (enumElement.value.equals(value)) {
                return enumElement;
            }
        }
        throw new IllegalArgumentException("Unexpected enum value '" + value + "'.");
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy