Class DepOnboardingSetting

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

    public class DepOnboardingSetting
    extends Entity
    implements com.github.davidmoten.odata.client.ODataEntityType
    “The depOnboardingSetting represents an instance of the Apple DEP service being onboarded to Intune. The onboarded service instance manages an Apple Token used to synchronize data between Apple and Intune.”
    • Field Detail

      • appleIdentifier

        protected String appleIdentifier
      • dataSharingConsentGranted

        protected Boolean dataSharingConsentGranted
      • lastSuccessfulSyncDateTime

        protected OffsetDateTime lastSuccessfulSyncDateTime
      • lastSyncErrorCode

        protected Integer lastSyncErrorCode
      • lastSyncTriggeredDateTime

        protected OffsetDateTime lastSyncTriggeredDateTime
      • roleScopeTagIds

        protected List<String> roleScopeTagIds
      • roleScopeTagIdsNextLink

        protected String roleScopeTagIdsNextLink
      • shareTokenWithSchoolDataSyncService

        protected Boolean shareTokenWithSchoolDataSyncService
      • syncedDeviceCount

        protected Integer syncedDeviceCount
      • tokenExpirationDateTime

        protected OffsetDateTime tokenExpirationDateTime
      • tokenName

        protected String tokenName
    • Constructor Detail

      • DepOnboardingSetting

        protected DepOnboardingSetting()
    • Method Detail

      • odataTypeName

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

        public static DepOnboardingSetting.Builder builderDepOnboardingSetting()
        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
      • getAppleIdentifier

        public Optional<String> getAppleIdentifier()
        “The Apple ID used to obtain the current token.”
        Returns:
        property appleIdentifier
      • withAppleIdentifier

        public DepOnboardingSetting withAppleIdentifier​(String appleIdentifier)
        Returns an immutable copy of this with just the appleIdentifier 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 Apple ID used to obtain the current token.”

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

        public Optional<Boolean> getDataSharingConsentGranted()
        “Consent granted for data sharing with Apple Dep Service”
        Returns:
        property dataSharingConsentGranted
      • withDataSharingConsentGranted

        public DepOnboardingSetting withDataSharingConsentGranted​(Boolean dataSharingConsentGranted)
        Returns an immutable copy of this with just the dataSharingConsentGranted 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.

        “Consent granted for data sharing with Apple Dep Service”

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

        public Optional<OffsetDateTime> getLastModifiedDateTime()
        “When the service was onboarded.”
        Returns:
        property lastModifiedDateTime
      • withLastModifiedDateTime

        public DepOnboardingSetting withLastModifiedDateTime​(OffsetDateTime lastModifiedDateTime)
        Returns an immutable copy of this with just the lastModifiedDateTime 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.

        “When the service was onboarded.”

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

        public Optional<OffsetDateTime> getLastSuccessfulSyncDateTime()
        “When the service last syned with Intune”
        Returns:
        property lastSuccessfulSyncDateTime
      • withLastSuccessfulSyncDateTime

        public DepOnboardingSetting withLastSuccessfulSyncDateTime​(OffsetDateTime lastSuccessfulSyncDateTime)
        Returns an immutable copy of this with just the lastSuccessfulSyncDateTime 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.

        “When the service last syned with Intune”

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

        public Optional<Integer> getLastSyncErrorCode()
        “Error code reported by Apple during last dep sync.”
        Returns:
        property lastSyncErrorCode
      • withLastSyncErrorCode

        public DepOnboardingSetting withLastSyncErrorCode​(Integer lastSyncErrorCode)
        Returns an immutable copy of this with just the lastSyncErrorCode 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.

        “Error code reported by Apple during last dep sync.”

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

        public Optional<OffsetDateTime> getLastSyncTriggeredDateTime()
        “When Intune last requested a sync.”
        Returns:
        property lastSyncTriggeredDateTime
      • withLastSyncTriggeredDateTime

        public DepOnboardingSetting withLastSyncTriggeredDateTime​(OffsetDateTime lastSyncTriggeredDateTime)
        Returns an immutable copy of this with just the lastSyncTriggeredDateTime 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.

        “When Intune last requested a sync.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds()
        “List of Scope Tags for this Entity instance.”
        Returns:
        property roleScopeTagIds
      • withRoleScopeTagIds

        public DepOnboardingSetting withRoleScopeTagIds​(List<String> roleScopeTagIds)
        Returns an immutable copy of this with just the roleScopeTagIds 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.

        “List of Scope Tags for this Entity instance.”

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

        public com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds​(com.github.davidmoten.odata.client.HttpRequestOptions options)
        “List of Scope Tags for this Entity instance.”
        Parameters:
        options - specify connect and read timeouts
        Returns:
        property roleScopeTagIds
      • getShareTokenWithSchoolDataSyncService

        public Optional<Boolean> getShareTokenWithSchoolDataSyncService()
        “Whether or not the Dep token sharing is enabled with the School Data Sync service.”
        Returns:
        property shareTokenWithSchoolDataSyncService
      • withShareTokenWithSchoolDataSyncService

        public DepOnboardingSetting withShareTokenWithSchoolDataSyncService​(Boolean shareTokenWithSchoolDataSyncService)
        Returns an immutable copy of this with just the shareTokenWithSchoolDataSyncService 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.

        “Whether or not the Dep token sharing is enabled with the School Data Sync service.”

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

        public Optional<Integer> getSyncedDeviceCount()
        “Gets synced device count”
        Returns:
        property syncedDeviceCount
      • withSyncedDeviceCount

        public DepOnboardingSetting withSyncedDeviceCount​(Integer syncedDeviceCount)
        Returns an immutable copy of this with just the syncedDeviceCount 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.

        “Gets synced device count”

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

        public Optional<OffsetDateTime> getTokenExpirationDateTime()
        “When the token will expire.”
        Returns:
        property tokenExpirationDateTime
      • withTokenExpirationDateTime

        public DepOnboardingSetting withTokenExpirationDateTime​(OffsetDateTime tokenExpirationDateTime)
        Returns an immutable copy of this with just the tokenExpirationDateTime 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.

        “When the token will expire.”

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

        public Optional<String> getTokenName()
        “Friendly Name for Dep Token”
        Returns:
        property tokenName
      • withTokenName

        public DepOnboardingSetting withTokenName​(String tokenName)
        Returns an immutable copy of this with just the tokenName 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.

        “Friendly Name for Dep Token”

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

        public Optional<DepTokenType> getTokenType()
        “Gets or sets the Dep Token Type.”
        Returns:
        property tokenType
      • withTokenType

        public DepOnboardingSetting withTokenType​(DepTokenType tokenType)
        Returns an immutable copy of this with just the tokenType 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.

        “Gets or sets the Dep Token Type.”

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

        public DepIOSEnrollmentProfileRequest getDefaultIosEnrollmentProfile()
        “Default iOS Enrollment Profile”
        Returns:
        navigational property defaultIosEnrollmentProfile
      • getDefaultMacOsEnrollmentProfile

        public DepMacOSEnrollmentProfileRequest getDefaultMacOsEnrollmentProfile()
        “Default MacOs Enrollment Profile”
        Returns:
        navigational property defaultMacOsEnrollmentProfile
      • getEnrollmentProfiles

        public EnrollmentProfileCollectionRequest getEnrollmentProfiles()
        “The enrollment profiles.”
        Returns:
        navigational property enrollmentProfiles
      • getImportedAppleDeviceIdentities

        public ImportedAppleDeviceIdentityCollectionRequest getImportedAppleDeviceIdentities()
        “The imported Apple device identities.”
        Returns:
        navigational property importedAppleDeviceIdentities
      • 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 DepOnboardingSetting 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 DepOnboardingSetting 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
      • generateEncryptionPublicKey

        public com.github.davidmoten.odata.client.ActionRequestReturningNonCollection<String> generateEncryptionPublicKey()
      • shareForSchoolDataSyncService

        public com.github.davidmoten.odata.client.ActionRequestNoReturn shareForSchoolDataSyncService()
      • syncWithAppleDeviceEnrollmentProgram

        public com.github.davidmoten.odata.client.ActionRequestNoReturn syncWithAppleDeviceEnrollmentProgram()
      • unshareForSchoolDataSyncService

        public com.github.davidmoten.odata.client.ActionRequestNoReturn unshareForSchoolDataSyncService()
      • uploadDepToken

        public com.github.davidmoten.odata.client.ActionRequestNoReturn uploadDepToken​(String appleId,
                                                                                       String depToken)
      • getEncryptionPublicKey

        public com.github.davidmoten.odata.client.FunctionRequestReturningNonCollection<String> getEncryptionPublicKey()