public final class VirtualMachineScaleSetVMProtectionPolicy extends Object
Constructor and Description |
---|
VirtualMachineScaleSetVMProtectionPolicy() |
Modifier and Type | Method and Description |
---|---|
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.
|
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.
|
void |
validate()
Validates the instance.
|
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.
|
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.
|
public VirtualMachineScaleSetVMProtectionPolicy()
public Boolean protectFromScaleIn()
public VirtualMachineScaleSetVMProtectionPolicy withProtectFromScaleIn(Boolean protectFromScaleIn)
protectFromScaleIn
- the protectFromScaleIn value to set.public Boolean protectFromScaleSetActions()
public VirtualMachineScaleSetVMProtectionPolicy withProtectFromScaleSetActions(Boolean protectFromScaleSetActions)
protectFromScaleSetActions
- the protectFromScaleSetActions value to set.public void validate()
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.