Package com.github.copilot.sdk.json
Class InputOptions
java.lang.Object
com.github.copilot.sdk.json.InputOptions
Options for the
SessionUiApi.input(String, InputOptions) convenience
method.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the default value pre-populated in the field.Gets the descriptive text shown below the field.Gets the semantic format hint (e.g.,"email","uri","date","date-time").Gets the maximum character length.Gets the minimum character length.getTitle()Gets the title label for the input field.setDefaultValue(String defaultValue) Sets the default value pre-populated in the field.setDescription(String description) Sets the descriptive text shown below the field.Sets the semantic format hint.setMaxLength(Integer maxLength) Sets the maximum character length.setMinLength(Integer minLength) Sets the minimum character length.Sets the title label for the input field.
-
Constructor Details
-
InputOptions
public InputOptions()
-
-
Method Details
-
getTitle
Gets the title label for the input field. @return the title -
setTitle
Sets the title label for the input field. @param title the title @return this -
getDescription
Gets the descriptive text shown below the field. @return the description -
setDescription
Sets the descriptive text shown below the field. @param description the description @return this -
getMinLength
Gets the minimum character length. @return the min length -
setMinLength
Sets the minimum character length. @param minLength the min length @return this -
getMaxLength
Gets the maximum character length. @return the max length -
setMaxLength
Sets the maximum character length. @param maxLength the max length @return this -
getFormat
Gets the semantic format hint (e.g.,"email","uri","date","date-time").- Returns:
- the format hint
-
setFormat
Sets the semantic format hint. @param format the format @return this -
getDefaultValue
Gets the default value pre-populated in the field. @return the default value -
setDefaultValue
Sets the default value pre-populated in the field. @param defaultValue the default value @return this
-