Class WindowsDeliveryOptimizationConfiguration
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.DeviceConfiguration
-
- odata.msgraph.client.beta.entity.WindowsDeliveryOptimizationConfiguration
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class WindowsDeliveryOptimizationConfiguration extends DeviceConfiguration implements com.github.davidmoten.odata.client.ODataEntityType
“Windows Delivery Optimization configuration”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWindowsDeliveryOptimizationConfiguration.Builder
-
Field Summary
-
Fields inherited from class odata.msgraph.client.beta.entity.DeviceConfiguration
createdDateTime, description, deviceManagementApplicabilityRuleDeviceMode, deviceManagementApplicabilityRuleOsEdition, deviceManagementApplicabilityRuleOsVersion, displayName, lastModifiedDateTime, roleScopeTagIds, roleScopeTagIdsNextLink, supportsScopeTags, version
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedWindowsDeliveryOptimizationConfiguration()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static WindowsDeliveryOptimizationConfiguration.BuilderbuilderWindowsDeliveryOptimizationConfiguration()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Long>getBackgroundDownloadFromHttpDelayInSeconds()“Specifies number of seconds to delay an HTTP source in a background download that is allowed to use peer-to-peer.Optional<DeliveryOptimizationBandwidth>getBandwidthMode()“Specifies foreground and background bandwidth usage using percentages, absolutes , or hours.”Optional<Integer>getCacheServerBackgroundDownloadFallbackToHttpDelayInSeconds()“Specifies number of seconds to delay a fall back from cache servers to an HTTP source for a background download.Optional<Integer>getCacheServerForegroundDownloadFallbackToHttpDelayInSeconds()“Specifies number of seconds to delay a fall back from cache servers to an HTTP source for a foreground download.com.github.davidmoten.odata.client.CollectionPage<String>getCacheServerHostNames()“Specifies cache servers host names.”com.github.davidmoten.odata.client.CollectionPage<String>getCacheServerHostNames(com.github.davidmoten.odata.client.HttpRequestOptions options)“Specifies cache servers host names.”com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()Optional<WindowsDeliveryOptimizationMode>getDeliveryOptimizationMode()“Specifies the download method that delivery optimization can use to manage network bandwidth consumption for large content distribution scenarios.”Optional<Long>getForegroundDownloadFromHttpDelayInSeconds()“Specifying 0 sets Delivery Optimization to manage this setting using the cloud service.Optional<DeliveryOptimizationGroupIdSource>getGroupIdSource()“The options set in this policy only apply to Delivery Optimization mode Group (2 ) download mode.Optional<Integer>getMaximumCacheAgeInDays()“Specifies the maximum time in days that each file is held in the Delivery Optimization cache after downloading successfully (0-3650).Optional<DeliveryOptimizationMaxCacheSize>getMaximumCacheSize()“Specifies the maximum cache size that Delivery Optimization either as a percentage or in GB.”Optional<Integer>getMinimumBatteryPercentageAllowedToUpload()“The default value is 0.Optional<Integer>getMinimumDiskSizeAllowedToPeerInGigabytes()“Recommended values: 64 GB to 256 GB.Optional<Integer>getMinimumFileSizeToCacheInMegabytes()“Recommended values: 1 MB to 100,000 MB.Optional<Integer>getMinimumRamAllowedToPeerInGigabytes()“Specifies the minimum RAM size in GB to use Peer Caching (1-100000).Optional<String>getModifyCacheLocation()“Specifies the drive that Delivery Optimization should use for its cache.”Optional<DeliveryOptimizationRestrictPeerSelectionByOptions>getRestrictPeerSelectionBy()“Option 1 (Subnet mask) only applies to Delivery Optimization modes Download Mode LAN (1) and Group (2).”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()Optional<Enablement>getVpnPeerCaching()“Specifies whether the device is allowed to participate in Peer Caching while connected via VPN to the domain network.”StringodataTypeName()WindowsDeliveryOptimizationConfigurationpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)WindowsDeliveryOptimizationConfigurationput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()WindowsDeliveryOptimizationConfigurationwithBackgroundDownloadFromHttpDelayInSeconds(Long backgroundDownloadFromHttpDelayInSeconds)Returns an immutable copy ofthiswith just thebackgroundDownloadFromHttpDelayInSecondsfield changed.WindowsDeliveryOptimizationConfigurationwithBandwidthMode(DeliveryOptimizationBandwidth bandwidthMode)Returns an immutable copy ofthiswith just thebandwidthModefield changed.WindowsDeliveryOptimizationConfigurationwithCacheServerBackgroundDownloadFallbackToHttpDelayInSeconds(Integer cacheServerBackgroundDownloadFallbackToHttpDelayInSeconds)Returns an immutable copy ofthiswith just thecacheServerBackgroundDownloadFallbackToHttpDelayInSecondsfield changed.WindowsDeliveryOptimizationConfigurationwithCacheServerForegroundDownloadFallbackToHttpDelayInSeconds(Integer cacheServerForegroundDownloadFallbackToHttpDelayInSeconds)Returns an immutable copy ofthiswith just thecacheServerForegroundDownloadFallbackToHttpDelayInSecondsfield changed.WindowsDeliveryOptimizationConfigurationwithCacheServerHostNames(List<String> cacheServerHostNames)Returns an immutable copy ofthiswith just thecacheServerHostNamesfield changed.WindowsDeliveryOptimizationConfigurationwithDeliveryOptimizationMode(WindowsDeliveryOptimizationMode deliveryOptimizationMode)Returns an immutable copy ofthiswith just thedeliveryOptimizationModefield changed.WindowsDeliveryOptimizationConfigurationwithForegroundDownloadFromHttpDelayInSeconds(Long foregroundDownloadFromHttpDelayInSeconds)Returns an immutable copy ofthiswith just theforegroundDownloadFromHttpDelayInSecondsfield changed.WindowsDeliveryOptimizationConfigurationwithGroupIdSource(DeliveryOptimizationGroupIdSource groupIdSource)Returns an immutable copy ofthiswith just thegroupIdSourcefield changed.WindowsDeliveryOptimizationConfigurationwithMaximumCacheAgeInDays(Integer maximumCacheAgeInDays)Returns an immutable copy ofthiswith just themaximumCacheAgeInDaysfield changed.WindowsDeliveryOptimizationConfigurationwithMaximumCacheSize(DeliveryOptimizationMaxCacheSize maximumCacheSize)Returns an immutable copy ofthiswith just themaximumCacheSizefield changed.WindowsDeliveryOptimizationConfigurationwithMinimumBatteryPercentageAllowedToUpload(Integer minimumBatteryPercentageAllowedToUpload)Returns an immutable copy ofthiswith just theminimumBatteryPercentageAllowedToUploadfield changed.WindowsDeliveryOptimizationConfigurationwithMinimumDiskSizeAllowedToPeerInGigabytes(Integer minimumDiskSizeAllowedToPeerInGigabytes)Returns an immutable copy ofthiswith just theminimumDiskSizeAllowedToPeerInGigabytesfield changed.WindowsDeliveryOptimizationConfigurationwithMinimumFileSizeToCacheInMegabytes(Integer minimumFileSizeToCacheInMegabytes)Returns an immutable copy ofthiswith just theminimumFileSizeToCacheInMegabytesfield changed.WindowsDeliveryOptimizationConfigurationwithMinimumRamAllowedToPeerInGigabytes(Integer minimumRamAllowedToPeerInGigabytes)Returns an immutable copy ofthiswith just theminimumRamAllowedToPeerInGigabytesfield changed.WindowsDeliveryOptimizationConfigurationwithModifyCacheLocation(String modifyCacheLocation)Returns an immutable copy ofthiswith just themodifyCacheLocationfield changed.WindowsDeliveryOptimizationConfigurationwithRestrictPeerSelectionBy(DeliveryOptimizationRestrictPeerSelectionByOptions restrictPeerSelectionBy)Returns an immutable copy ofthiswith just therestrictPeerSelectionByfield changed.WindowsDeliveryOptimizationConfigurationwithUnmappedField(String name, String value)WindowsDeliveryOptimizationConfigurationwithVpnPeerCaching(Enablement vpnPeerCaching)Returns an immutable copy ofthiswith just thevpnPeerCachingfield changed.-
Methods inherited from class odata.msgraph.client.beta.entity.DeviceConfiguration
assign, assignedAccessMultiModeProfiles, getAssignments, getCreatedDateTime, getDescription, getDeviceManagementApplicabilityRuleDeviceMode, getDeviceManagementApplicabilityRuleOsEdition, getDeviceManagementApplicabilityRuleOsVersion, getDeviceSettingStateSummaries, getDeviceStatuses, getDeviceStatusOverview, getDisplayName, getGroupAssignments, getLastModifiedDateTime, getOmaSettingPlainTextValue, getRoleScopeTagIds, getRoleScopeTagIds, getSupportsScopeTags, getUserStatuses, getUserStatusOverview, getVersion, windowsPrivacyAccessControls, withCreatedDateTime, withDescription, withDeviceManagementApplicabilityRuleDeviceMode, withDeviceManagementApplicabilityRuleOsEdition, withDeviceManagementApplicabilityRuleOsVersion, withDisplayName, withLastModifiedDateTime, withRoleScopeTagIds, withSupportsScopeTags, withVersion
-
-
-
-
Field Detail
-
backgroundDownloadFromHttpDelayInSeconds
protected Long backgroundDownloadFromHttpDelayInSeconds
-
bandwidthMode
protected DeliveryOptimizationBandwidth bandwidthMode
-
cacheServerBackgroundDownloadFallbackToHttpDelayInSeconds
protected Integer cacheServerBackgroundDownloadFallbackToHttpDelayInSeconds
-
cacheServerForegroundDownloadFallbackToHttpDelayInSeconds
protected Integer cacheServerForegroundDownloadFallbackToHttpDelayInSeconds
-
cacheServerHostNamesNextLink
protected String cacheServerHostNamesNextLink
-
deliveryOptimizationMode
protected WindowsDeliveryOptimizationMode deliveryOptimizationMode
-
foregroundDownloadFromHttpDelayInSeconds
protected Long foregroundDownloadFromHttpDelayInSeconds
-
groupIdSource
protected DeliveryOptimizationGroupIdSource groupIdSource
-
maximumCacheAgeInDays
protected Integer maximumCacheAgeInDays
-
maximumCacheSize
protected DeliveryOptimizationMaxCacheSize maximumCacheSize
-
minimumBatteryPercentageAllowedToUpload
protected Integer minimumBatteryPercentageAllowedToUpload
-
minimumDiskSizeAllowedToPeerInGigabytes
protected Integer minimumDiskSizeAllowedToPeerInGigabytes
-
minimumFileSizeToCacheInMegabytes
protected Integer minimumFileSizeToCacheInMegabytes
-
minimumRamAllowedToPeerInGigabytes
protected Integer minimumRamAllowedToPeerInGigabytes
-
modifyCacheLocation
protected String modifyCacheLocation
-
restrictPeerSelectionBy
protected DeliveryOptimizationRestrictPeerSelectionByOptions restrictPeerSelectionBy
-
vpnPeerCaching
protected Enablement vpnPeerCaching
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeviceConfiguration
-
builderWindowsDeliveryOptimizationConfiguration
public static WindowsDeliveryOptimizationConfiguration.Builder builderWindowsDeliveryOptimizationConfiguration()
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
-
getBackgroundDownloadFromHttpDelayInSeconds
public Optional<Long> getBackgroundDownloadFromHttpDelayInSeconds()
“Specifies number of seconds to delay an HTTP source in a background download that is allowed to use peer-to-peer. Valid values 0 to 4294967295”- Returns:
- property backgroundDownloadFromHttpDelayInSeconds
-
withBackgroundDownloadFromHttpDelayInSeconds
public WindowsDeliveryOptimizationConfiguration withBackgroundDownloadFromHttpDelayInSeconds(Long backgroundDownloadFromHttpDelayInSeconds)
Returns an immutable copy ofthiswith just thebackgroundDownloadFromHttpDelayInSecondsfield 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 number of seconds to delay an HTTP source in a background download that is allowed to use peer-to-peer. Valid values 0 to 4294967295”
- Parameters:
backgroundDownloadFromHttpDelayInSeconds- new value ofbackgroundDownloadFromHttpDelayInSecondsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebackgroundDownloadFromHttpDelayInSecondsfield changed
-
getBandwidthMode
public Optional<DeliveryOptimizationBandwidth> getBandwidthMode()
“Specifies foreground and background bandwidth usage using percentages, absolutes , or hours.”- Returns:
- property bandwidthMode
-
withBandwidthMode
public WindowsDeliveryOptimizationConfiguration withBandwidthMode(DeliveryOptimizationBandwidth bandwidthMode)
Returns an immutable copy ofthiswith just thebandwidthModefield 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 foreground and background bandwidth usage using percentages, absolutes , or hours.”
- Parameters:
bandwidthMode- new value ofbandwidthModefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thebandwidthModefield changed
-
getCacheServerBackgroundDownloadFallbackToHttpDelayInSeconds
public Optional<Integer> getCacheServerBackgroundDownloadFallbackToHttpDelayInSeconds()
“Specifies number of seconds to delay a fall back from cache servers to an HTTP source for a background download. Valid values 0 to 2592000.”- Returns:
- property cacheServerBackgroundDownloadFallbackToHttpDelayInSeconds
-
withCacheServerBackgroundDownloadFallbackToHttpDelayInSeconds
public WindowsDeliveryOptimizationConfiguration withCacheServerBackgroundDownloadFallbackToHttpDelayInSeconds(Integer cacheServerBackgroundDownloadFallbackToHttpDelayInSeconds)
Returns an immutable copy ofthiswith just thecacheServerBackgroundDownloadFallbackToHttpDelayInSecondsfield 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 number of seconds to delay a fall back from cache servers to an HTTP source for a background download. Valid values 0 to 2592000.”
- Parameters:
cacheServerBackgroundDownloadFallbackToHttpDelayInSeconds- new value ofcacheServerBackgroundDownloadFallbackToHttpDelayInSecondsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecacheServerBackgroundDownloadFallbackToHttpDelayInSecondsfield changed
-
getCacheServerForegroundDownloadFallbackToHttpDelayInSeconds
public Optional<Integer> getCacheServerForegroundDownloadFallbackToHttpDelayInSeconds()
“Specifies number of seconds to delay a fall back from cache servers to an HTTP source for a foreground download. Valid values 0 to 2592000.”- Returns:
- property cacheServerForegroundDownloadFallbackToHttpDelayInSeconds
-
withCacheServerForegroundDownloadFallbackToHttpDelayInSeconds
public WindowsDeliveryOptimizationConfiguration withCacheServerForegroundDownloadFallbackToHttpDelayInSeconds(Integer cacheServerForegroundDownloadFallbackToHttpDelayInSeconds)
Returns an immutable copy ofthiswith just thecacheServerForegroundDownloadFallbackToHttpDelayInSecondsfield 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 number of seconds to delay a fall back from cache servers to an HTTP source for a foreground download. Valid values 0 to 2592000.”
- Parameters:
cacheServerForegroundDownloadFallbackToHttpDelayInSeconds- new value ofcacheServerForegroundDownloadFallbackToHttpDelayInSecondsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecacheServerForegroundDownloadFallbackToHttpDelayInSecondsfield changed
-
getCacheServerHostNames
public com.github.davidmoten.odata.client.CollectionPage<String> getCacheServerHostNames()
“Specifies cache servers host names.”- Returns:
- property cacheServerHostNames
-
withCacheServerHostNames
public WindowsDeliveryOptimizationConfiguration withCacheServerHostNames(List<String> cacheServerHostNames)
Returns an immutable copy ofthiswith just thecacheServerHostNamesfield 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 cache servers host names.”
- Parameters:
cacheServerHostNames- new value ofcacheServerHostNamesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thecacheServerHostNamesfield changed
-
getCacheServerHostNames
public com.github.davidmoten.odata.client.CollectionPage<String> getCacheServerHostNames(com.github.davidmoten.odata.client.HttpRequestOptions options)
“Specifies cache servers host names.”- Parameters:
options- specify connect and read timeouts- Returns:
- property cacheServerHostNames
-
getDeliveryOptimizationMode
public Optional<WindowsDeliveryOptimizationMode> getDeliveryOptimizationMode()
“Specifies the download method that delivery optimization can use to manage network bandwidth consumption for large content distribution scenarios.”- Returns:
- property deliveryOptimizationMode
-
withDeliveryOptimizationMode
public WindowsDeliveryOptimizationConfiguration withDeliveryOptimizationMode(WindowsDeliveryOptimizationMode deliveryOptimizationMode)
Returns an immutable copy ofthiswith just thedeliveryOptimizationModefield 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 download method that delivery optimization can use to manage network bandwidth consumption for large content distribution scenarios.”
- Parameters:
deliveryOptimizationMode- new value ofdeliveryOptimizationModefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedeliveryOptimizationModefield changed
-
getForegroundDownloadFromHttpDelayInSeconds
public Optional<Long> getForegroundDownloadFromHttpDelayInSeconds()
“Specifying 0 sets Delivery Optimization to manage this setting using the cloud service. Valid values 0 to 86400”- Returns:
- property foregroundDownloadFromHttpDelayInSeconds
-
withForegroundDownloadFromHttpDelayInSeconds
public WindowsDeliveryOptimizationConfiguration withForegroundDownloadFromHttpDelayInSeconds(Long foregroundDownloadFromHttpDelayInSeconds)
Returns an immutable copy ofthiswith just theforegroundDownloadFromHttpDelayInSecondsfield 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.“Specifying 0 sets Delivery Optimization to manage this setting using the cloud service. Valid values 0 to 86400”
- Parameters:
foregroundDownloadFromHttpDelayInSeconds- new value offoregroundDownloadFromHttpDelayInSecondsfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theforegroundDownloadFromHttpDelayInSecondsfield changed
-
getGroupIdSource
public Optional<DeliveryOptimizationGroupIdSource> getGroupIdSource()
“The options set in this policy only apply to Delivery Optimization mode Group (2 ) download mode. If Group (2) isn't set as Download mode, this policy will be ignored. For option 3 - DHCP Option ID, the client will query DHCP Option ID 234 and use the returned GUID value as the Group ID.”- Returns:
- property groupIdSource
-
withGroupIdSource
public WindowsDeliveryOptimizationConfiguration withGroupIdSource(DeliveryOptimizationGroupIdSource groupIdSource)
Returns an immutable copy ofthiswith just thegroupIdSourcefield 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.“The options set in this policy only apply to Delivery Optimization mode Group (2 ) download mode. If Group (2) isn't set as Download mode, this policy will be ignored. For option 3 - DHCP Option ID, the client will query DHCP Option ID 234 and use the returned GUID value as the Group ID.”
- Parameters:
groupIdSource- new value ofgroupIdSourcefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thegroupIdSourcefield changed
-
getMaximumCacheAgeInDays
public Optional<Integer> getMaximumCacheAgeInDays()
“Specifies the maximum time in days that each file is held in the Delivery Optimization cache after downloading successfully (0-3650). Valid values 0 to 3650”- Returns:
- property maximumCacheAgeInDays
-
withMaximumCacheAgeInDays
public WindowsDeliveryOptimizationConfiguration withMaximumCacheAgeInDays(Integer maximumCacheAgeInDays)
Returns an immutable copy ofthiswith just themaximumCacheAgeInDaysfield 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 maximum time in days that each file is held in the Delivery Optimization cache after downloading successfully (0-3650). Valid values 0 to 3650”
- Parameters:
maximumCacheAgeInDays- new value ofmaximumCacheAgeInDaysfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themaximumCacheAgeInDaysfield changed
-
getMaximumCacheSize
public Optional<DeliveryOptimizationMaxCacheSize> getMaximumCacheSize()
“Specifies the maximum cache size that Delivery Optimization either as a percentage or in GB.”- Returns:
- property maximumCacheSize
-
withMaximumCacheSize
public WindowsDeliveryOptimizationConfiguration withMaximumCacheSize(DeliveryOptimizationMaxCacheSize maximumCacheSize)
Returns an immutable copy ofthiswith just themaximumCacheSizefield 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 maximum cache size that Delivery Optimization either as a percentage or in GB.”
- Parameters:
maximumCacheSize- new value ofmaximumCacheSizefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themaximumCacheSizefield changed
-
getMinimumBatteryPercentageAllowedToUpload
public Optional<Integer> getMinimumBatteryPercentageAllowedToUpload()
“The default value is 0. The value 0 (zero) means "not limited" and the cloud service default value will be used. Valid values 0 to 100”- Returns:
- property minimumBatteryPercentageAllowedToUpload
-
withMinimumBatteryPercentageAllowedToUpload
public WindowsDeliveryOptimizationConfiguration withMinimumBatteryPercentageAllowedToUpload(Integer minimumBatteryPercentageAllowedToUpload)
Returns an immutable copy ofthiswith just theminimumBatteryPercentageAllowedToUploadfield 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.“The default value is 0. The value 0 (zero) means "not limited" and the cloud service default value will be used. Valid values 0 to 100”
- Parameters:
minimumBatteryPercentageAllowedToUpload- new value ofminimumBatteryPercentageAllowedToUploadfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminimumBatteryPercentageAllowedToUploadfield changed
-
getMinimumDiskSizeAllowedToPeerInGigabytes
public Optional<Integer> getMinimumDiskSizeAllowedToPeerInGigabytes()
“Recommended values: 64 GB to 256 GB. Valid values 1 to 100000”- Returns:
- property minimumDiskSizeAllowedToPeerInGigabytes
-
withMinimumDiskSizeAllowedToPeerInGigabytes
public WindowsDeliveryOptimizationConfiguration withMinimumDiskSizeAllowedToPeerInGigabytes(Integer minimumDiskSizeAllowedToPeerInGigabytes)
Returns an immutable copy ofthiswith just theminimumDiskSizeAllowedToPeerInGigabytesfield 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.“Recommended values: 64 GB to 256 GB. Valid values 1 to 100000”
- Parameters:
minimumDiskSizeAllowedToPeerInGigabytes- new value ofminimumDiskSizeAllowedToPeerInGigabytesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminimumDiskSizeAllowedToPeerInGigabytesfield changed
-
getMinimumFileSizeToCacheInMegabytes
public Optional<Integer> getMinimumFileSizeToCacheInMegabytes()
“Recommended values: 1 MB to 100,000 MB. Valid values 1 to 100000”- Returns:
- property minimumFileSizeToCacheInMegabytes
-
withMinimumFileSizeToCacheInMegabytes
public WindowsDeliveryOptimizationConfiguration withMinimumFileSizeToCacheInMegabytes(Integer minimumFileSizeToCacheInMegabytes)
Returns an immutable copy ofthiswith just theminimumFileSizeToCacheInMegabytesfield 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.“Recommended values: 1 MB to 100,000 MB. Valid values 1 to 100000”
- Parameters:
minimumFileSizeToCacheInMegabytes- new value ofminimumFileSizeToCacheInMegabytesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminimumFileSizeToCacheInMegabytesfield changed
-
getMinimumRamAllowedToPeerInGigabytes
public Optional<Integer> getMinimumRamAllowedToPeerInGigabytes()
“Specifies the minimum RAM size in GB to use Peer Caching (1-100000). Valid values 1 to 100000”- Returns:
- property minimumRamAllowedToPeerInGigabytes
-
withMinimumRamAllowedToPeerInGigabytes
public WindowsDeliveryOptimizationConfiguration withMinimumRamAllowedToPeerInGigabytes(Integer minimumRamAllowedToPeerInGigabytes)
Returns an immutable copy ofthiswith just theminimumRamAllowedToPeerInGigabytesfield 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 minimum RAM size in GB to use Peer Caching (1-100000). Valid values 1 to 100000”
- Parameters:
minimumRamAllowedToPeerInGigabytes- new value ofminimumRamAllowedToPeerInGigabytesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theminimumRamAllowedToPeerInGigabytesfield changed
-
getModifyCacheLocation
public Optional<String> getModifyCacheLocation()
“Specifies the drive that Delivery Optimization should use for its cache.”- Returns:
- property modifyCacheLocation
-
withModifyCacheLocation
public WindowsDeliveryOptimizationConfiguration withModifyCacheLocation(String modifyCacheLocation)
Returns an immutable copy ofthiswith just themodifyCacheLocationfield 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 drive that Delivery Optimization should use for its cache.”
- Parameters:
modifyCacheLocation- new value ofmodifyCacheLocationfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themodifyCacheLocationfield changed
-
getRestrictPeerSelectionBy
public Optional<DeliveryOptimizationRestrictPeerSelectionByOptions> getRestrictPeerSelectionBy()
“Option 1 (Subnet mask) only applies to Delivery Optimization modes Download Mode LAN (1) and Group (2).”- Returns:
- property restrictPeerSelectionBy
-
withRestrictPeerSelectionBy
public WindowsDeliveryOptimizationConfiguration withRestrictPeerSelectionBy(DeliveryOptimizationRestrictPeerSelectionByOptions restrictPeerSelectionBy)
Returns an immutable copy ofthiswith just therestrictPeerSelectionByfield 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.“Option 1 (Subnet mask) only applies to Delivery Optimization modes Download Mode LAN (1) and Group (2).”
- Parameters:
restrictPeerSelectionBy- new value ofrestrictPeerSelectionByfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just therestrictPeerSelectionByfield changed
-
getVpnPeerCaching
public Optional<Enablement> getVpnPeerCaching()
“Specifies whether the device is allowed to participate in Peer Caching while connected via VPN to the domain network.”- Returns:
- property vpnPeerCaching
-
withVpnPeerCaching
public WindowsDeliveryOptimizationConfiguration withVpnPeerCaching(Enablement vpnPeerCaching)
Returns an immutable copy ofthiswith just thevpnPeerCachingfield 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 device is allowed to participate in Peer Caching while connected via VPN to the domain network.”
- Parameters:
vpnPeerCaching- new value ofvpnPeerCachingfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thevpnPeerCachingfield changed
-
withUnmappedField
public WindowsDeliveryOptimizationConfiguration 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 WindowsDeliveryOptimizationConfiguration 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 WindowsDeliveryOptimizationConfiguration 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
-
-