SpotRestorePolicy Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. SpotRestorePolicy
- com.
Implements
public final class SpotRestorePolicy
implements JsonSerializable<SpotRestorePolicy>
Specifies the Spot-Try-Restore properties for the virtual machine scale set. With this property customer can enable or disable automatic restore of the evicted Spot VMSS VM instances opportunistically based on capacity availability and pricing constraint.
Constructor | Description |
---|---|
Spot |
Creates an instance of Spot |
Modifier and Type | Method and Description |
---|---|
Boolean |
enabled()
Get the enabled property: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints. |
static
Spot |
from Reads an instance of Spot |
String |
restore Get the restore |
Json |
to |
void |
validate()
Validates the instance. |
Spot |
with Set the enabled property: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints. |
Spot |
with Set the restore |
Methods inherited from java.lang.Object
SpotRestorePolicy
public SpotRestorePolicy()
Creates an instance of SpotRestorePolicy class.
enabled
public Boolean enabled()
Get the enabled property: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints.
Returns:
fromJson
public static SpotRestorePolicy fromJson(JsonReader jsonReader)
Reads an instance of SpotRestorePolicy from the JsonReader.
Parameters:
Returns:
Throws:
restoreTimeout
public String restoreTimeout()
Get the restoreTimeout property: Timeout value expressed as an ISO 8601 time duration after which the platform will not try to restore the VMSS SPOT instances.
Returns:
toJson
validate
public void validate()
Validates the instance.
withEnabled
public SpotRestorePolicy withEnabled(Boolean enabled)
Set the enabled property: Enables the Spot-Try-Restore feature where evicted VMSS SPOT instances will be tried to be restored opportunistically based on capacity availability and pricing constraints.
Parameters:
Returns:
withRestoreTimeout
public SpotRestorePolicy withRestoreTimeout(String restoreTimeout)
Set the restoreTimeout property: Timeout value expressed as an ISO 8601 time duration after which the platform will not try to restore the VMSS SPOT instances.
Parameters:
Returns:
Azure SDK for Java-feedback
Azure SDK for Java is een open source project. Selecteer een koppeling om feedback te geven: