Class VirtualMachineScaleSetVMProtectionPolicy
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.VirtualMachineScaleSetVMProtectionPolicy
-
public final class VirtualMachineScaleSetVMProtectionPolicy extends Object
The protection policy of a virtual machine scale set VM.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineScaleSetVMProtectionPolicy()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanprotectFromScaleIn()Get the protectFromScaleIn property: Indicates that the virtual machine scale set VM shouldn't be considered for deletion during a scale-in operation.BooleanprotectFromScaleSetActions()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.voidvalidate()Validates the instance.VirtualMachineScaleSetVMProtectionPolicywithProtectFromScaleIn(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.VirtualMachineScaleSetVMProtectionPolicywithProtectFromScaleSetActions(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.
-
-
-
Method Detail
-
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:
- the protectFromScaleIn value.
-
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:
protectFromScaleIn- the protectFromScaleIn value to set.- Returns:
- the VirtualMachineScaleSetVMProtectionPolicy object itself.
-
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:
- the protectFromScaleSetActions value.
-
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:
protectFromScaleSetActions- the protectFromScaleSetActions value to set.- Returns:
- the VirtualMachineScaleSetVMProtectionPolicy object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-