ResilientVMCreationPolicy Class

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

Implements

public final class ResilientVMCreationPolicy
implements JsonSerializable<ResilientVMCreationPolicy>

The configuration parameters used while performing resilient VM creation.

Constructor Summary

Constructor Description
ResilientVMCreationPolicy()

Creates an instance of ResilientVMCreationPolicy class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Specifies whether resilient VM creation should be enabled on the virtual machine scale set.

static ResilientVMCreationPolicy fromJson(JsonReader jsonReader)

Reads an instance of ResilientVMCreationPolicy from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResilientVMCreationPolicy withEnabled(Boolean enabled)

Set the enabled property: Specifies whether resilient VM creation should be enabled on the virtual machine scale set.

Methods inherited from java.lang.Object

Constructor Details

ResilientVMCreationPolicy

public ResilientVMCreationPolicy()

Creates an instance of ResilientVMCreationPolicy class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Specifies whether resilient VM creation should be enabled on the virtual machine scale set. The default value is false.

Returns:

the enabled value.

fromJson

public static ResilientVMCreationPolicy fromJson(JsonReader jsonReader)

Reads an instance of ResilientVMCreationPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ResilientVMCreationPolicy 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 ResilientVMCreationPolicy.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public ResilientVMCreationPolicy withEnabled(Boolean enabled)

Set the enabled property: Specifies whether resilient VM creation should be enabled on the virtual machine scale set. The default value is false.

Parameters:

enabled - the enabled value to set.

Returns:

the ResilientVMCreationPolicy object itself.

Applies to