public static class UpgradePolicy.UpgradePolicyBuilder extends Object
Constructor and Description |
---|
UpgradePolicyBuilder() |
Modifier and Type | Method and Description |
---|---|
UpgradePolicy |
create()
Creates the upgrade policy object
|
void |
setAllowAllUpgrades(boolean allowAllUpgrades)
Specifies if OTA upgrade or downgrade is allowed on all devices (i.e.
|
void |
setAllowDowngrade(boolean allowDowngrade)
Specifies if OTA downgrade is allowed or not.
|
void |
setAllowUpgrade(boolean allowUpgrade)
Specifies if OTA upgrade is allowed or not.
|
public void setAllowUpgrade(boolean allowUpgrade)
allowUpgrade
- boolean value specifying if OTA upgrade is allowed or not.NullPointerException
- if allowUpgrade
is nullpublic void setAllowDowngrade(boolean allowDowngrade)
allowDowngrade
- boolean value specifying if OTA downgrade is allowed or not.NullPointerException
- if allowDowngrade
is nullpublic void setAllowAllUpgrades(boolean allowAllUpgrades)
allowAllUpgrades
- boolean value specifying if OTA upgrade or downgrade is allowed on all devices or not.NullPointerException
- if allowAllUpgrades
is nullpublic UpgradePolicy create()
UpgradePolicy
objectCopyright © 2020. All rights reserved.