Class ActionParameter

java.lang.Object
io.micronaut.chatbots.google.api.ActionParameter

public class ActionParameter extends Object
List of string parameters to supply when the action method is invoked. For example, consider three snooze buttons: snooze now, snooze 1 day, snooze next week. You might use action method = snooze(), passing the snooze type and snooze time in the list of string parameters.
Since:
1.0.0
Author:
Sergio del Amo
See Also:
  • Constructor Details

    • ActionParameter

      public ActionParameter()
  • Method Details

    • getKey

      @NonNull public @NonNull String getKey()
      Returns:
      The name of the parameter for the action script.
    • setKey

      public void setKey(@NonNull @NonNull String key)
      Parameters:
      key - The name of the parameter for the action script.
    • getValue

      @NonNull public @NonNull String getValue()
      Returns:
      The value of the parameter.
    • setValue

      public void setValue(@NonNull @NonNull String value)
      Parameters:
      value - The value of the parameter.
    • toString

      public String toString()
      Overrides:
      toString in class Object