Class WindowsInformationProtectionDeviceRegistration

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

    public class WindowsInformationProtectionDeviceRegistration
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Represents device registration records for Bring-Your-Own-Device(BYOD) Windows devices.”
    • Field Detail

      • deviceMacAddress

        protected String deviceMacAddress
      • deviceName

        protected String deviceName
      • deviceRegistrationId

        protected String deviceRegistrationId
      • deviceType

        protected String deviceType
      • userId

        protected String userId
    • Constructor Detail

      • WindowsInformationProtectionDeviceRegistration

        protected WindowsInformationProtectionDeviceRegistration()
    • Method Detail

      • odataTypeName

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

        public static WindowsInformationProtectionDeviceRegistration.Builder builderWindowsInformationProtectionDeviceRegistration()
        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
      • getDeviceMacAddress

        public Optional<String> getDeviceMacAddress()
        “Device Mac address.”
        Returns:
        property deviceMacAddress
      • withDeviceMacAddress

        public WindowsInformationProtectionDeviceRegistration withDeviceMacAddress​(String deviceMacAddress)
        Returns an immutable copy of this with just the deviceMacAddress 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 Mac address.”

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

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

        public WindowsInformationProtectionDeviceRegistration 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
      • getDeviceRegistrationId

        public Optional<String> getDeviceRegistrationId()
        “Device identifier for this device registration record.”
        Returns:
        property deviceRegistrationId
      • withDeviceRegistrationId

        public WindowsInformationProtectionDeviceRegistration withDeviceRegistrationId​(String deviceRegistrationId)
        Returns an immutable copy of this with just the deviceRegistrationId 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 for this device registration record.”

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

        public Optional<String> getDeviceType()
        “Device type, for example, Windows laptop VS Windows phone.”
        Returns:
        property deviceType
      • withDeviceType

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

        “Device type, for example, Windows laptop VS Windows phone.”

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

        public Optional<OffsetDateTime> getLastCheckInDateTime()
        “Last checkin time of the device.”
        Returns:
        property lastCheckInDateTime
      • withLastCheckInDateTime

        public WindowsInformationProtectionDeviceRegistration withLastCheckInDateTime​(OffsetDateTime lastCheckInDateTime)
        Returns an immutable copy of this with just the lastCheckInDateTime 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 checkin time of the device.”

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

        public Optional<String> getUserId()
        “UserId associated with this device registration record.”
        Returns:
        property userId
      • withUserId

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

        “UserId associated with this device registration record.”

        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 WindowsInformationProtectionDeviceRegistration 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 WindowsInformationProtectionDeviceRegistration 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
      • wipe

        public com.github.davidmoten.odata.client.ActionRequestNoReturn wipe()