Class ImageTemplateWindowsUpdateCustomizer
- java.lang.Object
-
- com.azure.resourcemanager.imagebuilder.models.ImageTemplateCustomizer
-
- com.azure.resourcemanager.imagebuilder.models.ImageTemplateWindowsUpdateCustomizer
-
public final class ImageTemplateWindowsUpdateCustomizer extends ImageTemplateCustomizer
Installs Windows Updates. Corresponds to Packer Windows Update Provisioner (https://github.com/rgl/packer-provisioner-windows-update).
-
-
Constructor Summary
Constructors Constructor Description ImageTemplateWindowsUpdateCustomizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
filters()
Get the filters property: Array of filters to select updates to apply.String
searchCriteria()
Get the searchCriteria property: Criteria to search updates.Integer
updateLimit()
Get the updateLimit property: Maximum number of updates to apply at a time.void
validate()
Validates the instance.ImageTemplateWindowsUpdateCustomizer
withFilters(List<String> filters)
Set the filters property: Array of filters to select updates to apply.ImageTemplateWindowsUpdateCustomizer
withName(String name)
Set the name property: Friendly Name to provide context on what this customization step does.ImageTemplateWindowsUpdateCustomizer
withSearchCriteria(String searchCriteria)
Set the searchCriteria property: Criteria to search updates.ImageTemplateWindowsUpdateCustomizer
withUpdateLimit(Integer updateLimit)
Set the updateLimit property: Maximum number of updates to apply at a time.-
Methods inherited from class com.azure.resourcemanager.imagebuilder.models.ImageTemplateCustomizer
name
-
-
-
-
Method Detail
-
searchCriteria
public String searchCriteria()
Get the searchCriteria property: Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.- Returns:
- the searchCriteria value.
-
withSearchCriteria
public ImageTemplateWindowsUpdateCustomizer withSearchCriteria(String searchCriteria)
Set the searchCriteria property: Criteria to search updates. Omit or specify empty string to use the default (search all). Refer to above link for examples and detailed description of this field.- Parameters:
searchCriteria
- the searchCriteria value to set.- Returns:
- the ImageTemplateWindowsUpdateCustomizer object itself.
-
filters
public List<String> filters()
Get the filters property: Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.- Returns:
- the filters value.
-
withFilters
public ImageTemplateWindowsUpdateCustomizer withFilters(List<String> filters)
Set the filters property: Array of filters to select updates to apply. Omit or specify empty array to use the default (no filter). Refer to above link for examples and detailed description of this field.- Parameters:
filters
- the filters value to set.- Returns:
- the ImageTemplateWindowsUpdateCustomizer object itself.
-
updateLimit
public Integer updateLimit()
Get the updateLimit property: Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000).- Returns:
- the updateLimit value.
-
withUpdateLimit
public ImageTemplateWindowsUpdateCustomizer withUpdateLimit(Integer updateLimit)
Set the updateLimit property: Maximum number of updates to apply at a time. Omit or specify 0 to use the default (1000).- Parameters:
updateLimit
- the updateLimit value to set.- Returns:
- the ImageTemplateWindowsUpdateCustomizer object itself.
-
withName
public ImageTemplateWindowsUpdateCustomizer withName(String name)
Set the name property: Friendly Name to provide context on what this customization step does.- Overrides:
withName
in classImageTemplateCustomizer
- Parameters:
name
- the name value to set.- Returns:
- the ImageTemplateCustomizer object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classImageTemplateCustomizer
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-