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 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 HSMCategory {

  AUTHENTICATION("AUTHENTICATION"),
  UTILITY("UTILITY"),
  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 - 2024 Weber Informatics LLC | Privacy Policy