Class Device

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

    public class Device
    extends DirectoryObject
    implements com.github.davidmoten.odata.client.ODataEntityType

    Org.OData.Capabilities.V1.ChangeTracking

    Supported = true

    • Field Detail

      • accountEnabled

        protected Boolean accountEnabled
      • alternativeSecurityIdsNextLink

        protected String alternativeSecurityIdsNextLink
      • approximateLastSignInDateTime

        protected OffsetDateTime approximateLastSignInDateTime
      • complianceExpirationDateTime

        protected OffsetDateTime complianceExpirationDateTime
      • deviceCategory

        protected String deviceCategory
      • deviceId

        protected String deviceId
      • deviceMetadata

        protected String deviceMetadata
      • deviceOwnership

        protected String deviceOwnership
      • deviceVersion

        protected Integer deviceVersion
      • displayName

        protected String displayName
      • enrollmentProfileName

        protected String enrollmentProfileName
      • isCompliant

        protected Boolean isCompliant
      • isManaged

        protected Boolean isManaged
      • mdmAppId

        protected String mdmAppId
      • onPremisesLastSyncDateTime

        protected OffsetDateTime onPremisesLastSyncDateTime
      • onPremisesSyncEnabled

        protected Boolean onPremisesSyncEnabled
      • operatingSystem

        protected String operatingSystem
      • operatingSystemVersion

        protected String operatingSystemVersion
      • physicalIdsNextLink

        protected String physicalIdsNextLink
      • profileType

        protected String profileType
      • systemLabels

        protected List<String> systemLabels
      • systemLabelsNextLink

        protected String systemLabelsNextLink
      • trustType

        protected String trustType
    • Constructor Detail

      • Device

        protected Device()
    • Method Detail

      • odataTypeName

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

        public static Device.Builder builderDevice()
        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 DirectoryObject
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class DirectoryObject
      • withAccountEnabled

        public Device withAccountEnabled​(Boolean accountEnabled)
      • getAlternativeSecurityIds

        public com.github.davidmoten.odata.client.CollectionPage<AlternativeSecurityId> getAlternativeSecurityIds()
      • getAlternativeSecurityIds

        public com.github.davidmoten.odata.client.CollectionPage<AlternativeSecurityId> getAlternativeSecurityIds​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withApproximateLastSignInDateTime

        public Device withApproximateLastSignInDateTime​(OffsetDateTime approximateLastSignInDateTime)
      • withComplianceExpirationDateTime

        public Device withComplianceExpirationDateTime​(OffsetDateTime complianceExpirationDateTime)
      • withDeviceCategory

        public Device withDeviceCategory​(String deviceCategory)
      • withDeviceId

        public Device withDeviceId​(String deviceId)
      • withDeviceMetadata

        public Device withDeviceMetadata​(String deviceMetadata)
      • withDeviceOwnership

        public Device withDeviceOwnership​(String deviceOwnership)
      • withDeviceVersion

        public Device withDeviceVersion​(Integer deviceVersion)
      • withDisplayName

        public Device withDisplayName​(String displayName)
      • getEnrollmentProfileName

        public Optional<String> getEnrollmentProfileName()
      • withEnrollmentProfileName

        public Device withEnrollmentProfileName​(String enrollmentProfileName)
      • withIsCompliant

        public Device withIsCompliant​(Boolean isCompliant)
      • withIsManaged

        public Device withIsManaged​(Boolean isManaged)
      • withMdmAppId

        public Device withMdmAppId​(String mdmAppId)
      • withOnPremisesLastSyncDateTime

        public Device withOnPremisesLastSyncDateTime​(OffsetDateTime onPremisesLastSyncDateTime)
      • getOnPremisesSyncEnabled

        public Optional<Boolean> getOnPremisesSyncEnabled()
      • withOnPremisesSyncEnabled

        public Device withOnPremisesSyncEnabled​(Boolean onPremisesSyncEnabled)
      • withOperatingSystem

        public Device withOperatingSystem​(String operatingSystem)
      • getOperatingSystemVersion

        public Optional<String> getOperatingSystemVersion()
      • withOperatingSystemVersion

        public Device withOperatingSystemVersion​(String operatingSystemVersion)
      • getPhysicalIds

        public com.github.davidmoten.odata.client.CollectionPage<String> getPhysicalIds()
      • getPhysicalIds

        public com.github.davidmoten.odata.client.CollectionPage<String> getPhysicalIds​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withProfileType

        public Device withProfileType​(String profileType)
      • withRegistrationDateTime

        public Device withRegistrationDateTime​(OffsetDateTime registrationDateTime)
      • getSystemLabels

        public com.github.davidmoten.odata.client.CollectionPage<String> getSystemLabels()
      • withSystemLabels

        public Device withSystemLabels​(List<String> systemLabels)
      • getSystemLabels

        public com.github.davidmoten.odata.client.CollectionPage<String> getSystemLabels​(com.github.davidmoten.odata.client.HttpRequestOptions options)
      • withTrustType

        public Device withTrustType​(String trustType)
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class DirectoryObject
      • patch

        public Device patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class DirectoryObject
        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 Device 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 DirectoryObject
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected