Class DeviceManagementIntentDeviceState

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

    public class DeviceManagementIntentDeviceState
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Entity that represents device state for an intent”
    • Constructor Detail

      • DeviceManagementIntentDeviceState

        protected DeviceManagementIntentDeviceState()
    • Method Detail

      • odataTypeName

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

        public static DeviceManagementIntentDeviceState.Builder builderDeviceManagementIntentDeviceState()
        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
      • getDeviceDisplayName

        public Optional<String> getDeviceDisplayName()
        “Device name that is being reported”
        Returns:
        property deviceDisplayName
      • withDeviceDisplayName

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

        “Device name that is being reported”

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

        public Optional<String> getDeviceId()
        “Device id that is being reported”
        Returns:
        property deviceId
      • withDeviceId

        public DeviceManagementIntentDeviceState 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 that is being reported”

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

        public Optional<OffsetDateTime> getLastReportedDateTime()
        “Last modified date time of an intent report”
        Returns:
        property lastReportedDateTime
      • withLastReportedDateTime

        public DeviceManagementIntentDeviceState withLastReportedDateTime​(OffsetDateTime lastReportedDateTime)
        Returns an immutable copy of this with just the lastReportedDateTime 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 modified date time of an intent report”

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

        public DeviceManagementIntentDeviceState withState​(ComplianceStatus state)
        Returns an immutable copy of this with just the state 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 state for an intent”

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

        public Optional<String> getUserName()
        “The user name that is being reported on a device”
        Returns:
        property userName
      • withUserName

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

        “The user name that is being reported on a device”

        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()
        “The user principal name that is being reported on a device”
        Returns:
        property userPrincipalName
      • withUserPrincipalName

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

        “The user principal name that is being reported on a device”

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