Class MobileAppIntentAndState

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

    public class MobileAppIntentAndState
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “MobileApp Intent and Install State for a given device.”
    • Constructor Detail

      • MobileAppIntentAndState

        protected MobileAppIntentAndState()
    • Method Detail

      • odataTypeName

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

        public static MobileAppIntentAndState.Builder builderMobileAppIntentAndState()
        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
      • getManagedDeviceIdentifier

        public Optional<String> getManagedDeviceIdentifier()
        “Device identifier created or collected by Intune.”
        Returns:
        property managedDeviceIdentifier
      • withManagedDeviceIdentifier

        public MobileAppIntentAndState withManagedDeviceIdentifier​(String managedDeviceIdentifier)
        Returns an immutable copy of this with just the managedDeviceIdentifier 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 identifier created or collected by Intune.”

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

        public com.github.davidmoten.odata.client.CollectionPage<MobileAppIntentAndStateDetail> getMobileAppList()
        “The list of payload intents and states for the tenant.”
        Returns:
        property mobileAppList
      • withMobileAppList

        public MobileAppIntentAndState withMobileAppList​(List<MobileAppIntentAndStateDetail> mobileAppList)
        Returns an immutable copy of this with just the mobileAppList 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 list of payload intents and states for the tenant.”

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

        public com.github.davidmoten.odata.client.CollectionPage<MobileAppIntentAndStateDetail> getMobileAppList​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “The list of payload intents and states for the tenant.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property mobileAppList
      • getUserId

        public Optional<String> getUserId()
        “Identifier for the user that tried to enroll the device.”
        Returns:
        property userId
      • withUserId

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

        “Identifier for the user that tried to enroll the device.”

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