Class Input<V>

java.lang.Object
io.github.belgif.rest.problem.api.Input<V>
Type Parameters:
V - the input value type

public class Input<V> extends Object
Input model for InputValidationIssue.getInputs().

The recommended way for clients to instantiate an Input is through these factory methods:

  • Constructor Details

    • Input

      public Input()
    • Input

      public Input(InEnum in, String name, V value)
  • Method Details

    • getIn

      public InEnum getIn()
    • setIn

      public void setIn(InEnum in)
    • getName

      public String getName()
    • setName

      public void setName(String name)
    • getValue

      public V getValue()
    • setValue

      public void setValue(V value)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • body

      public static <V> Input<V> body(String name, V value)
    • query

      public static <V> Input<V> query(String name, V value)
    • path

      public static <V> Input<V> path(String name, V value)
    • header

      public static <V> Input<V> header(String name, V value)