Class SharedPCConfiguration

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

    public class SharedPCConfiguration
    extends DeviceConfiguration
    implements com.github.davidmoten.odata.client.ODataEntityType
    “This topic provides descriptions of the declared methods, properties and relationships exposed by the sharedPCConfiguration resource.”
    • Field Detail

      • allowLocalStorage

        protected Boolean allowLocalStorage
      • disableAccountManager

        protected Boolean disableAccountManager
      • disableEduPolicies

        protected Boolean disableEduPolicies
      • disablePowerPolicies

        protected Boolean disablePowerPolicies
      • disableSignInOnResume

        protected Boolean disableSignInOnResume
      • enabled

        protected Boolean enabled
      • idleTimeBeforeSleepInSeconds

        protected Integer idleTimeBeforeSleepInSeconds
      • kioskAppDisplayName

        protected String kioskAppDisplayName
      • kioskAppUserModelId

        protected String kioskAppUserModelId
      • maintenanceStartTime

        protected LocalTime maintenanceStartTime
    • Constructor Detail

      • SharedPCConfiguration

        protected SharedPCConfiguration()
    • Method Detail

      • odataTypeName

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

        public static SharedPCConfiguration.Builder builderSharedPCConfiguration()
        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 DeviceConfiguration
      • postInject

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

        public Optional<SharedPCAccountManagerPolicy> getAccountManagerPolicy()
        “Specifies how accounts are managed on a shared PC. Only applies when disableAccountManager is false.”
        Returns:
        property accountManagerPolicy
      • withAccountManagerPolicy

        public SharedPCConfiguration withAccountManagerPolicy​(SharedPCAccountManagerPolicy accountManagerPolicy)
        Returns an immutable copy of this with just the accountManagerPolicy 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.

        “Specifies how accounts are managed on a shared PC. Only applies when disableAccountManager is false.”

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

        public Optional<SharedPCAllowedAccountType> getAllowedAccounts()
        “Indicates which type of accounts are allowed to use on a shared PC.”
        Returns:
        property allowedAccounts
      • withAllowedAccounts

        public SharedPCConfiguration withAllowedAccounts​(SharedPCAllowedAccountType allowedAccounts)
        Returns an immutable copy of this with just the allowedAccounts 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.

        “Indicates which type of accounts are allowed to use on a shared PC.”

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

        public Optional<Boolean> getAllowLocalStorage()
        “Specifies whether local storage is allowed on a shared PC.”
        Returns:
        property allowLocalStorage
      • withAllowLocalStorage

        public SharedPCConfiguration withAllowLocalStorage​(Boolean allowLocalStorage)
        Returns an immutable copy of this with just the allowLocalStorage 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.

        “Specifies whether local storage is allowed on a shared PC.”

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

        public Optional<Boolean> getDisableAccountManager()
        “Disables the account manager for shared PC mode.”
        Returns:
        property disableAccountManager
      • withDisableAccountManager

        public SharedPCConfiguration withDisableAccountManager​(Boolean disableAccountManager)
        Returns an immutable copy of this with just the disableAccountManager 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.

        “Disables the account manager for shared PC mode.”

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

        public Optional<Boolean> getDisableEduPolicies()
        “Specifies whether the default shared PC education environment policies should be disabled. For Windows 10 RS2 and later, this policy will be applied without setting Enabled to true.”
        Returns:
        property disableEduPolicies
      • withDisableEduPolicies

        public SharedPCConfiguration withDisableEduPolicies​(Boolean disableEduPolicies)
        Returns an immutable copy of this with just the disableEduPolicies 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.

        “Specifies whether the default shared PC education environment policies should be disabled. For Windows 10 RS2 and later, this policy will be applied without setting Enabled to true.”

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

        public Optional<Boolean> getDisablePowerPolicies()
        “Specifies whether the default shared PC power policies should be disabled.”
        Returns:
        property disablePowerPolicies
      • withDisablePowerPolicies

        public SharedPCConfiguration withDisablePowerPolicies​(Boolean disablePowerPolicies)
        Returns an immutable copy of this with just the disablePowerPolicies 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.

        “Specifies whether the default shared PC power policies should be disabled.”

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

        public Optional<Boolean> getDisableSignInOnResume()
        “Disables the requirement to sign in whenever the device wakes up from sleep mode .”
        Returns:
        property disableSignInOnResume
      • withDisableSignInOnResume

        public SharedPCConfiguration withDisableSignInOnResume​(Boolean disableSignInOnResume)
        Returns an immutable copy of this with just the disableSignInOnResume 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.

        “Disables the requirement to sign in whenever the device wakes up from sleep mode .”

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

        public Optional<Boolean> getEnabled()
        “Enables shared PC mode and applies the shared pc policies.”
        Returns:
        property enabled
      • withEnabled

        public SharedPCConfiguration withEnabled​(Boolean enabled)
        Returns an immutable copy of this with just the enabled 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.

        “Enables shared PC mode and applies the shared pc policies.”

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

        public Optional<Integer> getIdleTimeBeforeSleepInSeconds()
        “Specifies the time in seconds that a device must sit idle before the PC goes to sleep. Setting this value to 0 prevents the sleep timeout from occurring.”
        Returns:
        property idleTimeBeforeSleepInSeconds
      • withIdleTimeBeforeSleepInSeconds

        public SharedPCConfiguration withIdleTimeBeforeSleepInSeconds​(Integer idleTimeBeforeSleepInSeconds)
        Returns an immutable copy of this with just the idleTimeBeforeSleepInSeconds 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.

        “Specifies the time in seconds that a device must sit idle before the PC goes to sleep. Setting this value to 0 prevents the sleep timeout from occurring.”

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

        public Optional<String> getKioskAppDisplayName()
        “Specifies the display text for the account shown on the sign-in screen which launches the app specified by SetKioskAppUserModelId. Only applies when KioskAppUserModelId is set.”
        Returns:
        property kioskAppDisplayName
      • withKioskAppDisplayName

        public SharedPCConfiguration withKioskAppDisplayName​(String kioskAppDisplayName)
        Returns an immutable copy of this with just the kioskAppDisplayName 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.

        “Specifies the display text for the account shown on the sign-in screen which launches the app specified by SetKioskAppUserModelId. Only applies when KioskAppUserModelId is set.”

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

        public Optional<String> getKioskAppUserModelId()
        “Specifies the application user model ID of the app to use with assigned access.”
        Returns:
        property kioskAppUserModelId
      • withKioskAppUserModelId

        public SharedPCConfiguration withKioskAppUserModelId​(String kioskAppUserModelId)
        Returns an immutable copy of this with just the kioskAppUserModelId 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.

        “Specifies the application user model ID of the app to use with assigned access.”

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

        public Optional<LocalTime> getMaintenanceStartTime()
        “Specifies the daily start time of maintenance hour.”
        Returns:
        property maintenanceStartTime
      • withMaintenanceStartTime

        public SharedPCConfiguration withMaintenanceStartTime​(LocalTime maintenanceStartTime)
        Returns an immutable copy of this with just the maintenanceStartTime 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.

        “Specifies the daily start time of maintenance hour.”

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

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