Class MobileAppInstallStatus

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

    public class MobileAppInstallStatus
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Contains properties for the installation state of a mobile app for a device.”
    • Constructor Detail

      • MobileAppInstallStatus

        protected MobileAppInstallStatus()
    • Method Detail

      • odataTypeName

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

        public static MobileAppInstallStatus.Builder builderMobileAppInstallStatus()
        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
      • getDeviceId

        public Optional<String> getDeviceId()
        “Device ID”
        Returns:
        property deviceId
      • withDeviceId

        public MobileAppInstallStatus withDeviceId​(String deviceId)
        Returns an immutable copy of this with just the deviceId 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.

        “Device ID”

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

        public Optional<String> getDeviceName()
        “Device name”
        Returns:
        property deviceName
      • withDeviceName

        public MobileAppInstallStatus withDeviceName​(String deviceName)
        Returns an immutable copy of this with just the deviceName 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.

        “Device name”

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

        public Optional<String> getDisplayVersion()
        “Human readable version of the application”
        Returns:
        property displayVersion
      • withDisplayVersion

        public MobileAppInstallStatus withDisplayVersion​(String displayVersion)
        Returns an immutable copy of this with just the displayVersion 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.

        “Human readable version of the application”

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

        public Optional<Integer> getErrorCode()
        “The error code for install or uninstall failures.”
        Returns:
        property errorCode
      • withErrorCode

        public MobileAppInstallStatus withErrorCode​(Integer errorCode)
        Returns an immutable copy of this with just the errorCode 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 error code for install or uninstall failures.”

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

        public Optional<ResultantAppState> getInstallState()
        “The install state of the app.”
        Returns:
        property installState
      • withInstallState

        public MobileAppInstallStatus withInstallState​(ResultantAppState installState)
        Returns an immutable copy of this with just the installState 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 install state of the app.”

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

        public Optional<ResultantAppStateDetail> getInstallStateDetail()
        “The install state detail of the app.”
        Returns:
        property installStateDetail
      • withInstallStateDetail

        public MobileAppInstallStatus withInstallStateDetail​(ResultantAppStateDetail installStateDetail)
        Returns an immutable copy of this with just the installStateDetail 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 install state detail of the app.”

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

        public Optional<OffsetDateTime> getLastSyncDateTime()
        “Last sync date time”
        Returns:
        property lastSyncDateTime
      • withLastSyncDateTime

        public MobileAppInstallStatus withLastSyncDateTime​(OffsetDateTime lastSyncDateTime)
        Returns an immutable copy of this with just the lastSyncDateTime 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.

        “Last sync date time”

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

        public Optional<ResultantAppState> getMobileAppInstallStatusValue()
        “The install state of the app.”
        Returns:
        property mobileAppInstallStatusValue
      • withMobileAppInstallStatusValue

        public MobileAppInstallStatus withMobileAppInstallStatusValue​(ResultantAppState mobileAppInstallStatusValue)
        Returns an immutable copy of this with just the mobileAppInstallStatusValue 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 install state of the app.”

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

        public Optional<String> getOsDescription()
        “OS Description”
        Returns:
        property osDescription
      • withOsDescription

        public MobileAppInstallStatus withOsDescription​(String osDescription)
        Returns an immutable copy of this with just the osDescription 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.

        “OS Description”

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

        public Optional<String> getOsVersion()
        “OS Version”
        Returns:
        property osVersion
      • withOsVersion

        public MobileAppInstallStatus withOsVersion​(String osVersion)
        Returns an immutable copy of this with just the osVersion 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.

        “OS Version”

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

        public Optional<String> getUserName()
        “Device User Name”
        Returns:
        property userName
      • withUserName

        public MobileAppInstallStatus withUserName​(String userName)
        Returns an immutable copy of this with just the userName 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.

        “Device User Name”

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

        public Optional<String> getUserPrincipalName()
        “User Principal Name”
        Returns:
        property userPrincipalName
      • withUserPrincipalName

        public MobileAppInstallStatus withUserPrincipalName​(String userPrincipalName)
        Returns an immutable copy of this with just the userPrincipalName 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.

        “User Principal Name”

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

        public MobileAppRequest getApp()
        “The navigation link to the mobile app.”
        Returns:
        navigational property app
      • 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 MobileAppInstallStatus 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 MobileAppInstallStatus 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