Class BetaComputerKeyInput
-
- All Implemented Interfaces:
public final class BetaComputerKeyInputPress 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 classBetaComputerKeyInput.BuilderA builder for BetaComputerKeyInput.
-
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 BetaComputerKeyInput.BuildertoBuilder()final BetaComputerKeyInputvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static BetaComputerKeyInput.Builderbuilder()Returns a mutable builder for constructing an instance of BetaComputerKeyInput. final static BetaComputerKeyInputof(String text)Returns an immutable instance of BetaComputerKeyInput 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 BetaComputerKeyInput.Builder toBuilder()
-
validate
final BetaComputerKeyInput 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 BetaComputerKeyInput.Builder builder()
Returns a mutable builder for constructing an instance of BetaComputerKeyInput.
The following fields are required:
.text()
-
of
final static BetaComputerKeyInput of(String text)
Returns an immutable instance of BetaComputerKeyInput with the required text set to the given value.
-
-
-
-