ResiliencyPolicy Class

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

Implements

public final class ResiliencyPolicy
implements JsonSerializable<ResiliencyPolicy>

Describes an resiliency policy - resilientVMCreationPolicy and/or resilientVMDeletionPolicy.

Constructor Summary

Constructor Description
ResiliencyPolicy()

Creates an instance of ResiliencyPolicy class.

Method Summary

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

Reads an instance of ResiliencyPolicy from the JsonReader.

ResilientVMCreationPolicy resilientVMCreationPolicy()

Get the resilientVMCreationPolicy property: The configuration parameters used while performing resilient VM creation.

ResilientVMDeletionPolicy resilientVMDeletionPolicy()

Get the resilientVMDeletionPolicy property: The configuration parameters used while performing resilient VM deletion.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ResiliencyPolicy withResilientVMCreationPolicy(ResilientVMCreationPolicy resilientVMCreationPolicy)

Set the resilientVMCreationPolicy property: The configuration parameters used while performing resilient VM creation.

ResiliencyPolicy withResilientVMDeletionPolicy(ResilientVMDeletionPolicy resilientVMDeletionPolicy)

Set the resilientVMDeletionPolicy property: The configuration parameters used while performing resilient VM deletion.

Methods inherited from java.lang.Object

Constructor Details

ResiliencyPolicy

public ResiliencyPolicy()

Creates an instance of ResiliencyPolicy class.

Method Details

fromJson

public static ResiliencyPolicy fromJson(JsonReader jsonReader)

Reads an instance of ResiliencyPolicy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

resilientVMCreationPolicy

public ResilientVMCreationPolicy resilientVMCreationPolicy()

Get the resilientVMCreationPolicy property: The configuration parameters used while performing resilient VM creation.

Returns:

the resilientVMCreationPolicy value.

resilientVMDeletionPolicy

public ResilientVMDeletionPolicy resilientVMDeletionPolicy()

Get the resilientVMDeletionPolicy property: The configuration parameters used while performing resilient VM deletion.

Returns:

the resilientVMDeletionPolicy value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withResilientVMCreationPolicy

public ResiliencyPolicy withResilientVMCreationPolicy(ResilientVMCreationPolicy resilientVMCreationPolicy)

Set the resilientVMCreationPolicy property: The configuration parameters used while performing resilient VM creation.

Parameters:

resilientVMCreationPolicy - the resilientVMCreationPolicy value to set.

Returns:

the ResiliencyPolicy object itself.

withResilientVMDeletionPolicy

public ResiliencyPolicy withResilientVMDeletionPolicy(ResilientVMDeletionPolicy resilientVMDeletionPolicy)

Set the resilientVMDeletionPolicy property: The configuration parameters used while performing resilient VM deletion.

Parameters:

resilientVMDeletionPolicy - the resilientVMDeletionPolicy value to set.

Returns:

the ResiliencyPolicy object itself.

Applies to