Class ManagedAppRegistration

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataEntityType, com.github.davidmoten.odata.client.ODataType
    Direct Known Subclasses:
    AndroidManagedAppRegistration, IosManagedAppRegistration

    public class ManagedAppRegistration
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The ManagedAppRegistration resource represents the details of an app, with management capability, used by a member of the organization.”
    • Constructor Detail

      • ManagedAppRegistration

        protected ManagedAppRegistration()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class Entity
      • 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
      • getAppIdentifier

        public Optional<MobileAppIdentifier> getAppIdentifier()
        “The app package Identifier”
        Returns:
        property appIdentifier
      • withAppIdentifier

        public ManagedAppRegistration withAppIdentifier​(MobileAppIdentifier appIdentifier)
        Returns an immutable copy of this with just the appIdentifier 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 app package Identifier”

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

        public Optional<String> getApplicationVersion()
        “App version”
        Returns:
        property applicationVersion
      • withApplicationVersion

        public ManagedAppRegistration withApplicationVersion​(String applicationVersion)
        Returns an immutable copy of this with just the applicationVersion 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.

        “App version”

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

        public Optional<OffsetDateTime> getCreatedDateTime()
        “Date and time of creation”
        Returns:
        property createdDateTime
      • withCreatedDateTime

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

        “Date and time of creation”

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

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

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

        “Host 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
      • getDeviceTag

        public Optional<String> getDeviceTag()
        “App management SDK generated tag, which helps relate apps hosted on the same device. Not guaranteed to relate apps in all conditions.”
        Returns:
        property deviceTag
      • withDeviceTag

        public ManagedAppRegistration withDeviceTag​(String deviceTag)
        Returns an immutable copy of this with just the deviceTag 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.

        “App management SDK generated tag, which helps relate apps hosted on the same device. Not guaranteed to relate apps in all conditions.”

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

        public Optional<String> getDeviceType()
        “Host device type”
        Returns:
        property deviceType
      • withDeviceType

        public ManagedAppRegistration withDeviceType​(String deviceType)
        Returns an immutable copy of this with just the deviceType 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.

        “Host device type”

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

        public com.github.davidmoten.odata.client.CollectionPage<ManagedAppFlaggedReason> getFlaggedReasons()
        “Zero or more reasons an app registration is flagged. E.g. app running on rooted device”
        Returns:
        property flaggedReasons
      • withFlaggedReasons

        public ManagedAppRegistration withFlaggedReasons​(List<ManagedAppFlaggedReason> flaggedReasons)
        Returns an immutable copy of this with just the flaggedReasons 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.

        “Zero or more reasons an app registration is flagged. E.g. app running on rooted device”

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

        public com.github.davidmoten.odata.client.CollectionPage<ManagedAppFlaggedReason> getFlaggedReasons​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “Zero or more reasons an app registration is flagged. E.g. app running on rooted device”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property flaggedReasons
      • getLastSyncDateTime

        public Optional<OffsetDateTime> getLastSyncDateTime()
        “Date and time of last the app synced with management service.”
        Returns:
        property lastSyncDateTime
      • withLastSyncDateTime

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

        “Date and time of last the app synced with management service.”

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

        public Optional<String> getManagementSdkVersion()
        “App management SDK version”
        Returns:
        property managementSdkVersion
      • withManagementSdkVersion

        public ManagedAppRegistration withManagementSdkVersion​(String managementSdkVersion)
        Returns an immutable copy of this with just the managementSdkVersion 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.

        “App management SDK version”

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

        public Optional<String> getPlatformVersion()
        “Operating System version”
        Returns:
        property platformVersion
      • withPlatformVersion

        public ManagedAppRegistration withPlatformVersion​(String platformVersion)
        Returns an immutable copy of this with just the platformVersion 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.

        “Operating System version”

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

        public Optional<String> getUserId()
        “The user Id to who this app registration belongs.”
        Returns:
        property userId
      • withUserId

        public ManagedAppRegistration withUserId​(String userId)
        Returns an immutable copy of this with just the userId 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 user Id to who this app registration belongs.”

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

        public Optional<String> getVersion()
        “Version of the entity.”
        Returns:
        property version
      • withVersion

        public ManagedAppRegistration withVersion​(String version)
        Returns an immutable copy of this with just the version 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.

        “Version of the entity.”

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

        public ManagedAppPolicyCollectionRequest getAppliedPolicies()
        “Zero or more policys already applied on the registered app when it last synchronized with managment service.”
        Returns:
        navigational property appliedPolicies
      • getIntendedPolicies

        public ManagedAppPolicyCollectionRequest getIntendedPolicies()
        “Zero or more policies admin intended for the app as of now.”
        Returns:
        navigational property intendedPolicies
      • getOperations

        public ManagedAppOperationCollectionRequest getOperations()
        “Zero or more long running operations triggered on the app registration.”
        Returns:
        navigational property operations
      • withAppliedPolicies

        public ManagedAppRegistration withAppliedPolicies​(List<ManagedAppPolicy> appliedPolicies)
        Returns an immutable copy of this with just the appliedPolicies 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.

        “Zero or more policys already applied on the registered app when it last synchronized with managment service.”

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

        public ManagedAppRegistration withIntendedPolicies​(List<ManagedAppPolicy> intendedPolicies)
        Returns an immutable copy of this with just the intendedPolicies 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.

        “Zero or more policies admin intended for the app as of now.”

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

        public ManagedAppRegistration withOperations​(List<ManagedAppOperation> operations)
        Returns an immutable copy of this with just the operations 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.

        “Zero or more long running operations triggered on the app registration.”

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