public class VirtualMachineScaleSetUpdate extends UpdateResource
Constructor and Description |
---|
VirtualMachineScaleSetUpdate() |
Modifier and Type | Method and Description |
---|---|
AdditionalCapabilities |
additionalCapabilities()
Get the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the Virtual
Machines in the Virtual Machine Scale Set.
|
AutomaticRepairsPolicy |
automaticRepairsPolicy()
Get the automaticRepairsPolicy property: Policy for automatic repairs.
|
Boolean |
doNotRunExtensionsOnOverprovisionedVMs()
Get the doNotRunExtensionsOnOverprovisionedVMs property: When Overprovision is enabled, extensions are launched
only on the requested number of VMs which are finally kept.
|
VirtualMachineScaleSetIdentity |
identity()
Get the identity property: The identity of the virtual machine scale set, if configured.
|
Boolean |
overprovision()
Get the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned.
|
Plan |
plan()
Get the plan property: The purchase plan when deploying a virtual machine scale set from VM Marketplace images.
|
com.azure.core.management.SubResource |
proximityPlacementGroup()
Get the proximityPlacementGroup property: Specifies information about the proximity placement group that the
virtual machine scale set should be assigned to.
|
ScaleInPolicy |
scaleInPolicy()
Get the scaleInPolicy property: Specifies the scale-in policy that decides which virtual machines are chosen for
removal when a Virtual Machine Scale Set is scaled-in.
|
Boolean |
singlePlacementGroup()
Get the singlePlacementGroup property: When true this limits the scale set to a single placement group, of max
size 100 virtual machines.
|
Sku |
sku()
Get the sku property: The virtual machine scale set sku.
|
UpgradePolicy |
upgradePolicy()
Get the upgradePolicy property: The upgrade policy.
|
void |
validate()
Validates the instance.
|
VirtualMachineScaleSetUpdateVMProfile |
virtualMachineProfile()
Get the virtualMachineProfile property: The virtual machine profile.
|
VirtualMachineScaleSetUpdate |
withAdditionalCapabilities(AdditionalCapabilities additionalCapabilities)
Set the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the Virtual
Machines in the Virtual Machine Scale Set.
|
VirtualMachineScaleSetUpdate |
withAutomaticRepairsPolicy(AutomaticRepairsPolicy automaticRepairsPolicy)
Set the automaticRepairsPolicy property: Policy for automatic repairs.
|
VirtualMachineScaleSetUpdate |
withDoNotRunExtensionsOnOverprovisionedVMs(Boolean doNotRunExtensionsOnOverprovisionedVMs)
Set the doNotRunExtensionsOnOverprovisionedVMs property: When Overprovision is enabled, extensions are launched
only on the requested number of VMs which are finally kept.
|
VirtualMachineScaleSetUpdate |
withIdentity(VirtualMachineScaleSetIdentity identity)
Set the identity property: The identity of the virtual machine scale set, if configured.
|
VirtualMachineScaleSetUpdate |
withOverprovision(Boolean overprovision)
Set the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned.
|
VirtualMachineScaleSetUpdate |
withPlan(Plan plan)
Set the plan property: The purchase plan when deploying a virtual machine scale set from VM Marketplace images.
|
VirtualMachineScaleSetUpdate |
withProximityPlacementGroup(com.azure.core.management.SubResource proximityPlacementGroup)
Set the proximityPlacementGroup property: Specifies information about the proximity placement group that the
virtual machine scale set should be assigned to.
|
VirtualMachineScaleSetUpdate |
withScaleInPolicy(ScaleInPolicy scaleInPolicy)
Set the scaleInPolicy property: Specifies the scale-in policy that decides which virtual machines are chosen for
removal when a Virtual Machine Scale Set is scaled-in.
|
VirtualMachineScaleSetUpdate |
withSinglePlacementGroup(Boolean singlePlacementGroup)
Set the singlePlacementGroup property: When true this limits the scale set to a single placement group, of max
size 100 virtual machines.
|
VirtualMachineScaleSetUpdate |
withSku(Sku sku)
Set the sku property: The virtual machine scale set sku.
|
VirtualMachineScaleSetUpdate |
withUpgradePolicy(UpgradePolicy upgradePolicy)
Set the upgradePolicy property: The upgrade policy.
|
VirtualMachineScaleSetUpdate |
withVirtualMachineProfile(VirtualMachineScaleSetUpdateVMProfile virtualMachineProfile)
Set the virtualMachineProfile property: The virtual machine profile.
|
tags, withTags
public Sku sku()
public VirtualMachineScaleSetUpdate withSku(Sku sku)
sku
- the sku value to set.public Plan plan()
public VirtualMachineScaleSetUpdate withPlan(Plan plan)
plan
- the plan value to set.public VirtualMachineScaleSetIdentity identity()
public VirtualMachineScaleSetUpdate withIdentity(VirtualMachineScaleSetIdentity identity)
identity
- the identity value to set.public UpgradePolicy upgradePolicy()
public VirtualMachineScaleSetUpdate withUpgradePolicy(UpgradePolicy upgradePolicy)
upgradePolicy
- the upgradePolicy value to set.public AutomaticRepairsPolicy automaticRepairsPolicy()
public VirtualMachineScaleSetUpdate withAutomaticRepairsPolicy(AutomaticRepairsPolicy automaticRepairsPolicy)
automaticRepairsPolicy
- the automaticRepairsPolicy value to set.public VirtualMachineScaleSetUpdateVMProfile virtualMachineProfile()
public VirtualMachineScaleSetUpdate withVirtualMachineProfile(VirtualMachineScaleSetUpdateVMProfile virtualMachineProfile)
virtualMachineProfile
- the virtualMachineProfile value to set.public Boolean overprovision()
public VirtualMachineScaleSetUpdate withOverprovision(Boolean overprovision)
overprovision
- the overprovision value to set.public Boolean doNotRunExtensionsOnOverprovisionedVMs()
public VirtualMachineScaleSetUpdate withDoNotRunExtensionsOnOverprovisionedVMs(Boolean doNotRunExtensionsOnOverprovisionedVMs)
doNotRunExtensionsOnOverprovisionedVMs
- the doNotRunExtensionsOnOverprovisionedVMs value to set.public Boolean singlePlacementGroup()
public VirtualMachineScaleSetUpdate withSinglePlacementGroup(Boolean singlePlacementGroup)
singlePlacementGroup
- the singlePlacementGroup value to set.public AdditionalCapabilities additionalCapabilities()
public VirtualMachineScaleSetUpdate withAdditionalCapabilities(AdditionalCapabilities additionalCapabilities)
additionalCapabilities
- the additionalCapabilities value to set.public ScaleInPolicy scaleInPolicy()
public VirtualMachineScaleSetUpdate withScaleInPolicy(ScaleInPolicy scaleInPolicy)
scaleInPolicy
- the scaleInPolicy value to set.public com.azure.core.management.SubResource proximityPlacementGroup()
public VirtualMachineScaleSetUpdate withProximityPlacementGroup(com.azure.core.management.SubResource proximityPlacementGroup)
proximityPlacementGroup
- the proximityPlacementGroup value to set.public void validate()
validate
in class UpdateResource
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2020 Microsoft Corporation. All rights reserved.