ResiliencyPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. ResiliencyPolicy
- com.
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 Resiliency |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Resiliency |
fromJson(JsonReader jsonReader)
Reads an instance of Resiliency |
Resilient |
resilientVMCreationPolicy()
Get the resilient |
Resilient |
resilientVMDeletionPolicy()
Get the resilient |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Resiliency |
withResilientVMCreationPolicy(ResilientVMCreationPolicy resilientVMCreationPolicy)
Set the resilient |
Resiliency |
withResilientVMDeletionPolicy(ResilientVMDeletionPolicy resilientVMDeletionPolicy)
Set the resilient |
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:
Returns:
Throws:
resilientVMCreationPolicy
public ResilientVMCreationPolicy resilientVMCreationPolicy()
Get the resilientVMCreationPolicy property: The configuration parameters used while performing resilient VM creation.
Returns:
resilientVMDeletionPolicy
public ResilientVMDeletionPolicy resilientVMDeletionPolicy()
Get the resilientVMDeletionPolicy property: The configuration parameters used while performing resilient VM deletion.
Returns:
toJson
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:
Returns:
withResilientVMDeletionPolicy
public ResiliencyPolicy withResilientVMDeletionPolicy(ResilientVMDeletionPolicy resilientVMDeletionPolicy)
Set the resilientVMDeletionPolicy property: The configuration parameters used while performing resilient VM deletion.
Parameters:
Returns:
Applies to
Azure SDK for Java