Class ScriptReference


  • public final class ScriptReference
    extends Object
    Script reference.
    • Constructor Detail

      • ScriptReference

        public ScriptReference()
    • Method Detail

      • scriptSource

        public String scriptSource()
        Get the scriptSource property: The storage source of the script: inline, workspace.
        Returns:
        the scriptSource value.
      • withScriptSource

        public ScriptReference withScriptSource​(String scriptSource)
        Set the scriptSource property: The storage source of the script: inline, workspace.
        Parameters:
        scriptSource - the scriptSource value to set.
        Returns:
        the ScriptReference object itself.
      • scriptData

        public String scriptData()
        Get the scriptData property: The location of scripts in the mounted volume.
        Returns:
        the scriptData value.
      • withScriptData

        public ScriptReference withScriptData​(String scriptData)
        Set the scriptData property: The location of scripts in the mounted volume.
        Parameters:
        scriptData - the scriptData value to set.
        Returns:
        the ScriptReference object itself.
      • scriptArguments

        public String scriptArguments()
        Get the scriptArguments property: Optional command line arguments passed to the script to run.
        Returns:
        the scriptArguments value.
      • withScriptArguments

        public ScriptReference withScriptArguments​(String scriptArguments)
        Set the scriptArguments property: Optional command line arguments passed to the script to run.
        Parameters:
        scriptArguments - the scriptArguments value to set.
        Returns:
        the ScriptReference object itself.
      • timeout

        public String timeout()
        Get the timeout property: Optional time period passed to timeout command.
        Returns:
        the timeout value.
      • withTimeout

        public ScriptReference withTimeout​(String timeout)
        Set the timeout property: Optional time period passed to timeout command.
        Parameters:
        timeout - the timeout value to set.
        Returns:
        the ScriptReference object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.