Class MachineExtensionInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.connectedvmware.fluent.models.MachineExtensionInner
public final class MachineExtensionInner
extends com.azure.core.management.Resource
Describes a Machine Extension.
-
Constructor Summary
-
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 available.Get the forceUpdateTag property: How the extension handler should be forced to update even if the extension configuration has not changed.Get the instanceView property: The machine extension instance view.Get the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.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.com.azure.core.management.SystemData
Get the systemData property: The system data.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".void
validate()
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 available.withForceUpdateTag
(String forceUpdateTag) Set the forceUpdateTag property: How the extension handler should be forced to update even if the extension configuration has not changed.withInstanceView
(MachineExtensionPropertiesInstanceView instanceView) Set the instanceView property: The machine extension instance view.withLocation
(String location) withProtectedSettings
(Object protectedSettings) Set the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.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.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.core.management.Resource
location, tags
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
MachineExtensionInner
public MachineExtensionInner()
-
-
Method Details
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: The system data.- Returns:
- the systemData value.
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
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
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 MachineExtensionInner 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 MachineExtensionInner 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 MachineExtensionInner 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 MachineExtensionInner object itself.
-
enableAutomaticUpgrade
Get the enableAutomaticUpgrade property: Indicates whether the extension should be automatically upgraded by the platform if there is a newer version 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 available.- Parameters:
enableAutomaticUpgrade
- the enableAutomaticUpgrade value to set.- Returns:
- the MachineExtensionInner 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 MachineExtensionInner 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 MachineExtensionInner 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 MachineExtensionInner object itself.
-
provisioningState
Get the provisioningState property: The provisioning state, which only appears in the response.- Returns:
- the provisioningState value.
-
instanceView
Get the instanceView property: The machine extension instance view.- Returns:
- the instanceView value.
-
withInstanceView
Set the instanceView property: The machine extension instance view.- Parameters:
instanceView
- the instanceView value to set.- Returns:
- the MachineExtensionInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-