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

com.plivo.api.validators.OneOf Maven / Gradle / Ivy

Go to download

A Java SDK to make voice calls & send SMS using Plivo and to generate Plivo XML

There is a newer version: 5.46.0
Show newest version
package com.plivo.api.validators;

import java.lang.annotation.Retention;
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.PARAMETER;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

@Target({FIELD, PARAMETER})
@Retention(value = RUNTIME)
public @interface OneOf {

  /**
   * @return error message to return when validation fails
   */
  String message() default "value not in options";

  /**
   * @return array of possible options
   */
  String[] options();

  /**
   * @return caseSensitive of possible options
   */
  boolean caseSensitive() default false;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy