Class SharedPCAccountManagerPolicy
- java.lang.Object
-
- odata.msgraph.client.complex.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSharedPCAccountManagerPolicy.Builder
-
Field Summary
Fields Modifier and Type Field Description protected SharedPCAccountDeletionPolicyTypeaccountDeletionPolicyprotected IntegercacheAccountsAboveDiskFreePercentageprotected com.github.davidmoten.odata.client.ContextPathcontextPathprotected IntegerinactiveThresholdDaysprotected StringodataTypeprotected IntegerremoveAccountsBelowDiskFreePercentageprotected com.github.davidmoten.odata.client.internal.UnmappedFieldsImplunmappedFields
-
Constructor Summary
Constructors Modifier Constructor Description protectedSharedPCAccountManagerPolicy()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SharedPCAccountManagerPolicy.Builderbuilder()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<SharedPCAccountDeletionPolicyType>getAccountDeletionPolicy()“Configures when accounts are deleted.”Optional<Integer>getCacheAccountsAboveDiskFreePercentage()“Sets the percentage of available disk space a PC should have before it stops deleting cached shared PC accounts.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.Optional<Integer>getRemoveAccountsBelowDiskFreePercentage()“Sets the percentage of disk space remaining on a PC before cached accounts will be deleted to free disk space.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()SharedPCAccountManagerPolicywithAccountDeletionPolicy(SharedPCAccountDeletionPolicyType accountDeletionPolicy)Returns an immutable copy ofthiswith just theaccountDeletionPolicyfield changed.SharedPCAccountManagerPolicywithCacheAccountsAboveDiskFreePercentage(Integer cacheAccountsAboveDiskFreePercentage)Returns an immutable copy ofthiswith just thecacheAccountsAboveDiskFreePercentagefield changed.SharedPCAccountManagerPolicywithInactiveThresholdDays(Integer inactiveThresholdDays)Returns an immutable copy ofthiswith just theinactiveThresholdDaysfield changed.SharedPCAccountManagerPolicywithRemoveAccountsBelowDiskFreePercentage(Integer removeAccountsBelowDiskFreePercentage)Returns an immutable copy ofthiswith just theremoveAccountsBelowDiskFreePercentagefield changed.SharedPCAccountManagerPolicywithUnmappedField(String name, String value)
-
-
-
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
-
accountDeletionPolicy
protected SharedPCAccountDeletionPolicyType accountDeletionPolicy
-
cacheAccountsAboveDiskFreePercentage
protected Integer cacheAccountsAboveDiskFreePercentage
-
inactiveThresholdDays
protected Integer inactiveThresholdDays
-
removeAccountsBelowDiskFreePercentage
protected Integer removeAccountsBelowDiskFreePercentage
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType
-
getAccountDeletionPolicy
public Optional<SharedPCAccountDeletionPolicyType> getAccountDeletionPolicy()
“Configures when accounts are deleted.”- Returns:
- property accountDeletionPolicy
-
withAccountDeletionPolicy
public SharedPCAccountManagerPolicy withAccountDeletionPolicy(SharedPCAccountDeletionPolicyType accountDeletionPolicy)
Returns an immutable copy ofthiswith just theaccountDeletionPolicyfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“Configures when accounts are deleted.”
- Parameters:
accountDeletionPolicy- new value ofaccountDeletionPolicyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theaccountDeletionPolicyfield 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 ofthiswith just thecacheAccountsAboveDiskFreePercentagefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofcacheAccountsAboveDiskFreePercentagefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecacheAccountsAboveDiskFreePercentagefield 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 ofthiswith just theinactiveThresholdDaysfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofinactiveThresholdDaysfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theinactiveThresholdDaysfield 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 ofthiswith just theremoveAccountsBelowDiskFreePercentagefield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.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 ofremoveAccountsBelowDiskFreePercentagefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theremoveAccountsBelowDiskFreePercentagefield changed
-
withUnmappedField
public SharedPCAccountManagerPolicy withUnmappedField(String name, String value)
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.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
-
-