Class VirtualMachineScaleSetVMProtectionPolicy
java.lang.Object
com.microsoft.azure.management.compute.VirtualMachineScaleSetVMProtectionPolicy
The protection policy of a virtual machine scale set VM.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation.Get 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.withProtectFromScaleIn
(Boolean protectFromScaleIn) Set indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation.withProtectFromScaleSetActions
(Boolean protectFromScaleSetActions) Set 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.
-
Constructor Details
-
VirtualMachineScaleSetVMProtectionPolicy
public VirtualMachineScaleSetVMProtectionPolicy()
-
-
Method Details
-
protectFromScaleIn
Get indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation.- Returns:
- the protectFromScaleIn value
-
withProtectFromScaleIn
Set indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation.- Parameters:
protectFromScaleIn
- the protectFromScaleIn value to set- Returns:
- the VirtualMachineScaleSetVMProtectionPolicy object itself.
-
protectFromScaleSetActions
Get 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:
- the protectFromScaleSetActions value
-
withProtectFromScaleSetActions
public VirtualMachineScaleSetVMProtectionPolicy withProtectFromScaleSetActions(Boolean protectFromScaleSetActions) Set 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:
protectFromScaleSetActions
- the protectFromScaleSetActions value to set- Returns:
- the VirtualMachineScaleSetVMProtectionPolicy object itself.
-