Class TranslationRequest

java.lang.Object
lv.id.jc.piglatin.model.TranslationRequest

@Generated(value="org.openapitools.codegen.languages.SpringCodegen", date="2024-03-17T12:36:21.716430+02:00[Europe/Riga]") public class TranslationRequest extends Object
The request body contains the English sentence for translation.
  • Constructor Details

    • TranslationRequest

      public TranslationRequest()
    • TranslationRequest

      public TranslationRequest(String sentence)
      Constructor with only required parameters
  • Method Details

    • sentence

      public TranslationRequest sentence(String sentence)
    • getSentence

      @NotNull public @NotNull String getSentence()
      English sentence for translation.
      Returns:
      sentence
    • setSentence

      public void setSentence(String sentence)
    • 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