Class DeviceShellScript.Builder

    • Method Detail

      • blockExecutionNotifications

        public DeviceShellScript.Builder blockExecutionNotifications​(Boolean blockExecutionNotifications)
        “Does not notify the user a script is being executed”
        Parameters:
        blockExecutionNotifications - value of blockExecutionNotifications property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • createdDateTime

        public DeviceShellScript.Builder createdDateTime​(OffsetDateTime createdDateTime)
        “The date and time the device management script was created. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Parameters:
        createdDateTime - value of createdDateTime property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • description

        public DeviceShellScript.Builder description​(String description)
        “Optional description for the device management script.”
        Parameters:
        description - value of description property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • displayName

        public DeviceShellScript.Builder displayName​(String displayName)
        “Name of the device management script.”
        Parameters:
        displayName - value of displayName property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • executionFrequency

        public DeviceShellScript.Builder executionFrequency​(Duration executionFrequency)
        “The interval for script to run. If not defined the script will run once”
        Parameters:
        executionFrequency - value of executionFrequency property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • fileName

        public DeviceShellScript.Builder fileName​(String fileName)
        “Script file name.”
        Parameters:
        fileName - value of fileName property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • lastModifiedDateTime

        public DeviceShellScript.Builder lastModifiedDateTime​(OffsetDateTime lastModifiedDateTime)
        “The date and time the device management script was last modified. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Parameters:
        lastModifiedDateTime - value of lastModifiedDateTime property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • retryCount

        public DeviceShellScript.Builder retryCount​(Integer retryCount)
        “Number of times for the script to be retried if it fails”
        Parameters:
        retryCount - value of retryCount property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • roleScopeTagIds

        public DeviceShellScript.Builder roleScopeTagIds​(List<String> roleScopeTagIds)
        “List of Scope Tag IDs for this PowerShellScript instance.”
        Parameters:
        roleScopeTagIds - value of roleScopeTagIds property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • roleScopeTagIds

        public DeviceShellScript.Builder roleScopeTagIds​(String... roleScopeTagIds)
        “List of Scope Tag IDs for this PowerShellScript instance.”
        Parameters:
        roleScopeTagIds - value of roleScopeTagIds property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • roleScopeTagIdsNextLink

        public DeviceShellScript.Builder roleScopeTagIdsNextLink​(String roleScopeTagIdsNextLink)
        “List of Scope Tag IDs for this PowerShellScript instance.”
        Parameters:
        roleScopeTagIdsNextLink - value of roleScopeTagIds@nextLink property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • runAsAccount

        public DeviceShellScript.Builder runAsAccount​(RunAsAccountType runAsAccount)
        “Indicates the type of execution context.”
        Parameters:
        runAsAccount - value of runAsAccount property (as defined in service metadata)
        Returns:
        this (for method chaining)
      • scriptContent

        public DeviceShellScript.Builder scriptContent​(byte[] scriptContent)
        “The script content.”
        Parameters:
        scriptContent - value of scriptContent property (as defined in service metadata)
        Returns:
        this (for method chaining)