VirtualMachineScaleSetVMProtectionPolicy Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. VirtualMachineScaleSetVMProtectionPolicy
- com.
Implements
public final class VirtualMachineScaleSetVMProtectionPolicy
implements JsonSerializable<VirtualMachineScaleSetVMProtectionPolicy>
The protection policy of a virtual machine scale set VM.
Constructor Summary
Constructor | Description |
---|---|
VirtualMachineScaleSetVMProtectionPolicy() |
Creates an instance of Virtual |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Virtual |
fromJson(JsonReader jsonReader)
Reads an instance of Virtual |
Boolean |
protectFromScaleIn()
Get the protect |
Boolean |
protectFromScaleSetActions()
Get the protect |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Virtual |
withProtectFromScaleIn(Boolean protectFromScaleIn)
Set the protect |
Virtual |
withProtectFromScaleSetActions(Boolean protectFromScaleSetActions)
Set the protect |
Methods inherited from java.lang.Object
Constructor Details
VirtualMachineScaleSetVMProtectionPolicy
public VirtualMachineScaleSetVMProtectionPolicy()
Creates an instance of VirtualMachineScaleSetVMProtectionPolicy class.
Method Details
fromJson
public static VirtualMachineScaleSetVMProtectionPolicy fromJson(JsonReader jsonReader)
Reads an instance of VirtualMachineScaleSetVMProtectionPolicy from the JsonReader.
Parameters:
Returns:
Throws:
protectFromScaleIn
public Boolean protectFromScaleIn()
Get the protectFromScaleIn property: Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation.
Returns:
protectFromScaleSetActions
public Boolean protectFromScaleSetActions()
Get the protectFromScaleSetActions property: Indicates that model updates or actions (including scale-in) initiated on the virtual machine scale set should not be applied to the virtual machine scale set VM.
Returns:
toJson
validate
public void validate()
Validates the instance.
withProtectFromScaleIn
public VirtualMachineScaleSetVMProtectionPolicy withProtectFromScaleIn(Boolean protectFromScaleIn)
Set the protectFromScaleIn property: Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation.
Parameters:
Returns:
withProtectFromScaleSetActions
public VirtualMachineScaleSetVMProtectionPolicy withProtectFromScaleSetActions(Boolean protectFromScaleSetActions)
Set the protectFromScaleSetActions property: Indicates that model updates or actions (including scale-in) initiated on the virtual machine scale set should not be applied to the virtual machine scale set VM.
Parameters:
Returns:
Applies to
Azure SDK for Java