RestartRecoveryPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. RestartRecoveryPolicy
- com.
Implements
public final class RestartRecoveryPolicy
implements JsonSerializable<RestartRecoveryPolicy>
The configuration parameters used while performing restart recovery.
Constructor Summary
| Constructor | Description |
|---|---|
| RestartRecoveryPolicy() |
Creates an instance of Restart |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Boolean |
enabled()
Get the enabled property: Specifies whether restart recovery should be enabled. |
|
static
Restart |
fromJson(JsonReader jsonReader)
Reads an instance of Restart |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Restart |
withEnabled(Boolean enabled)
Set the enabled property: Specifies whether restart recovery should be enabled. |
Methods inherited from java.lang.Object
Constructor Details
RestartRecoveryPolicy
public RestartRecoveryPolicy()
Creates an instance of RestartRecoveryPolicy class.
Method Details
enabled
public Boolean enabled()
Get the enabled property: Specifies whether restart recovery should be enabled. The default value is false.
Returns:
fromJson
public static RestartRecoveryPolicy fromJson(JsonReader jsonReader)
Reads an instance of RestartRecoveryPolicy from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withEnabled
public RestartRecoveryPolicy withEnabled(Boolean enabled)
Set the enabled property: Specifies whether restart recovery should be enabled. The default value is false.
Parameters:
Returns: