Package ai.reveng.model
Class SandboxOptions
java.lang.Object
ai.reveng.model.SandboxOptions
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class SandboxOptions
extends Object
SandboxOptions
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommandLineArgs(String commandLineArgs) booleanstatic SandboxOptionsCreate an instance of SandboxOptions given an JSON stringReturn the additional (undeclared) property.Return the additional (undeclared) property with the specified name.The command line parameters to pass to the dynamic execution sandbox.Get enabledGet startMethodMaximum execution time for the sandbox run, in seconds.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetCommandLineArgs(String commandLineArgs) voidsetEnabled(Boolean enabled) voidsetStartMethod(SandboxStartMethod startMethod) voidsetTimeout(SandboxTimeout timeout) startMethod(SandboxStartMethod startMethod) timeout(SandboxTimeout timeout) toJson()Convert an instance of SandboxOptions to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ENABLED
- See Also:
-
SERIALIZED_NAME_COMMAND_LINE_ARGS
- See Also:
-
SERIALIZED_NAME_START_METHOD
- See Also:
-
SERIALIZED_NAME_TIMEOUT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
SandboxOptions
public SandboxOptions()
-
-
Method Details
-
enabled
-
getEnabled
Get enabled- Returns:
- enabled
-
setEnabled
-
commandLineArgs
-
getCommandLineArgs
The command line parameters to pass to the dynamic execution sandbox. Requires `sandbox` to be True.- Returns:
- commandLineArgs
-
setCommandLineArgs
-
startMethod
-
getStartMethod
Get startMethod- Returns:
- startMethod
-
setStartMethod
-
timeout
-
getTimeout
Maximum execution time for the sandbox run, in seconds. Allowed values: 120 (2m), 180 (3m), 300 (5m), 600 (10m).- Returns:
- timeout
-
setTimeout
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- name of the propertyvalue- value of the property- Returns:
- the SandboxOptions instance itself
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- a map of objects
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- name of the property- Returns:
- an object
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to SandboxOptions
-
fromJson
Create an instance of SandboxOptions given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of SandboxOptions
- Throws:
IOException- if the JSON string is invalid with respect to SandboxOptions
-
toJson
Convert an instance of SandboxOptions to an JSON string- Returns:
- JSON string
-