OperationRecoverySettings Class

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

Implements

public final class OperationRecoverySettings
implements JsonSerializable<OperationRecoverySettings>

The configuration parameters used for operation recovery settings on a virtual machine scale set.

Constructor Summary

Constructor Description
OperationRecoverySettings()

Creates an instance of OperationRecoverySettings class.

Method Summary

Modifier and Type Method and Description
static OperationRecoverySettings fromJson(JsonReader jsonReader)

Reads an instance of OperationRecoverySettings from the JsonReader.

ReimageRecoveryPolicy reimageRecoveryPolicy()

Get the reimageRecoveryPolicy property: The configuration parameters used for reimage recovery policy.

RestartRecoveryPolicy restartRecoveryPolicy()

Get the restartRecoveryPolicy property: The configuration parameters used for restart recovery policy.

StartRecoveryPolicy startRecoveryPolicy()

Get the startRecoveryPolicy property: The configuration parameters used for start recovery policy.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

OperationRecoverySettings withReimageRecoveryPolicy(ReimageRecoveryPolicy reimageRecoveryPolicy)

Set the reimageRecoveryPolicy property: The configuration parameters used for reimage recovery policy.

OperationRecoverySettings withRestartRecoveryPolicy(RestartRecoveryPolicy restartRecoveryPolicy)

Set the restartRecoveryPolicy property: The configuration parameters used for restart recovery policy.

OperationRecoverySettings withStartRecoveryPolicy(StartRecoveryPolicy startRecoveryPolicy)

Set the startRecoveryPolicy property: The configuration parameters used for start recovery policy.

Methods inherited from java.lang.Object

Constructor Details

OperationRecoverySettings

public OperationRecoverySettings()

Creates an instance of OperationRecoverySettings class.

Method Details

fromJson

public static OperationRecoverySettings fromJson(JsonReader jsonReader)

Reads an instance of OperationRecoverySettings from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

reimageRecoveryPolicy

public ReimageRecoveryPolicy reimageRecoveryPolicy()

Get the reimageRecoveryPolicy property: The configuration parameters used for reimage recovery policy.

Returns:

the reimageRecoveryPolicy value.

restartRecoveryPolicy

public RestartRecoveryPolicy restartRecoveryPolicy()

Get the restartRecoveryPolicy property: The configuration parameters used for restart recovery policy.

Returns:

the restartRecoveryPolicy value.

startRecoveryPolicy

public StartRecoveryPolicy startRecoveryPolicy()

Get the startRecoveryPolicy property: The configuration parameters used for start recovery policy.

Returns:

the startRecoveryPolicy value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withReimageRecoveryPolicy

public OperationRecoverySettings withReimageRecoveryPolicy(ReimageRecoveryPolicy reimageRecoveryPolicy)

Set the reimageRecoveryPolicy property: The configuration parameters used for reimage recovery policy.

Parameters:

reimageRecoveryPolicy - the reimageRecoveryPolicy value to set.

Returns:

the OperationRecoverySettings object itself.

withRestartRecoveryPolicy

public OperationRecoverySettings withRestartRecoveryPolicy(RestartRecoveryPolicy restartRecoveryPolicy)

Set the restartRecoveryPolicy property: The configuration parameters used for restart recovery policy.

Parameters:

restartRecoveryPolicy - the restartRecoveryPolicy value to set.

Returns:

the OperationRecoverySettings object itself.

withStartRecoveryPolicy

public OperationRecoverySettings withStartRecoveryPolicy(StartRecoveryPolicy startRecoveryPolicy)

Set the startRecoveryPolicy property: The configuration parameters used for start recovery policy.

Parameters:

startRecoveryPolicy - the startRecoveryPolicy value to set.

Returns:

the OperationRecoverySettings object itself.

Applies to