ReimageRecoveryPolicy Class

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

Implements

public final class ReimageRecoveryPolicy
implements JsonSerializable<ReimageRecoveryPolicy>

The configuration parameters used while performing reimage recovery.

Constructor Summary

Constructor Description
ReimageRecoveryPolicy()

Creates an instance of ReimageRecoveryPolicy class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Specifies whether reimage recovery should be enabled.

static ReimageRecoveryPolicy fromJson(JsonReader jsonReader)

Reads an instance of ReimageRecoveryPolicy from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ReimageRecoveryPolicy withEnabled(Boolean enabled)

Set the enabled property: Specifies whether reimage recovery should be enabled.

Methods inherited from java.lang.Object

Constructor Details

ReimageRecoveryPolicy

public ReimageRecoveryPolicy()

Creates an instance of ReimageRecoveryPolicy class.

Method Details

enabled

public Boolean enabled()

Get the enabled property: Specifies whether reimage recovery should be enabled. The default value is false.

Returns:

the enabled value.

fromJson

public static ReimageRecoveryPolicy fromJson(JsonReader jsonReader)

Reads an instance of ReimageRecoveryPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public ReimageRecoveryPolicy withEnabled(Boolean enabled)

Set the enabled property: Specifies whether reimage recovery should be enabled. The default value is false.

Parameters:

enabled - the enabled value to set.

Returns:

the ReimageRecoveryPolicy object itself.

Applies to