Class InputOptions

java.lang.Object
com.github.copilot.sdk.json.InputOptions

public class InputOptions extends Object
Options for the SessionUiApi.input(String, InputOptions) convenience method.
Since:
1.0.0
  • Constructor Details

    • InputOptions

      public InputOptions()
  • Method Details

    • getTitle

      public String getTitle()
      Gets the title label for the input field. @return the title
    • setTitle

      public InputOptions setTitle(String title)
      Sets the title label for the input field. @param title the title @return this
    • getDescription

      public String getDescription()
      Gets the descriptive text shown below the field. @return the description
    • setDescription

      public InputOptions setDescription(String description)
      Sets the descriptive text shown below the field. @param description the description @return this
    • getMinLength

      public Integer getMinLength()
      Gets the minimum character length. @return the min length
    • setMinLength

      public InputOptions setMinLength(Integer minLength)
      Sets the minimum character length. @param minLength the min length @return this
    • getMaxLength

      public Integer getMaxLength()
      Gets the maximum character length. @return the max length
    • setMaxLength

      public InputOptions setMaxLength(Integer maxLength)
      Sets the maximum character length. @param maxLength the max length @return this
    • getFormat

      public String getFormat()
      Gets the semantic format hint (e.g., "email", "uri", "date", "date-time").
      Returns:
      the format hint
    • setFormat

      public InputOptions setFormat(String format)
      Sets the semantic format hint. @param format the format @return this
    • getDefaultValue

      public String getDefaultValue()
      Gets the default value pre-populated in the field. @return the default value
    • setDefaultValue

      public InputOptions setDefaultValue(String defaultValue)
      Sets the default value pre-populated in the field. @param defaultValue the default value @return this