ResilientVMDeletionPolicy Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.ResilientVMDeletionPolicy

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 ResilientVMDeletionPolicy class.

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 ResilientVMDeletionPolicy fromJson(JsonReader jsonReader)

Reads an instance of ResilientVMDeletionPolicy from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResilientVMDeletionPolicy 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:

the enabled value.

fromJson

public static ResilientVMDeletionPolicy fromJson(JsonReader jsonReader)

Reads an instance of ResilientVMDeletionPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ResilientVMDeletionPolicy if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ResilientVMDeletionPolicy.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

enabled - the enabled value to set.

Returns:

the ResilientVMDeletionPolicy object itself.

Applies to