Class PowerShellData

    • Constructor Detail

      • PowerShellData

        public PowerShellData()
      • PowerShellData

        public PowerShellData​(java.util.Map<java.lang.String,​java.lang.Object> options)
    • Method Detail

      • withScript

        public PowerShellData withScript​(java.lang.String script)
        Allows to provide a multiline PowerShell script.
        Overrides:
        withScript in class SystemScript<PowerShellData>
        Parameters:
        script - A valid PowerShell script.
        Returns:
        self instance for chaining.
      • getScript

        public java.util.Optional<java.lang.String> getScript()
        Get a multiline PowerShell script.
        Overrides:
        getScript in class SystemScript<PowerShellData>
        Returns:
        PowerShell script.
      • withCommand

        public PowerShellData withCommand​(java.lang.String command)
        Allows to provide a single-line PowerShell script.
        Overrides:
        withCommand in class SystemScript<PowerShellData>
        Parameters:
        command - A valid PowerShell script.
        Returns:
        self instance for chaining.
      • getCommand

        public java.util.Optional<java.lang.String> getCommand()
        Get a single-line PowerShell script.
        Overrides:
        getCommand in class SystemScript<PowerShellData>
        Returns:
        PowerShell script.