Class DeviceInstallState

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

    public class DeviceInstallState
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Contains properties for the installation state for a device.”
    • Field Detail

      • deviceId

        protected String deviceId
      • deviceName

        protected String deviceName
      • errorCode

        protected String errorCode
      • osDescription

        protected String osDescription
      • osVersion

        protected String osVersion
      • userName

        protected String userName
    • Constructor Detail

      • DeviceInstallState

        protected DeviceInstallState()
    • Method Detail

      • odataTypeName

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

        public static DeviceInstallState.Builder builderDeviceInstallState()
        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
      • getDeviceId

        public Optional<String> getDeviceId()
        “Device Id.”
        Returns:
        property deviceId
      • withDeviceId

        public DeviceInstallState 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.”

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

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

        public DeviceInstallState 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
      • getErrorCode

        public Optional<String> getErrorCode()
        “The error code for install failures.”
        Returns:
        property errorCode
      • withErrorCode

        public DeviceInstallState withErrorCode​(String errorCode)
        Returns an immutable copy of this with just the errorCode 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 error code for install failures.”

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

        public Optional<InstallState> getInstallState()
        “The install state of the eBook.”
        Returns:
        property installState
      • withInstallState

        public DeviceInstallState withInstallState​(InstallState installState)
        Returns an immutable copy of this with just the installState 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 install state of the eBook.”

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

        public Optional<OffsetDateTime> getLastSyncDateTime()
        “Last sync date and time.”
        Returns:
        property lastSyncDateTime
      • withLastSyncDateTime

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

        “Last sync date and time.”

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

        public Optional<String> getOsDescription()
        “OS Description.”
        Returns:
        property osDescription
      • withOsDescription

        public DeviceInstallState withOsDescription​(String osDescription)
        Returns an immutable copy of this with just the osDescription 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.

        “OS Description.”

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

        public Optional<String> getOsVersion()
        “OS Version.”
        Returns:
        property osVersion
      • withOsVersion

        public DeviceInstallState withOsVersion​(String osVersion)
        Returns an immutable copy of this with just the osVersion 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.

        “OS Version.”

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

        public Optional<String> getUserName()
        “Device User Name.”
        Returns:
        property userName
      • withUserName

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

        “Device User Name.”

        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 DeviceInstallState 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 DeviceInstallState 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