Class DeviceCustomAttributeShellScript

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType

    public class DeviceCustomAttributeShellScript
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Represents a custom attribute script for macOS.”
    • Constructor Detail

      • DeviceCustomAttributeShellScript

        protected DeviceCustomAttributeShellScript()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • builderDeviceCustomAttributeShellScript

        public static DeviceCustomAttributeShellScript.Builder builderDeviceCustomAttributeShellScript()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class
      • getChangedFields

        public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
        Specified by:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class Entity
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class Entity
      • getCreatedDateTime

        public Optional<OffsetDateTime> getCreatedDateTime()
        “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

        Returns:
        property createdDateTime
      • withCreatedDateTime

        public DeviceCustomAttributeShellScript withCreatedDateTime​(OffsetDateTime createdDateTime)
        Returns an immutable copy of this with just the createdDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “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 - new value of createdDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the createdDateTime field changed
      • getCustomAttributeName

        public Optional<String> getCustomAttributeName()
        “The name of the custom attribute.”
        Returns:
        property customAttributeName
      • withCustomAttributeName

        public DeviceCustomAttributeShellScript withCustomAttributeName​(String customAttributeName)
        Returns an immutable copy of this with just the customAttributeName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The name of the custom attribute.”

        Parameters:
        customAttributeName - new value of customAttributeName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the customAttributeName field changed
      • getCustomAttributeType

        public Optional<DeviceCustomAttributeValueType> getCustomAttributeType()
        “The expected type of the custom attribute's value.”
        Returns:
        property customAttributeType
      • withCustomAttributeType

        public DeviceCustomAttributeShellScript withCustomAttributeType​(DeviceCustomAttributeValueType customAttributeType)
        Returns an immutable copy of this with just the customAttributeType field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “The expected type of the custom attribute's value.”

        Parameters:
        customAttributeType - new value of customAttributeType field (as defined in service metadata)
        Returns:
        immutable copy of this with just the customAttributeType field changed
      • getDescription

        public Optional<String> getDescription()
        “Optional description for the device management script.”
        Returns:
        property description
      • withDescription

        public DeviceCustomAttributeShellScript withDescription​(String description)
        Returns an immutable copy of this with just the description field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Optional description for the device management script.”

        Parameters:
        description - new value of description field (as defined in service metadata)
        Returns:
        immutable copy of this with just the description field changed
      • getDisplayName

        public Optional<String> getDisplayName()
        “Name of the device management script.”
        Returns:
        property displayName
      • withDisplayName

        public DeviceCustomAttributeShellScript withDisplayName​(String displayName)
        Returns an immutable copy of this with just the displayName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Name of the device management script.”

        Parameters:
        displayName - new value of displayName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the displayName field changed
      • getFileName

        public Optional<String> getFileName()
        “Script file name.”
        Returns:
        property fileName
      • withFileName

        public DeviceCustomAttributeShellScript withFileName​(String fileName)
        Returns an immutable copy of this with just the fileName field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “Script file name.”

        Parameters:
        fileName - new value of fileName field (as defined in service metadata)
        Returns:
        immutable copy of this with just the fileName field changed
      • getLastModifiedDateTime

        public Optional<OffsetDateTime> getLastModifiedDateTime()
        “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

        Returns:
        property lastModifiedDateTime
      • withLastModifiedDateTime

        public DeviceCustomAttributeShellScript withLastModifiedDateTime​(OffsetDateTime lastModifiedDateTime)
        Returns an immutable copy of this with just the lastModifiedDateTime field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this.patch() is called (if available)on the returned object only the changed fields are submitted.

        “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 - new value of lastModifiedDateTime field (as defined in service metadata)
        Returns:
        immutable copy of this with just the lastModifiedDateTime field changed
      • getRoleScopeTagIds

        public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds()
        “List of Scope Tag IDs for this PowerShellScript instance.”
        Returns:
        property roleScopeTagIds
      • withRoleScopeTagIds

        public DeviceCustomAttributeShellScript withRoleScopeTagIds​(List<String> roleScopeTagIds)
        Returns an immutable copy of this with just the roleScopeTagIds field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “List of Scope Tag IDs for this PowerShellScript instance.”

        Parameters:
        roleScopeTagIds - new value of roleScopeTagIds field (as defined in service metadata)
        Returns:
        immutable copy of this with just the roleScopeTagIds field changed
      • getRoleScopeTagIds

        public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “List of Scope Tag IDs for this PowerShellScript instance.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property roleScopeTagIds
      • getRunAsAccount

        public Optional<RunAsAccountType> getRunAsAccount()
        “Indicates the type of execution context.”
        Returns:
        property runAsAccount
      • withRunAsAccount

        public DeviceCustomAttributeShellScript withRunAsAccount​(RunAsAccountType runAsAccount)
        Returns an immutable copy of this with just the runAsAccount field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Indicates the type of execution context.”

        Parameters:
        runAsAccount - new value of runAsAccount field (as defined in service metadata)
        Returns:
        immutable copy of this with just the runAsAccount field changed
      • getScriptContent

        public Optional<byte[]> getScriptContent()
        “The script content.”
        Returns:
        property scriptContent
      • withScriptContent

        public DeviceCustomAttributeShellScript withScriptContent​(byte[] scriptContent)
        Returns an immutable copy of this with just the scriptContent field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “The script content.”

        Parameters:
        scriptContent - new value of scriptContent field (as defined in service metadata)
        Returns:
        immutable copy of this with just the scriptContent field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class Entity
      • patch

        public DeviceCustomAttributeShellScript patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public DeviceCustomAttributeShellScript put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class Entity
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected