Class SharedPCConfiguration
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.DeviceConfiguration
-
- odata.msgraph.client.entity.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.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSharedPCConfiguration.Builder
-
Field Summary
Fields Modifier and Type Field Description protected SharedPCAccountManagerPolicyaccountManagerPolicyprotected SharedPCAllowedAccountTypeallowedAccountsprotected BooleanallowLocalStorageprotected BooleandisableAccountManagerprotected BooleandisableEduPoliciesprotected BooleandisablePowerPoliciesprotected BooleandisableSignInOnResumeprotected Booleanenabledprotected IntegeridleTimeBeforeSleepInSecondsprotected StringkioskAppDisplayNameprotected StringkioskAppUserModelIdprotected LocalTimemaintenanceStartTime-
Fields inherited from class odata.msgraph.client.entity.DeviceConfiguration
createdDateTime, description, displayName, lastModifiedDateTime, version
-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedSharedPCConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SharedPCConfiguration.BuilderbuilderSharedPCConfiguration()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<SharedPCAccountManagerPolicy>getAccountManagerPolicy()“Specifies how accounts are managed on a shared PC.Optional<SharedPCAllowedAccountType>getAllowedAccounts()“Indicates which type of accounts are allowed to use on a shared PC.”Optional<Boolean>getAllowLocalStorage()“Specifies whether local storage is allowed on a shared PC.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<Boolean>getDisableAccountManager()“Disables the account manager for shared PC mode.”Optional<Boolean>getDisableEduPolicies()“Specifies whether the default shared PC education environment policies should be disabled.Optional<Boolean>getDisablePowerPolicies()“Specifies whether the default shared PC power policies should be disabled.”Optional<Boolean>getDisableSignInOnResume()“Disables the requirement to sign in whenever the device wakes up from sleep mode .”Optional<Boolean>getEnabled()“Enables shared PC mode and applies the shared pc policies.”Optional<Integer>getIdleTimeBeforeSleepInSeconds()“Specifies the time in seconds that a device must sit idle before the PC goes to sleep.Optional<String>getKioskAppDisplayName()“Specifies the display text for the account shown on the sign-in screen which launches the app specified by SetKioskAppUserModelId.Optional<String>getKioskAppUserModelId()“Specifies the application user model ID of the app to use with assigned access.”Optional<LocalTime>getMaintenanceStartTime()“Specifies the daily start time of maintenance hour.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()SharedPCConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)SharedPCConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()SharedPCConfigurationwithAccountManagerPolicy(SharedPCAccountManagerPolicy accountManagerPolicy)Returns an immutable copy ofthiswith just theaccountManagerPolicyfield changed.SharedPCConfigurationwithAllowedAccounts(SharedPCAllowedAccountType allowedAccounts)Returns an immutable copy ofthiswith just theallowedAccountsfield changed.SharedPCConfigurationwithAllowLocalStorage(Boolean allowLocalStorage)Returns an immutable copy ofthiswith just theallowLocalStoragefield changed.SharedPCConfigurationwithDisableAccountManager(Boolean disableAccountManager)Returns an immutable copy ofthiswith just thedisableAccountManagerfield changed.SharedPCConfigurationwithDisableEduPolicies(Boolean disableEduPolicies)Returns an immutable copy ofthiswith just thedisableEduPoliciesfield changed.SharedPCConfigurationwithDisablePowerPolicies(Boolean disablePowerPolicies)Returns an immutable copy ofthiswith just thedisablePowerPoliciesfield changed.SharedPCConfigurationwithDisableSignInOnResume(Boolean disableSignInOnResume)Returns an immutable copy ofthiswith just thedisableSignInOnResumefield changed.SharedPCConfigurationwithEnabled(Boolean enabled)Returns an immutable copy ofthiswith just theenabledfield changed.SharedPCConfigurationwithIdleTimeBeforeSleepInSeconds(Integer idleTimeBeforeSleepInSeconds)Returns an immutable copy ofthiswith just theidleTimeBeforeSleepInSecondsfield changed.SharedPCConfigurationwithKioskAppDisplayName(String kioskAppDisplayName)Returns an immutable copy ofthiswith just thekioskAppDisplayNamefield changed.SharedPCConfigurationwithKioskAppUserModelId(String kioskAppUserModelId)Returns an immutable copy ofthiswith just thekioskAppUserModelIdfield changed.SharedPCConfigurationwithMaintenanceStartTime(LocalTime maintenanceStartTime)Returns an immutable copy ofthiswith just themaintenanceStartTimefield changed.SharedPCConfigurationwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.entity.DeviceConfiguration
assign, getAssignments, getCreatedDateTime, getDescription, getDeviceSettingStateSummaries, getDeviceStatuses, getDeviceStatusOverview, getDisplayName, getLastModifiedDateTime, getOmaSettingPlainTextValue, getUserStatuses, getUserStatusOverview, getVersion, withCreatedDateTime, withDescription, withDisplayName, withLastModifiedDateTime, withVersion
-
-
-
-
Field Detail
-
accountManagerPolicy
protected SharedPCAccountManagerPolicy accountManagerPolicy
-
allowedAccounts
protected SharedPCAllowedAccountType allowedAccounts
-
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
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceConfiguration
-
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:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classDeviceConfiguration
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classDeviceConfiguration
-
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 ofthiswith just theaccountManagerPolicyfield 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 how accounts are managed on a shared PC. Only applies when disableAccountManager is false.”
- Parameters:
accountManagerPolicy- new value ofaccountManagerPolicyfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theaccountManagerPolicyfield 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 ofthiswith just theallowedAccountsfield 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.“Indicates which type of accounts are allowed to use on a shared PC.”
- Parameters:
allowedAccounts- new value ofallowedAccountsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theallowedAccountsfield 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 ofthiswith just theallowLocalStoragefield 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 whether local storage is allowed on a shared PC.”
- Parameters:
allowLocalStorage- new value ofallowLocalStoragefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theallowLocalStoragefield 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 ofthiswith just thedisableAccountManagerfield 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.“Disables the account manager for shared PC mode.”
- Parameters:
disableAccountManager- new value ofdisableAccountManagerfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisableAccountManagerfield 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 ofthiswith just thedisableEduPoliciesfield 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 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 ofdisableEduPoliciesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisableEduPoliciesfield 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 ofthiswith just thedisablePowerPoliciesfield 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 whether the default shared PC power policies should be disabled.”
- Parameters:
disablePowerPolicies- new value ofdisablePowerPoliciesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisablePowerPoliciesfield 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 ofthiswith just thedisableSignInOnResumefield 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.“Disables the requirement to sign in whenever the device wakes up from sleep mode .”
- Parameters:
disableSignInOnResume- new value ofdisableSignInOnResumefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisableSignInOnResumefield 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 ofthiswith just theenabledfield 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.“Enables shared PC mode and applies the shared pc policies.”
- Parameters:
enabled- new value ofenabledfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theenabledfield 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 ofthiswith just theidleTimeBeforeSleepInSecondsfield 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 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 ofidleTimeBeforeSleepInSecondsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theidleTimeBeforeSleepInSecondsfield 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 ofthiswith just thekioskAppDisplayNamefield 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 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 ofkioskAppDisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thekioskAppDisplayNamefield 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 ofthiswith just thekioskAppUserModelIdfield 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 the application user model ID of the app to use with assigned access.”
- Parameters:
kioskAppUserModelId- new value ofkioskAppUserModelIdfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thekioskAppUserModelIdfield 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 ofthiswith just themaintenanceStartTimefield 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 the daily start time of maintenance hour.”
- Parameters:
maintenanceStartTime- new value ofmaintenanceStartTimefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themaintenanceStartTimefield changed
-
withUnmappedField
public SharedPCConfiguration withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeviceConfiguration
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeviceConfiguration
-
patch
public SharedPCConfiguration patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classDeviceConfiguration- Returns:
- a copy of
thiswith 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 ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classDeviceConfiguration- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classDeviceConfiguration
-
-