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()
        “The Azure Storage URI.”
        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.

        “The Azure Storage URI.”

        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()
        “The time the Azure storage Uri expires.”
        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.

        “The time the Azure storage Uri expires.”

        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()
        “The time the file was created.”
        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.

        “The time the file was created.”

        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.”
        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.”

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

        public Optional<byte[]> getManifest()
        “The manifest information.”
        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.

        “The manifest information.”

        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()
        “the file name.”
        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.

        “the file name.”

        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.”
        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.”

        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.”
        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.”

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

        “The state of the current upload request.”

        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()