Class ComputerAction.Keypress
-
- All Implemented Interfaces:
public final class ComputerAction.KeypressA collection of keypresses the model would like to perform.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classComputerAction.Keypress.BuilderA builder for Keypress.
-
Method Summary
Modifier and Type Method Description final List<String>keys()The combination of keys the model is requesting to be pressed. final JsonValue_type()Specifies the event type. final JsonField<List<String>>_keys()Returns the raw JSON value of keys. final Map<String, JsonValue>_additionalProperties()final ComputerAction.Keypress.BuildertoBuilder()final ComputerAction.Keypressvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ComputerAction.Keypress.Builderbuilder()Returns a mutable builder for constructing an instance of Keypress. -
-
Method Detail
-
keys
final List<String> keys()
The combination of keys the model is requesting to be pressed. This is an array of strings, each representing a key.
-
_type
final JsonValue _type()
Specifies the event type. For a keypress action, this property is always set to
keypress.Expected to always return the following:
JsonValue.from("keypress")However, this method can be useful for debugging and logging (e.g. if the server responded with an unexpected value).
-
_keys
final JsonField<List<String>> _keys()
Returns the raw JSON value of keys.
Unlike keys, this method doesn't throw if the JSON field has an unexpected type.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ComputerAction.Keypress.Builder toBuilder()
-
validate
final ComputerAction.Keypress 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 ComputerAction.Keypress.Builder builder()
Returns a mutable builder for constructing an instance of Keypress.
The following fields are required:
.keys()
-
-
-
-