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

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

Go to download

The MessageBird API provides an API to the MessageBird SMS, Chat and Voice services located at https://www.messagebird.com.

There is a newer version: 6.2.2
Show 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 HSMCategory {

  OTP("OTP"),
  TRANSACTIONAL("TRANSACTIONAL"),
  MARKETING("MARKETING");

  private final String category;

  HSMCategory(String category) {
    this.category = category;
  }

  @JsonCreator
  public static HSMCategory forValue(String value) {
    for (HSMCategory hsmCategory : HSMCategory.values()) {
      if (hsmCategory.getCategory().equals(value)) {
        return hsmCategory;
      }
    }

    return null;
  }

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

  public String getCategory() {
    return category;
  }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy