Class DeliveryOptimizationBandwidthPercentage
- java.lang.Object
-
- odata.msgraph.client.beta.complex.DeliveryOptimizationBandwidth
-
- odata.msgraph.client.beta.complex.DeliveryOptimizationBandwidthPercentage
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataType
public class DeliveryOptimizationBandwidthPercentage extends DeliveryOptimizationBandwidth implements com.github.davidmoten.odata.client.ODataType
“Bandwidth limits specified as a percentage.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeliveryOptimizationBandwidthPercentage.Builder
-
Field Summary
Fields Modifier and Type Field Description protected IntegermaximumBackgroundBandwidthPercentageprotected IntegermaximumForegroundBandwidthPercentage-
Fields inherited from class odata.msgraph.client.beta.complex.DeliveryOptimizationBandwidth
contextPath, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeliveryOptimizationBandwidthPercentage()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeliveryOptimizationBandwidthPercentage.BuilderbuilderDeliveryOptimizationBandwidthPercentage()Returns a builder which is used to create a new instance of this class (given that this class is immutable).Optional<Integer>getMaximumBackgroundBandwidthPercentage()“The default value 0 (zero) means that Delivery Optimization dynamically adjusts to use the available bandwidth for background downloads.Optional<Integer>getMaximumForegroundBandwidthPercentage()“The default value 0 (zero) means that Delivery Optimization dynamically adjusts to use the available bandwidth for foreground downloads.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()voidpostInject(boolean addKeysToContextPath)StringtoString()DeliveryOptimizationBandwidthPercentagewithMaximumBackgroundBandwidthPercentage(Integer maximumBackgroundBandwidthPercentage)Returns an immutable copy ofthiswith just themaximumBackgroundBandwidthPercentagefield changed.DeliveryOptimizationBandwidthPercentagewithMaximumForegroundBandwidthPercentage(Integer maximumForegroundBandwidthPercentage)Returns an immutable copy ofthiswith just themaximumForegroundBandwidthPercentagefield changed.DeliveryOptimizationBandwidthPercentagewithUnmappedField(String name, String value)
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classDeliveryOptimizationBandwidth
-
getMaximumBackgroundBandwidthPercentage
public Optional<Integer> getMaximumBackgroundBandwidthPercentage()
“The default value 0 (zero) means that Delivery Optimization dynamically adjusts to use the available bandwidth for background downloads. Valid values 0 to 100”- Returns:
- property maximumBackgroundBandwidthPercentage
-
withMaximumBackgroundBandwidthPercentage
public DeliveryOptimizationBandwidthPercentage withMaximumBackgroundBandwidthPercentage(Integer maximumBackgroundBandwidthPercentage)
Returns an immutable copy ofthiswith just themaximumBackgroundBandwidthPercentagefield 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 0 (zero) means that Delivery Optimization dynamically adjusts to use the available bandwidth for background downloads. Valid values 0 to 100”
- Parameters:
maximumBackgroundBandwidthPercentage- new value ofmaximumBackgroundBandwidthPercentagefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themaximumBackgroundBandwidthPercentagefield changed
-
getMaximumForegroundBandwidthPercentage
public Optional<Integer> getMaximumForegroundBandwidthPercentage()
“The default value 0 (zero) means that Delivery Optimization dynamically adjusts to use the available bandwidth for foreground downloads. Valid values 0 to 100”- Returns:
- property maximumForegroundBandwidthPercentage
-
withMaximumForegroundBandwidthPercentage
public DeliveryOptimizationBandwidthPercentage withMaximumForegroundBandwidthPercentage(Integer maximumForegroundBandwidthPercentage)
Returns an immutable copy ofthiswith just themaximumForegroundBandwidthPercentagefield 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 0 (zero) means that Delivery Optimization dynamically adjusts to use the available bandwidth for foreground downloads. Valid values 0 to 100”
- Parameters:
maximumForegroundBandwidthPercentage- new value ofmaximumForegroundBandwidthPercentagefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themaximumForegroundBandwidthPercentagefield changed
-
withUnmappedField
public DeliveryOptimizationBandwidthPercentage withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classDeliveryOptimizationBandwidth
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classDeliveryOptimizationBandwidth
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classDeliveryOptimizationBandwidth
-
builderDeliveryOptimizationBandwidthPercentage
public static DeliveryOptimizationBandwidthPercentage.Builder builderDeliveryOptimizationBandwidthPercentage()
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
-
toString
public String toString()
- Overrides:
toStringin classDeliveryOptimizationBandwidth
-
-