Class VirtualMachineExtensionProperties
- java.lang.Object
-
- com.azure.resourcemanager.compute.fluent.models.VirtualMachineExtensionProperties
-
public final class VirtualMachineExtensionProperties extends Object
Describes the properties of a Virtual Machine Extension.
-
-
Constructor Summary
Constructors Constructor Description VirtualMachineExtensionProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanautoUpgradeMinorVersion()Get the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one is available at deployment time.BooleanenableAutomaticUpgrade()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.StringforceUpdateTag()Get the forceUpdateTag property: How the extension handler should be forced to update even if the extension configuration has not changed.VirtualMachineExtensionInstanceViewinstanceView()Get the instanceView property: The virtual machine extension instance view.ObjectprotectedSettings()Get the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.ObjectprotectedSettingsFromKeyVault()Get the protectedSettingsFromKeyVault property: The extensions protected settings that are passed by reference, and consumed from key vault.StringprovisioningState()Get the provisioningState property: The provisioning state, which only appears in the response.Stringpublisher()Get the publisher property: The name of the extension handler publisher.Objectsettings()Get the settings property: Json formatted public settings for the extension.BooleansuppressFailures()Get the suppressFailures property: Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value).Stringtype()Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".StringtypeHandlerVersion()Get the typeHandlerVersion property: Specifies the version of the script handler.voidvalidate()Validates the instance.VirtualMachineExtensionPropertieswithAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion)Set the autoUpgradeMinorVersion property: Indicates whether the extension should use a newer minor version if one is available at deployment time.VirtualMachineExtensionPropertieswithEnableAutomaticUpgrade(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.VirtualMachineExtensionPropertieswithForceUpdateTag(String forceUpdateTag)Set the forceUpdateTag property: How the extension handler should be forced to update even if the extension configuration has not changed.VirtualMachineExtensionPropertieswithInstanceView(VirtualMachineExtensionInstanceView instanceView)Set the instanceView property: The virtual machine extension instance view.VirtualMachineExtensionPropertieswithProtectedSettings(Object protectedSettings)Set the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.VirtualMachineExtensionPropertieswithProtectedSettingsFromKeyVault(Object protectedSettingsFromKeyVault)Set the protectedSettingsFromKeyVault property: The extensions protected settings that are passed by reference, and consumed from key vault.VirtualMachineExtensionPropertieswithPublisher(String publisher)Set the publisher property: The name of the extension handler publisher.VirtualMachineExtensionPropertieswithSettings(Object settings)Set the settings property: Json formatted public settings for the extension.VirtualMachineExtensionPropertieswithSuppressFailures(Boolean suppressFailures)Set the suppressFailures property: Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value).VirtualMachineExtensionPropertieswithType(String type)Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".VirtualMachineExtensionPropertieswithTypeHandlerVersion(String typeHandlerVersion)Set the typeHandlerVersion property: Specifies the version of the script handler.
-
-
-
Method Detail
-
forceUpdateTag
public String forceUpdateTag()
Get the forceUpdateTag property: How the extension handler should be forced to update even if the extension configuration has not changed.- Returns:
- the forceUpdateTag value.
-
withForceUpdateTag
public VirtualMachineExtensionProperties withForceUpdateTag(String forceUpdateTag)
Set the forceUpdateTag property: How the extension handler should be forced to update even if the extension configuration has not changed.- Parameters:
forceUpdateTag- the forceUpdateTag value to set.- Returns:
- the VirtualMachineExtensionProperties object itself.
-
publisher
public String publisher()
Get the publisher property: The name of the extension handler publisher.- Returns:
- the publisher value.
-
withPublisher
public VirtualMachineExtensionProperties withPublisher(String publisher)
Set the publisher property: The name of the extension handler publisher.- Parameters:
publisher- the publisher value to set.- Returns:
- the VirtualMachineExtensionProperties object itself.
-
type
public String type()
Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".- Returns:
- the type value.
-
withType
public VirtualMachineExtensionProperties withType(String type)
Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".- Parameters:
type- the type value to set.- Returns:
- the VirtualMachineExtensionProperties object itself.
-
typeHandlerVersion
public String typeHandlerVersion()
Get the typeHandlerVersion property: Specifies the version of the script handler.- Returns:
- the typeHandlerVersion value.
-
withTypeHandlerVersion
public VirtualMachineExtensionProperties withTypeHandlerVersion(String typeHandlerVersion)
Set the typeHandlerVersion property: Specifies the version of the script handler.- Parameters:
typeHandlerVersion- the typeHandlerVersion value to set.- Returns:
- the VirtualMachineExtensionProperties 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 VirtualMachineExtensionProperties 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 VirtualMachineExtensionProperties object itself.
-
enableAutomaticUpgrade
public Boolean 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
public VirtualMachineExtensionProperties 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.- Parameters:
enableAutomaticUpgrade- the enableAutomaticUpgrade value to set.- Returns:
- the VirtualMachineExtensionProperties object itself.
-
settings
public Object settings()
Get the settings property: Json formatted public settings for the extension.- Returns:
- the settings value.
-
withSettings
public VirtualMachineExtensionProperties withSettings(Object settings)
Set the settings property: Json formatted public settings for the extension.- Parameters:
settings- the settings value to set.- Returns:
- the VirtualMachineExtensionProperties 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 VirtualMachineExtensionProperties 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 VirtualMachineExtensionProperties object itself.
-
provisioningState
public String provisioningState()
Get the provisioningState property: The provisioning state, which only appears in the response.- Returns:
- the provisioningState value.
-
instanceView
public VirtualMachineExtensionInstanceView instanceView()
Get the instanceView property: The virtual machine extension instance view.- Returns:
- the instanceView value.
-
withInstanceView
public VirtualMachineExtensionProperties withInstanceView(VirtualMachineExtensionInstanceView instanceView)
Set the instanceView property: The virtual machine extension instance view.- Parameters:
instanceView- the instanceView value to set.- Returns:
- the VirtualMachineExtensionProperties object itself.
-
suppressFailures
public Boolean suppressFailures()
Get the suppressFailures property: Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false.- Returns:
- the suppressFailures value.
-
withSuppressFailures
public VirtualMachineExtensionProperties withSuppressFailures(Boolean suppressFailures)
Set the suppressFailures property: Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false.- Parameters:
suppressFailures- the suppressFailures value to set.- Returns:
- the VirtualMachineExtensionProperties object itself.
-
protectedSettingsFromKeyVault
public Object protectedSettingsFromKeyVault()
Get the protectedSettingsFromKeyVault property: The extensions protected settings that are passed by reference, and consumed from key vault.- Returns:
- the protectedSettingsFromKeyVault value.
-
withProtectedSettingsFromKeyVault
public VirtualMachineExtensionProperties withProtectedSettingsFromKeyVault(Object protectedSettingsFromKeyVault)
Set the protectedSettingsFromKeyVault property: The extensions protected settings that are passed by reference, and consumed from key vault.- Parameters:
protectedSettingsFromKeyVault- the protectedSettingsFromKeyVault value to set.- Returns:
- the VirtualMachineExtensionProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-