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

com.messagebird.objects.integrations.HSMComponentFormat Maven / Gradle / Ivy

Go to download

The MessageBird API provides a API to the MessageBird SMS and voicemail services located at https://www.messagebird.com.

The newest version!
package com.messagebird.objects.integrations;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

/**
 * An enum for HSMComponentFormat
 *
 * @see HSMComponentFormat
 * @author ssk910
 */
public enum HSMComponentFormat {

  TEXT("TEXT"),
  IMAGE("IMAGE"),
  DOCUMENT("DOCUMENT"),
  VIDEO("VIDEO");

  private final String format;

  HSMComponentFormat(String format) {
    this.format = format;
  }

  @JsonCreator
  public static HSMComponentFormat forValue(String value) {
    for (HSMComponentFormat hsmComponentFormat : HSMComponentFormat.values()) {
      if (hsmComponentFormat.getFormat().equals(value)) {
        return hsmComponentFormat;
      }
    }

    return null;
  }

  @JsonValue
  public String toJson() {
    return getFormat();
  }

  public String getFormat() {
    return format;
  }

  @Override
  public String toString() {
    return getFormat();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy