StartRecoveryPolicy Class

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

Implements

public final class StartRecoveryPolicy
implements JsonSerializable<StartRecoveryPolicy>

The configuration parameters used while performing start recovery.

Constructor Summary

Constructor Description
StartRecoveryPolicy()

Creates an instance of StartRecoveryPolicy class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

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

static StartRecoveryPolicy fromJson(JsonReader jsonReader)

Reads an instance of StartRecoveryPolicy from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

StartRecoveryPolicy withEnabled(Boolean enabled)

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

Methods inherited from java.lang.Object

Constructor Details

StartRecoveryPolicy

public StartRecoveryPolicy()

Creates an instance of StartRecoveryPolicy class.

Method Details

enabled

public Boolean enabled()

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

Returns:

the enabled value.

fromJson

public static StartRecoveryPolicy fromJson(JsonReader jsonReader)

Reads an instance of StartRecoveryPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withEnabled

public StartRecoveryPolicy withEnabled(Boolean enabled)

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

Parameters:

enabled - the enabled value to set.

Returns:

the StartRecoveryPolicy object itself.

Applies to