Class VirtualMachineScaleSetExtensionInner
java.lang.Object
com.azure.resourcemanager.compute.models.SubResourceReadOnly
com.azure.resourcemanager.compute.fluent.models.VirtualMachineScaleSetExtensionInner
Describes a Virtual Machine Scale Set Extension.
-
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.Get the forceUpdateTag property: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed.name()Get the name property: The name of the extension.Get the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.Get the protectedSettingsFromKeyVault property: The extensions protected settings that are passed by reference, and consumed from key vault.Get the provisionAfterExtensions property: Collection of extension names after which this extension needs to be provisioned.Get the provisioningState property: The provisioning state, which only appears in the response.Get the publisher property: The name of the extension handler publisher.settings()Get the settings property: Json formatted public settings for the extension.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).type()Get the type property: Resource type.Get the typeHandlerVersion property: Specifies the version of the script handler.Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".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.withForceUpdateTag(String forceUpdateTag) Set the forceUpdateTag property: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed.Set the name property: The name of the extension.withProtectedSettings(Object protectedSettings) Set the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.withProtectedSettingsFromKeyVault(Object protectedSettingsFromKeyVault) Set the protectedSettingsFromKeyVault property: The extensions protected settings that are passed by reference, and consumed from key vault.withProvisionAfterExtensions(List<String> provisionAfterExtensions) Set the provisionAfterExtensions property: Collection of extension names after which this extension needs to be provisioned.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.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).withTypeHandlerVersion(String typeHandlerVersion) Set the typeHandlerVersion property: Specifies the version of the script handler.withTypePropertiesType(String type) Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".Methods inherited from class com.azure.resourcemanager.compute.models.SubResourceReadOnly
id
-
Constructor Details
-
VirtualMachineScaleSetExtensionInner
public VirtualMachineScaleSetExtensionInner()
-
-
Method Details
-
name
Get the name property: The name of the extension.- Returns:
- the name value.
-
withName
Set the name property: The name of the extension.- Parameters:
name- the name value to set.- Returns:
- the VirtualMachineScaleSetExtensionInner object itself.
-
type
Get the type property: Resource type.- Returns:
- the type value.
-
forceUpdateTag
Get the forceUpdateTag property: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed.- Returns:
- the forceUpdateTag value.
-
withForceUpdateTag
Set the forceUpdateTag property: If a value is provided and is different from the previous value, the extension handler will be forced to update even if the extension configuration has not changed.- Parameters:
forceUpdateTag- the forceUpdateTag value to set.- Returns:
- the VirtualMachineScaleSetExtensionInner 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 VirtualMachineScaleSetExtensionInner object itself.
-
typePropertiesType
Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".- Returns:
- the type value.
-
withTypePropertiesType
Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".- Parameters:
type- the type value to set.- Returns:
- the VirtualMachineScaleSetExtensionInner object itself.
-
typeHandlerVersion
Get the typeHandlerVersion property: Specifies the version of the script handler.- Returns:
- the typeHandlerVersion value.
-
withTypeHandlerVersion
Set the typeHandlerVersion property: Specifies the version of the script handler.- Parameters:
typeHandlerVersion- the typeHandlerVersion value to set.- Returns:
- the VirtualMachineScaleSetExtensionInner 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
public VirtualMachineScaleSetExtensionInner 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 VirtualMachineScaleSetExtensionInner 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
public VirtualMachineScaleSetExtensionInner 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 VirtualMachineScaleSetExtensionInner 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 VirtualMachineScaleSetExtensionInner 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 VirtualMachineScaleSetExtensionInner object itself.
-
provisioningState
Get the provisioningState property: The provisioning state, which only appears in the response.- Returns:
- the provisioningState value.
-
provisionAfterExtensions
Get the provisionAfterExtensions property: Collection of extension names after which this extension needs to be provisioned.- Returns:
- the provisionAfterExtensions value.
-
withProvisionAfterExtensions
public VirtualMachineScaleSetExtensionInner withProvisionAfterExtensions(List<String> provisionAfterExtensions) Set the provisionAfterExtensions property: Collection of extension names after which this extension needs to be provisioned.- Parameters:
provisionAfterExtensions- the provisionAfterExtensions value to set.- Returns:
- the VirtualMachineScaleSetExtensionInner object itself.
-
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
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 VirtualMachineScaleSetExtensionInner object itself.
-
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 VirtualMachineScaleSetExtensionInner 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 VirtualMachineScaleSetExtensionInner object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classSubResourceReadOnly- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-