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

com.sinch.sdk.domains.numbers.models.webhooks.EventStatus Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
package com.sinch.sdk.domains.numbers.models.webhooks;

import com.sinch.sdk.core.utils.EnumDynamic;
import com.sinch.sdk.core.utils.EnumSupportDynamic;
import java.util.Arrays;
import java.util.stream.Stream;

public final class EventStatus extends EnumDynamic {

  /**
   * The status of the event
   *
   * @see https://developers.sinch.com/docs/numbers/api-reference/numbers/tag/Callbacks/#tag/Callbacks/operation/ImportedNumberService_EventsCallback!path=status&t=request/
   * @since 1.0
   */
  public static final EventStatus SUCCEEDED = new EventStatus("SUCCEEDED");

  public static final EventStatus FAILED = new EventStatus("FAILED");

  private static final EnumSupportDynamic ENUM_SUPPORT =
      new EnumSupportDynamic<>(
          EventStatus.class, EventStatus::new, Arrays.asList(SUCCEEDED, FAILED));

  EventStatus(String value) {
    super(value);
  }

  public static Stream values() {
    return ENUM_SUPPORT.values();
  }

  public static EventStatus from(String value) {
    return ENUM_SUPPORT.from(value);
  }

  public static String valueOf(EventStatus e) {
    return ENUM_SUPPORT.valueOf(e);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy