Class ComanagementEligibleDevice

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

    public class ComanagementEligibleDevice
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “Device Co-Management eligibility state”
    • Constructor Detail

      • ComanagementEligibleDevice

        protected ComanagementEligibleDevice()
    • Method Detail

      • odataTypeName

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

        public static ComanagementEligibleDevice.Builder builderComanagementEligibleDevice()
        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
      • getClientRegistrationStatus

        public Optional<DeviceRegistrationState> getClientRegistrationStatus()
        “ClientRegistrationStatus”
        Returns:
        property clientRegistrationStatus
      • withClientRegistrationStatus

        public ComanagementEligibleDevice withClientRegistrationStatus​(DeviceRegistrationState clientRegistrationStatus)
        Returns an immutable copy of this with just the clientRegistrationStatus 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.

        “ClientRegistrationStatus”

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

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

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

        “DeviceName”

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

        public Optional<DeviceType> getDeviceType()
        “DeviceType”
        Returns:
        property deviceType
      • withDeviceType

        public ComanagementEligibleDevice withDeviceType​(DeviceType 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.

        “DeviceType”

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

        public Optional<Integer> getEntitySource()
        “EntitySource”
        Returns:
        property entitySource
      • withEntitySource

        public ComanagementEligibleDevice withEntitySource​(Integer entitySource)
        Returns an immutable copy of this with just the entitySource 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.

        “EntitySource”

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

        public Optional<ManagementAgentType> getManagementAgents()
        “ManagementAgents”
        Returns:
        property managementAgents
      • withManagementAgents

        public ComanagementEligibleDevice withManagementAgents​(ManagementAgentType managementAgents)
        Returns an immutable copy of this with just the managementAgents 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.

        “ManagementAgents”

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

        public Optional<ManagementState> getManagementState()
        “ManagementState”
        Returns:
        property managementState
      • withManagementState

        public ComanagementEligibleDevice withManagementState​(ManagementState managementState)
        Returns an immutable copy of this with just the managementState 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.

        “ManagementState”

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

        public Optional<String> getManufacturer()
        “Manufacturer”
        Returns:
        property manufacturer
      • withManufacturer

        public ComanagementEligibleDevice withManufacturer​(String manufacturer)
        Returns an immutable copy of this with just the manufacturer 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.

        “Manufacturer”

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

        public Optional<String> getMdmStatus()
        “MDMStatus”
        Returns:
        property mdmStatus
      • withMdmStatus

        public ComanagementEligibleDevice withMdmStatus​(String mdmStatus)
        Returns an immutable copy of this with just the mdmStatus 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.

        “MDMStatus”

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

        public Optional<String> getModel()
        “Model”
        Returns:
        property model
      • withModel

        public ComanagementEligibleDevice withModel​(String model)
        Returns an immutable copy of this with just the model 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.

        “Model”

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

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

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

        “OSDescription”

        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()
        “OSVersion”
        Returns:
        property osVersion
      • withOsVersion

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

        “OSVersion”

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

        public Optional<OwnerType> getOwnerType()
        “OwnerType”
        Returns:
        property ownerType
      • withOwnerType

        public ComanagementEligibleDevice withOwnerType​(OwnerType ownerType)
        Returns an immutable copy of this with just the ownerType 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.

        “OwnerType”

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

        public Optional<String> getReferenceId()
        “ReferenceId”
        Returns:
        property referenceId
      • withReferenceId

        public ComanagementEligibleDevice withReferenceId​(String referenceId)
        Returns an immutable copy of this with just the referenceId 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.

        “ReferenceId”

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

        public Optional<String> getSerialNumber()
        “SerialNumber”
        Returns:
        property serialNumber
      • withSerialNumber

        public ComanagementEligibleDevice withSerialNumber​(String serialNumber)
        Returns an immutable copy of this with just the serialNumber 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.

        “SerialNumber”

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

        public ComanagementEligibleDevice withStatus​(ComanagementEligibleType status)
        Returns an immutable copy of this with just the status 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.

        “ComanagementEligibleStatus”

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

        public Optional<String> getUpn()
        “UPN”
        Returns:
        property upn
      • withUpn

        public ComanagementEligibleDevice withUpn​(String upn)
        Returns an immutable copy of this with just the upn 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”

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

        public Optional<String> getUserEmail()
        “UserEmail”
        Returns:
        property userEmail
      • withUserEmail

        public ComanagementEligibleDevice withUserEmail​(String userEmail)
        Returns an immutable copy of this with just the userEmail 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.

        “UserEmail”

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

        public Optional<String> getUserId()
        “UserId”
        Returns:
        property userId
      • withUserId

        public ComanagementEligibleDevice 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”

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

        public Optional<String> getUserName()
        “UserName”
        Returns:
        property userName
      • withUserName

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

        “UserName”

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