Class MobileAppContentFile

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

    public class MobileAppContentFile
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Contains properties for a single installer file that is associated with a given mobileAppContent version.”
    • Constructor Detail

      • MobileAppContentFile

        protected MobileAppContentFile()
    • Method Detail

      • odataTypeName

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

        public static MobileAppContentFile.Builder builderMobileAppContentFile()
        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
      • getAzureStorageUri

        public Optional<String> getAzureStorageUri()
        “Indicates the Azure Storage URI that the file is uploaded to. Created by the service upon receiving a valid mobileAppContentFile. Read-only. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Returns:
        property azureStorageUri
      • withAzureStorageUri

        public MobileAppContentFile withAzureStorageUri​(String azureStorageUri)
        Returns an immutable copy of this with just the azureStorageUri 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 Azure Storage URI that the file is uploaded to. Created by the service upon receiving a valid mobileAppContentFile. Read-only. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

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

        public Optional<OffsetDateTime> getAzureStorageUriExpirationDateTime()
        “Indicates the date and time when the Azure storage URI expires, in ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01- 01T00:00:00Z'. Read-only. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Returns:
        property azureStorageUriExpirationDateTime
      • withAzureStorageUriExpirationDateTime

        public MobileAppContentFile withAzureStorageUriExpirationDateTime​(OffsetDateTime azureStorageUriExpirationDateTime)
        Returns an immutable copy of this with just the azureStorageUriExpirationDateTime 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 date and time when the Azure storage URI expires, in ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01- 01T00:00:00Z'. Read-only. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

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

        public Optional<OffsetDateTime> getCreatedDateTime()
        “Indicates created date and time associated with app content file, in ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01- 01T00:00:00Z'. Read-only. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Returns:
        property createdDateTime
      • withCreatedDateTime

        public MobileAppContentFile 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.

        “Indicates created date and time associated with app content file, in ISO 8601 format. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01- 01T00:00:00Z'. Read-only. 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
      • getIsCommitted

        public Optional<Boolean> getIsCommitted()
        “A value indicating whether the file is committed. A committed app content file has been fully uploaded and validated by the Intune service. TRUE means that app content file is committed, FALSE means that app content file is not committed. Defaults to FALSE. Read-only. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Returns:
        property isCommitted
      • withIsCommitted

        public MobileAppContentFile withIsCommitted​(Boolean isCommitted)
        Returns an immutable copy of this with just the isCommitted 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.

        “A value indicating whether the file is committed. A committed app content file has been fully uploaded and validated by the Intune service. TRUE means that app content file is committed, FALSE means that app content file is not committed. Defaults to FALSE. Read-only. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

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

        public Optional<Boolean> getIsDependency()
        “Indicates whether this content file is a dependency for the main content file. TRUE means that the content file is a dependency, FALSE means that the content file is not a dependency and is the main content file. Defaults to FALSE.”
        Returns:
        property isDependency
      • withIsDependency

        public MobileAppContentFile withIsDependency​(Boolean isDependency)
        Returns an immutable copy of this with just the isDependency 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 whether this content file is a dependency for the main content file. TRUE means that the content file is a dependency, FALSE means that the content file is not a dependency and is the main content file. Defaults to FALSE.”

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

        public Optional<byte[]> getManifest()
        “Indicates the manifest information, containing file metadata.”
        Returns:
        property manifest
      • withManifest

        public MobileAppContentFile withManifest​(byte[] manifest)
        Returns an immutable copy of this with just the manifest 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 manifest information, containing file metadata.”

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

        public Optional<String> getName()
        “Indicates the name of the file.”
        Returns:
        property name
      • withName

        public MobileAppContentFile withName​(String name)
        Returns an immutable copy of this with just the name 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 name of the file.”

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

        public Optional<Long> getSize()
        “The size of the file prior to encryption. To be deprecated, please use sizeInBytes property instead.”
        Returns:
        property size
      • withSize

        public MobileAppContentFile withSize​(Long size)
        Returns an immutable copy of this with just the size 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 size of the file prior to encryption. To be deprecated, please use sizeInBytes property instead.”

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

        public Optional<Long> getSizeEncrypted()
        “The size of the file after encryption. To be deprecated, please use sizeEncryptedInBytes property instead.”
        Returns:
        property sizeEncrypted
      • withSizeEncrypted

        public MobileAppContentFile withSizeEncrypted​(Long sizeEncrypted)
        Returns an immutable copy of this with just the sizeEncrypted 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 size of the file after encryption. To be deprecated, please use sizeEncryptedInBytes property instead.”

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

        public Optional<MobileAppContentFileUploadState> getUploadState()
        “Indicates the state of the current upload request. Possible values are: success, transientError, error, unknown, azureStorageUriRequestSuccess, azureStorageUriRequestPending, azureStorageUriRequestFailed, azureStorageUriRequestTimedOut, azureStorageUriRenewalSuccess, azureStorageUriRenewalPending, azureStorageUriRenewalFailed, azureStorageUriRenewalTimedOut, commitFileSuccess, commitFilePending, commitFileFailed, commitFileTimedOut. Default value is success. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Returns:
        property uploadState
      • withUploadState

        public MobileAppContentFile withUploadState​(MobileAppContentFileUploadState uploadState)
        Returns an immutable copy of this with just the uploadState 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 state of the current upload request. Possible values are: success, transientError, error, unknown, azureStorageUriRequestSuccess, azureStorageUriRequestPending, azureStorageUriRequestFailed, azureStorageUriRequestTimedOut, azureStorageUriRenewalSuccess, azureStorageUriRenewalPending, azureStorageUriRenewalFailed, azureStorageUriRenewalTimedOut, commitFileSuccess, commitFilePending, commitFileFailed, commitFileTimedOut. Default value is success. This property is read-only.”

        Org.OData.Core.V1.Computed

        true

        Org.OData.Core.V1.Permissions

        Parameters:
        uploadState - new value of uploadState field (as defined in service metadata)
        Returns:
        immutable copy of this with just the uploadState 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 MobileAppContentFile 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 MobileAppContentFile 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
      • commit

        public com.github.davidmoten.odata.client.ActionRequestNoReturn commit​(FileEncryptionInfo fileEncryptionInfo)
      • renewUpload

        public com.github.davidmoten.odata.client.ActionRequestNoReturn renewUpload()