Class VMExtension
java.lang.Object
com.azure.resourcemanager.batch.models.VMExtension
The configuration for virtual machine extensions.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one is available at deployment time.Get the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.name()Get the name property: The name of the virtual machine extension.Get the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.Get the provisionAfterExtensions property: The collection of extension names.Get the publisher property: The name of the extension handler publisher.settings()Get the settings property: JSON formatted public settings for the extension.type()Get the type property: The type of the extensions.Get the typeHandlerVersion property: The version of script handler.voidvalidate()Validates the instance.withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion) Set the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one is available at deployment time.withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade) Set the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.Set the name property: The name of the virtual machine extension.withProtectedSettings(Object protectedSettings) Set the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.withProvisionAfterExtensions(List<String> provisionAfterExtensions) Set the provisionAfterExtensions property: The collection of extension names.withPublisher(String publisher) Set the publisher property: The name of the extension handler publisher.withSettings(Object settings) Set the settings property: JSON formatted public settings for the extension.Set the type property: The type of the extensions.withTypeHandlerVersion(String typeHandlerVersion) Set the typeHandlerVersion property: The version of script handler.
-
Constructor Details
-
VMExtension
public VMExtension()Creates an instance of VMExtension class.
-
-
Method Details
-
name
Get the name property: The name of the virtual machine extension.- Returns:
- the name value.
-
withName
Set the name property: The name of the virtual machine extension.- Parameters:
name- the name value to set.- Returns:
- the VMExtension object itself.
-
publisher
Get the publisher property: The name of the extension handler publisher.- Returns:
- the publisher value.
-
withPublisher
Set the publisher property: The name of the extension handler publisher.- Parameters:
publisher- the publisher value to set.- Returns:
- the VMExtension object itself.
-
type
Get the type property: The type of the extensions.- Returns:
- the type value.
-
withType
Set the type property: The type of the extensions.- Parameters:
type- the type value to set.- Returns:
- the VMExtension object itself.
-
typeHandlerVersion
Get the typeHandlerVersion property: The version of script handler.- Returns:
- the typeHandlerVersion value.
-
withTypeHandlerVersion
Set the typeHandlerVersion property: The version of script handler.- Parameters:
typeHandlerVersion- the typeHandlerVersion value to set.- Returns:
- the VMExtension object itself.
-
autoUpgradeMinorVersion
Get the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.- Returns:
- the autoUpgradeMinorVersion value.
-
withAutoUpgradeMinorVersion
Set the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.- Parameters:
autoUpgradeMinorVersion- the autoUpgradeMinorVersion value to set.- Returns:
- the VMExtension object itself.
-
enableAutomaticUpgrade
Get the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.- Returns:
- the enableAutomaticUpgrade value.
-
withEnableAutomaticUpgrade
Set the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.- Parameters:
enableAutomaticUpgrade- the enableAutomaticUpgrade value to set.- Returns:
- the VMExtension object itself.
-
settings
Get the settings property: JSON formatted public settings for the extension.- Returns:
- the settings value.
-
withSettings
Set the settings property: JSON formatted public settings for the extension.- Parameters:
settings- the settings value to set.- Returns:
- the VMExtension object itself.
-
protectedSettings
Get the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.- Returns:
- the protectedSettings value.
-
withProtectedSettings
Set the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.- Parameters:
protectedSettings- the protectedSettings value to set.- Returns:
- the VMExtension object itself.
-
provisionAfterExtensions
Get the provisionAfterExtensions property: The collection of extension names. Collection of extension names after which this extension needs to be provisioned.- Returns:
- the provisionAfterExtensions value.
-
withProvisionAfterExtensions
Set the provisionAfterExtensions property: The collection of extension names. Collection of extension names after which this extension needs to be provisioned.- Parameters:
provisionAfterExtensions- the provisionAfterExtensions value to set.- Returns:
- the VMExtension object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-