Package com.anthropic.models.messages
Class ComputerHoldKeyInput
-
- All Implemented Interfaces:
public final class ComputerHoldKeyInputHold down a key or key-combination for a specified duration. Uses the same key syntax as
key.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classComputerHoldKeyInput.BuilderA builder for ComputerHoldKeyInput.
-
Method Summary
Modifier and Type Method Description final Longduration()Duration to hold the key, in seconds. final Stringtext()The key or key-combination to hold. final JsonField<Long>_duration()Returns the raw JSON value of duration. final JsonField<String>_text()Returns the raw JSON value of text. final Map<String, JsonValue>_additionalProperties()final ComputerHoldKeyInput.BuildertoBuilder()final ComputerHoldKeyInputvalidate()Validates that the types of all values in this object match their expected types recursively. final BooleanisValid()Booleanequals(Object other)IntegerhashCode()StringtoString()final static ComputerHoldKeyInput.Builderbuilder()Returns a mutable builder for constructing an instance of ComputerHoldKeyInput. -
-
Method Detail
-
_duration
final JsonField<Long> _duration()
Returns the raw JSON value of duration.
Unlike duration, this method doesn't throw if the JSON field has an unexpected type.
-
_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.
-
_additionalProperties
final Map<String, JsonValue> _additionalProperties()
-
toBuilder
final ComputerHoldKeyInput.Builder toBuilder()
-
validate
final ComputerHoldKeyInput 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 ComputerHoldKeyInput.Builder builder()
Returns a mutable builder for constructing an instance of ComputerHoldKeyInput.
The following fields are required:
.duration() .text()
-
-
-
-