Class VMExtension

java.lang.Object
com.azure.resourcemanager.batch.models.VMExtension

public final class VMExtension extends Object
The configuration for virtual machine extensions.
  • Constructor Details

    • VMExtension

      public VMExtension()
      Creates an instance of VMExtension class.
  • Method Details

    • name

      public String name()
      Get the name property: The name of the virtual machine extension.
      Returns:
      the name value.
    • withName

      public VMExtension withName(String name)
      Set the name property: The name of the virtual machine extension.
      Parameters:
      name - the name value to set.
      Returns:
      the VMExtension object itself.
    • publisher

      public String publisher()
      Get the publisher property: The name of the extension handler publisher.
      Returns:
      the publisher value.
    • withPublisher

      public VMExtension withPublisher(String publisher)
      Set the publisher property: The name of the extension handler publisher.
      Parameters:
      publisher - the publisher value to set.
      Returns:
      the VMExtension object itself.
    • type

      public String type()
      Get the type property: The type of the extensions.
      Returns:
      the type value.
    • withType

      public VMExtension withType(String type)
      Set the type property: The type of the extensions.
      Parameters:
      type - the type value to set.
      Returns:
      the VMExtension object itself.
    • typeHandlerVersion

      public String typeHandlerVersion()
      Get the typeHandlerVersion property: The version of script handler.
      Returns:
      the typeHandlerVersion value.
    • withTypeHandlerVersion

      public VMExtension withTypeHandlerVersion(String typeHandlerVersion)
      Set the typeHandlerVersion property: The version of script handler.
      Parameters:
      typeHandlerVersion - the typeHandlerVersion value to set.
      Returns:
      the VMExtension object itself.
    • autoUpgradeMinorVersion

      public Boolean 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

      public VMExtension withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion)
      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.
    • settings

      public Object settings()
      Get the settings property: JSON formatted public settings for the extension.
      Returns:
      the settings value.
    • withSettings

      public VMExtension withSettings(Object settings)
      Set the settings property: JSON formatted public settings for the extension.
      Parameters:
      settings - the settings value to set.
      Returns:
      the VMExtension object itself.
    • protectedSettings

      public Object protectedSettings()
      Get the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
      Returns:
      the protectedSettings value.
    • withProtectedSettings

      public VMExtension withProtectedSettings(Object protectedSettings)
      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

      public List<String> 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

      public VMExtension withProvisionAfterExtensions(List<String> provisionAfterExtensions)
      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.