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

com.sinch.sdk.domains.verification.models.v1.webhooks.VerificationEventResponseAction Maven / Gradle / Ivy

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

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

/** Determines whether the verification can be executed. */
public class VerificationEventResponseAction
    extends EnumDynamic {

  /** Verification allowed */
  public static final VerificationEventResponseAction ALLOW =
      new VerificationEventResponseAction("allow");

  /** Verification denied */
  public static final VerificationEventResponseAction DENY =
      new VerificationEventResponseAction("deny");

  private static final EnumSupportDynamic ENUM_SUPPORT =
      new EnumSupportDynamic<>(
          VerificationEventResponseAction.class,
          VerificationEventResponseAction::new,
          Arrays.asList(ALLOW, DENY));

  private VerificationEventResponseAction(String value) {
    super(value);
  }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy