Class ScriptsToExecute


  • public final class ScriptsToExecute
    extends Object
    Customized setup scripts.
    • Constructor Detail

      • ScriptsToExecute

        public ScriptsToExecute()
    • Method Detail

      • startupScript

        public ScriptReference startupScript()
        Get the startupScript property: Script that's run every time the machine starts.
        Returns:
        the startupScript value.
      • withStartupScript

        public ScriptsToExecute withStartupScript​(ScriptReference startupScript)
        Set the startupScript property: Script that's run every time the machine starts.
        Parameters:
        startupScript - the startupScript value to set.
        Returns:
        the ScriptsToExecute object itself.
      • creationScript

        public ScriptReference creationScript()
        Get the creationScript property: Script that's run only once during provision of the compute.
        Returns:
        the creationScript value.
      • withCreationScript

        public ScriptsToExecute withCreationScript​(ScriptReference creationScript)
        Set the creationScript property: Script that's run only once during provision of the compute.
        Parameters:
        creationScript - the creationScript value to set.
        Returns:
        the ScriptsToExecute object itself.
      • validate

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