Class RemoteActionAudit

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

    public class RemoteActionAudit
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Report of remote actions initiated on the devices belonging to a certain tenant.”
    • Field Detail

      • deviceDisplayName

        protected String deviceDisplayName
      • deviceIMEI

        protected String deviceIMEI
      • deviceOwnerUserPrincipalName

        protected String deviceOwnerUserPrincipalName
      • initiatedByUserPrincipalName

        protected String initiatedByUserPrincipalName
      • managedDeviceId

        protected String managedDeviceId
      • userName

        protected String userName
    • Constructor Detail

      • RemoteActionAudit

        protected RemoteActionAudit()
    • Method Detail

      • odataTypeName

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

        public static RemoteActionAudit.Builder builderRemoteActionAudit()
        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
      • getAction

        public Optional<RemoteAction> getAction()
        “The action name.”
        Returns:
        property action
      • withAction

        public RemoteActionAudit withAction​(RemoteAction action)
        Returns an immutable copy of this with just the action 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 action name.”

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

        public Optional<ActionState> getActionState()
        “Action state.”
        Returns:
        property actionState
      • withActionState

        public RemoteActionAudit withActionState​(ActionState actionState)
        Returns an immutable copy of this with just the actionState 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.

        “Action state.”

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

        public Optional<String> getDeviceDisplayName()
        “Intune device name.”
        Returns:
        property deviceDisplayName
      • withDeviceDisplayName

        public RemoteActionAudit withDeviceDisplayName​(String deviceDisplayName)
        Returns an immutable copy of this with just the deviceDisplayName 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.

        “Intune device name.”

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

        public Optional<String> getDeviceIMEI()
        “IMEI of the device.”
        Returns:
        property deviceIMEI
      • withDeviceIMEI

        public RemoteActionAudit withDeviceIMEI​(String deviceIMEI)
        Returns an immutable copy of this with just the deviceIMEI 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.

        “IMEI of the device.”

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

        public Optional<String> getDeviceOwnerUserPrincipalName()
        “Upn of the device owner.”
        Returns:
        property deviceOwnerUserPrincipalName
      • withDeviceOwnerUserPrincipalName

        public RemoteActionAudit withDeviceOwnerUserPrincipalName​(String deviceOwnerUserPrincipalName)
        Returns an immutable copy of this with just the deviceOwnerUserPrincipalName 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.

        “Upn of the device owner.”

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

        public Optional<String> getInitiatedByUserPrincipalName()
        “User who initiated the device action, format is UPN.”
        Returns:
        property initiatedByUserPrincipalName
      • withInitiatedByUserPrincipalName

        public RemoteActionAudit withInitiatedByUserPrincipalName​(String initiatedByUserPrincipalName)
        Returns an immutable copy of this with just the initiatedByUserPrincipalName 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 who initiated the device action, format is UPN.”

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

        public Optional<String> getManagedDeviceId()
        “Action target.”
        Returns:
        property managedDeviceId
      • withManagedDeviceId

        public RemoteActionAudit withManagedDeviceId​(String managedDeviceId)
        Returns an immutable copy of this with just the managedDeviceId 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.

        “Action target.”

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

        public Optional<OffsetDateTime> getRequestDateTime()
        “Time when the action was issued, given in UTC.”
        Returns:
        property requestDateTime
      • withRequestDateTime

        public RemoteActionAudit withRequestDateTime​(OffsetDateTime requestDateTime)
        Returns an immutable copy of this with just the requestDateTime 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.

        “Time when the action was issued, given in UTC.”

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

        public Optional<String> getUserName()
        “[deprecated] Please use InitiatedByUserPrincipalName instead.”
        Returns:
        property userName
      • withUserName

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

        “[deprecated] Please use InitiatedByUserPrincipalName instead.”

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