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 TypeMethodDescriptionarchiveEntryPath(String archiveEntryPath) archivePassword(String archivePassword) archiveSha256Hash(String archiveSha256Hash) commandLineArgs(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.Path of the file inside the archive to execute.Password required to extract the archive, if any.Hash of the uploaded archive to run in the sandbox.The command line parameters to pass to the dynamic execution sandbox.Get enabledThe method used by the sandbox to launch the sample.Maximum 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.voidsetArchiveEntryPath(String archiveEntryPath) voidsetArchivePassword(String archivePassword) voidsetArchiveSha256Hash(String archiveSha256Hash) 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:
-
SERIALIZED_NAME_ARCHIVE_SHA256_HASH
- See Also:
-
SERIALIZED_NAME_ARCHIVE_ENTRY_PATH
- See Also:
-
SERIALIZED_NAME_ARCHIVE_PASSWORD
- 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
The method used by the sandbox to launch the sample.- 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
-
archiveSha256Hash
-
getArchiveSha256Hash
Hash of the uploaded archive to run in the sandbox. Set this when submitting an archive.- Returns:
- archiveSha256Hash
-
setArchiveSha256Hash
-
archiveEntryPath
-
getArchiveEntryPath
Path of the file inside the archive to execute.- Returns:
- archiveEntryPath
-
setArchiveEntryPath
-
archivePassword
-
getArchivePassword
Password required to extract the archive, if any.- Returns:
- archivePassword
-
setArchivePassword
-
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
-