Class ComputerKeyInput
-
- All Implemented Interfaces:
public final class ComputerKeyInputPress a key or key-combination on the keyboard. Use "+" to combine modifiers with a key (e.g. "ctrl+s", "alt+Tab", "ctrl+shift+Escape"). Key names are case-insensitive; common names like "Return", "Tab", "Escape", "Up", "Down", "Left", "Right", "Home", "End", "Page_Up", "Page_Down", "Delete", "BackSpace" are supported.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classComputerKeyInput.BuilderA builder for ComputerKeyInput.
-
Method Summary
Modifier and Type Method Description final Stringtext()The key or key-combination to press. final Optional<Long>repeat()Number of times to repeat the key press. final JsonField<String>_text()Returns the raw JSON value of text. final JsonField<Long>_repeat()Returns the raw JSON value of repeat. final Map<String, JsonValue>_additionalProperties()final ComputerKeyInput.BuildertoBuilder()final ComputerKeyInputvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ComputerKeyInput.Builderbuilder()Returns a mutable builder for constructing an instance of ComputerKeyInput. final static ComputerKeyInputof(String text)Returns an immutable instance of ComputerKeyInput with the required text set to the given value. -
-
Method Detail
-
_text
final JsonField<String> _text()
Returns the raw JSON value of text.
Unlike text, this method doesn't throw if the JSON field has an unexpected type.
-
_repeat
final JsonField<Long> _repeat()
Returns the raw JSON value of repeat.
Unlike repeat, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ComputerKeyInput.Builder toBuilder()
-
validate
final ComputerKeyInput validate()
Validates that the types of all values in this object match their expected types recursively.
This method is not forwards compatible with new types from the API for existing fields.
-
builder
final static ComputerKeyInput.Builder builder()
Returns a mutable builder for constructing an instance of ComputerKeyInput.
The following fields are required:
.text()
-
of
final static ComputerKeyInput of(String text)
Returns an immutable instance of ComputerKeyInput with the required text set to the given value.
-
-
-
-