Class VirtualMachineScaleSetUpdate
- java.lang.Object
-
- com.azure.resourcemanager.compute.models.UpdateResource
-
- com.azure.resourcemanager.compute.models.VirtualMachineScaleSetUpdate
-
public final class VirtualMachineScaleSetUpdate extends UpdateResource
Describes a Virtual Machine Scale Set.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineScaleSetUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdditionalCapabilitiesadditionalCapabilities()Get the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set.AutomaticRepairsPolicyautomaticRepairsPolicy()Get the automaticRepairsPolicy property: Policy for automatic repairs.BooleandoNotRunExtensionsOnOverprovisionedVMs()Get the doNotRunExtensionsOnOverprovisionedVMs property: When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept.VirtualMachineScaleSetIdentityidentity()Get the identity property: The identity of the virtual machine scale set, if configured.Booleanoverprovision()Get the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned.Planplan()Get the plan property: The purchase plan when deploying a virtual machine scale set from VM Marketplace images.com.azure.core.management.SubResourceproximityPlacementGroup()Get the proximityPlacementGroup property: Specifies information about the proximity placement group that the virtual machine scale set should be assigned to.ScaleInPolicyscaleInPolicy()Get the scaleInPolicy property: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.BooleansinglePlacementGroup()Get the singlePlacementGroup property: When true this limits the scale set to a single placement group, of max size 100 virtual machines.Skusku()Get the sku property: The virtual machine scale set sku.UpgradePolicyupgradePolicy()Get the upgradePolicy property: The upgrade policy.voidvalidate()Validates the instance.VirtualMachineScaleSetUpdateVMProfilevirtualMachineProfile()Get the virtualMachineProfile property: The virtual machine profile.VirtualMachineScaleSetUpdatewithAdditionalCapabilities(AdditionalCapabilities additionalCapabilities)Set the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set.VirtualMachineScaleSetUpdatewithAutomaticRepairsPolicy(AutomaticRepairsPolicy automaticRepairsPolicy)Set the automaticRepairsPolicy property: Policy for automatic repairs.VirtualMachineScaleSetUpdatewithDoNotRunExtensionsOnOverprovisionedVMs(Boolean doNotRunExtensionsOnOverprovisionedVMs)Set the doNotRunExtensionsOnOverprovisionedVMs property: When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept.VirtualMachineScaleSetUpdatewithIdentity(VirtualMachineScaleSetIdentity identity)Set the identity property: The identity of the virtual machine scale set, if configured.VirtualMachineScaleSetUpdatewithOverprovision(Boolean overprovision)Set the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned.VirtualMachineScaleSetUpdatewithPlan(Plan plan)Set the plan property: The purchase plan when deploying a virtual machine scale set from VM Marketplace images.VirtualMachineScaleSetUpdatewithProximityPlacementGroup(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.VirtualMachineScaleSetUpdatewithScaleInPolicy(ScaleInPolicy scaleInPolicy)Set the scaleInPolicy property: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.VirtualMachineScaleSetUpdatewithSinglePlacementGroup(Boolean singlePlacementGroup)Set the singlePlacementGroup property: When true this limits the scale set to a single placement group, of max size 100 virtual machines.VirtualMachineScaleSetUpdatewithSku(Sku sku)Set the sku property: The virtual machine scale set sku.VirtualMachineScaleSetUpdatewithTags(Map<String,String> tags)Set the tags property: Resource tags.VirtualMachineScaleSetUpdatewithUpgradePolicy(UpgradePolicy upgradePolicy)Set the upgradePolicy property: The upgrade policy.VirtualMachineScaleSetUpdatewithVirtualMachineProfile(VirtualMachineScaleSetUpdateVMProfile virtualMachineProfile)Set the virtualMachineProfile property: The virtual machine profile.-
Methods inherited from class com.azure.resourcemanager.compute.models.UpdateResource
tags
-
-
-
-
Method Detail
-
sku
public Sku sku()
Get the sku property: The virtual machine scale set sku.- Returns:
- the sku value.
-
withSku
public VirtualMachineScaleSetUpdate withSku(Sku sku)
Set the sku property: The virtual machine scale set sku.- Parameters:
sku- the sku value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
plan
public Plan plan()
Get the plan property: The purchase plan when deploying a virtual machine scale set from VM Marketplace images.- Returns:
- the plan value.
-
withPlan
public VirtualMachineScaleSetUpdate withPlan(Plan plan)
Set the plan property: The purchase plan when deploying a virtual machine scale set from VM Marketplace images.- Parameters:
plan- the plan value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
identity
public VirtualMachineScaleSetIdentity identity()
Get the identity property: The identity of the virtual machine scale set, if configured.- Returns:
- the identity value.
-
withIdentity
public VirtualMachineScaleSetUpdate withIdentity(VirtualMachineScaleSetIdentity identity)
Set the identity property: The identity of the virtual machine scale set, if configured.- Parameters:
identity- the identity value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
withTags
public VirtualMachineScaleSetUpdate withTags(Map<String,String> tags)
Set the tags property: Resource tags.- Overrides:
withTagsin classUpdateResource- Parameters:
tags- the tags value to set.- Returns:
- the UpdateResource object itself.
-
upgradePolicy
public UpgradePolicy upgradePolicy()
Get the upgradePolicy property: The upgrade policy.- Returns:
- the upgradePolicy value.
-
withUpgradePolicy
public VirtualMachineScaleSetUpdate withUpgradePolicy(UpgradePolicy upgradePolicy)
Set the upgradePolicy property: The upgrade policy.- Parameters:
upgradePolicy- the upgradePolicy value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
automaticRepairsPolicy
public AutomaticRepairsPolicy automaticRepairsPolicy()
Get the automaticRepairsPolicy property: Policy for automatic repairs.- Returns:
- the automaticRepairsPolicy value.
-
withAutomaticRepairsPolicy
public VirtualMachineScaleSetUpdate withAutomaticRepairsPolicy(AutomaticRepairsPolicy automaticRepairsPolicy)
Set the automaticRepairsPolicy property: Policy for automatic repairs.- Parameters:
automaticRepairsPolicy- the automaticRepairsPolicy value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
virtualMachineProfile
public VirtualMachineScaleSetUpdateVMProfile virtualMachineProfile()
Get the virtualMachineProfile property: The virtual machine profile.- Returns:
- the virtualMachineProfile value.
-
withVirtualMachineProfile
public VirtualMachineScaleSetUpdate withVirtualMachineProfile(VirtualMachineScaleSetUpdateVMProfile virtualMachineProfile)
Set the virtualMachineProfile property: The virtual machine profile.- Parameters:
virtualMachineProfile- the virtualMachineProfile value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
overprovision
public Boolean overprovision()
Get the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned.- Returns:
- the overprovision value.
-
withOverprovision
public VirtualMachineScaleSetUpdate withOverprovision(Boolean overprovision)
Set the overprovision property: Specifies whether the Virtual Machine Scale Set should be overprovisioned.- Parameters:
overprovision- the overprovision value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
doNotRunExtensionsOnOverprovisionedVMs
public Boolean doNotRunExtensionsOnOverprovisionedVMs()
Get the doNotRunExtensionsOnOverprovisionedVMs property: When Overprovision is enabled, extensions are launched only on the requested number of VMs which are finally kept. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs.- Returns:
- the doNotRunExtensionsOnOverprovisionedVMs value.
-
withDoNotRunExtensionsOnOverprovisionedVMs
public 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. This property will hence ensure that the extensions do not run on the extra overprovisioned VMs.- Parameters:
doNotRunExtensionsOnOverprovisionedVMs- the doNotRunExtensionsOnOverprovisionedVMs value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
singlePlacementGroup
public Boolean singlePlacementGroup()
Get the singlePlacementGroup property: When true this limits the scale set to a single placement group, of max size 100 virtual machines. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true.- Returns:
- the singlePlacementGroup value.
-
withSinglePlacementGroup
public 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. NOTE: If singlePlacementGroup is true, it may be modified to false. However, if singlePlacementGroup is false, it may not be modified to true.- Parameters:
singlePlacementGroup- the singlePlacementGroup value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
additionalCapabilities
public AdditionalCapabilities additionalCapabilities()
Get the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type.- Returns:
- the additionalCapabilities value.
-
withAdditionalCapabilities
public VirtualMachineScaleSetUpdate withAdditionalCapabilities(AdditionalCapabilities additionalCapabilities)
Set the additionalCapabilities property: Specifies additional capabilities enabled or disabled on the Virtual Machines in the Virtual Machine Scale Set. For instance: whether the Virtual Machines have the capability to support attaching managed data disks with UltraSSD_LRS storage account type.- Parameters:
additionalCapabilities- the additionalCapabilities value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
scaleInPolicy
public ScaleInPolicy scaleInPolicy()
Get the scaleInPolicy property: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.- Returns:
- the scaleInPolicy value.
-
withScaleInPolicy
public VirtualMachineScaleSetUpdate withScaleInPolicy(ScaleInPolicy scaleInPolicy)
Set the scaleInPolicy property: Specifies the policies applied when scaling in Virtual Machines in the Virtual Machine Scale Set.- Parameters:
scaleInPolicy- the scaleInPolicy value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
proximityPlacementGroup
public 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. <br><br>Minimum api-version: 2018-04-01.- Returns:
- the proximityPlacementGroup value.
-
withProximityPlacementGroup
public 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. <br><br>Minimum api-version: 2018-04-01.- Parameters:
proximityPlacementGroup- the proximityPlacementGroup value to set.- Returns:
- the VirtualMachineScaleSetUpdate object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validatein classUpdateResource- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-