ResilientVMDeletionPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. ResilientVMDeletionPolicy
- com.
Implements
public final class ResilientVMDeletionPolicy
implements JsonSerializable<ResilientVMDeletionPolicy>
The configuration parameters used while performing resilient VM deletion.
Constructor Summary
Constructor | Description |
---|---|
ResilientVMDeletionPolicy() |
Creates an instance of Resilient |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
enabled()
Get the enabled property: Specifies whether resilient VM deletion should be enabled on the virtual machine scale set. |
static
Resilient |
fromJson(JsonReader jsonReader)
Reads an instance of Resilient |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Resilient |
withEnabled(Boolean enabled)
Set the enabled property: Specifies whether resilient VM deletion should be enabled on the virtual machine scale set. |
Methods inherited from java.lang.Object
Constructor Details
ResilientVMDeletionPolicy
public ResilientVMDeletionPolicy()
Creates an instance of ResilientVMDeletionPolicy class.
Method Details
enabled
public Boolean enabled()
Get the enabled property: Specifies whether resilient VM deletion should be enabled on the virtual machine scale set. The default value is false.
Returns:
fromJson
public static ResilientVMDeletionPolicy fromJson(JsonReader jsonReader)
Reads an instance of ResilientVMDeletionPolicy from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
withEnabled
public ResilientVMDeletionPolicy withEnabled(Boolean enabled)
Set the enabled property: Specifies whether resilient VM deletion should be enabled on the virtual machine scale set. The default value is false.
Parameters:
Returns:
Applies to
Azure SDK for Java