Class SharedPCAccountManagerPolicy

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

    public class SharedPCAccountManagerPolicy
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “SharedPC Account Manager Policy. Only applies when the account manager is enabled.”
    • Field Detail

      • contextPath

        protected com.github.davidmoten.odata.client.ContextPath contextPath
      • unmappedFields

        protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
      • odataType

        protected String odataType
      • cacheAccountsAboveDiskFreePercentage

        protected Integer cacheAccountsAboveDiskFreePercentage
      • inactiveThresholdDays

        protected Integer inactiveThresholdDays
      • removeAccountsBelowDiskFreePercentage

        protected Integer removeAccountsBelowDiskFreePercentage
    • Constructor Detail

      • SharedPCAccountManagerPolicy

        protected SharedPCAccountManagerPolicy()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • withAccountDeletionPolicy

        public SharedPCAccountManagerPolicy withAccountDeletionPolicy​(SharedPCAccountDeletionPolicyType accountDeletionPolicy)
        Returns an immutable copy of this with just the accountDeletionPolicy 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.

        “Configures when accounts are deleted.”

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

        public Optional<Integer> getCacheAccountsAboveDiskFreePercentage()
        “Sets the percentage of available disk space a PC should have before it stops deleting cached shared PC accounts. Only applies when AccountDeletionPolicy is DiskSpaceThreshold or DiskSpaceThresholdOrInactiveThreshold. Valid values 0 to 100”
        Returns:
        property cacheAccountsAboveDiskFreePercentage
      • withCacheAccountsAboveDiskFreePercentage

        public SharedPCAccountManagerPolicy withCacheAccountsAboveDiskFreePercentage​(Integer cacheAccountsAboveDiskFreePercentage)
        Returns an immutable copy of this with just the cacheAccountsAboveDiskFreePercentage 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.

        “Sets the percentage of available disk space a PC should have before it stops deleting cached shared PC accounts. Only applies when AccountDeletionPolicy is DiskSpaceThreshold or DiskSpaceThresholdOrInactiveThreshold. Valid values 0 to 100”

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

        public Optional<Integer> getInactiveThresholdDays()
        “Specifies when the accounts will start being deleted when they have not been logged on during the specified period, given as number of days. Only applies when AccountDeletionPolicy is DiskSpaceThreshold or DiskSpaceThresholdOrInactiveThreshold.”
        Returns:
        property inactiveThresholdDays
      • withInactiveThresholdDays

        public SharedPCAccountManagerPolicy withInactiveThresholdDays​(Integer inactiveThresholdDays)
        Returns an immutable copy of this with just the inactiveThresholdDays 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 when the accounts will start being deleted when they have not been logged on during the specified period, given as number of days. Only applies when AccountDeletionPolicy is DiskSpaceThreshold or DiskSpaceThresholdOrInactiveThreshold.”

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

        public Optional<Integer> getRemoveAccountsBelowDiskFreePercentage()
        “Sets the percentage of disk space remaining on a PC before cached accounts will be deleted to free disk space. Accounts that have been inactive the longest will be deleted first. Only applies when AccountDeletionPolicy is DiskSpaceThresholdOrInactiveThreshold. Valid values 0 to 100”
        Returns:
        property removeAccountsBelowDiskFreePercentage
      • withRemoveAccountsBelowDiskFreePercentage

        public SharedPCAccountManagerPolicy withRemoveAccountsBelowDiskFreePercentage​(Integer removeAccountsBelowDiskFreePercentage)
        Returns an immutable copy of this with just the removeAccountsBelowDiskFreePercentage 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.

        “Sets the percentage of disk space remaining on a PC before cached accounts will be deleted to free disk space. Accounts that have been inactive the longest will be deleted first. Only applies when AccountDeletionPolicy is DiskSpaceThresholdOrInactiveThreshold. Valid values 0 to 100”

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

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

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

        public static SharedPCAccountManagerPolicy.Builder builder()
        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