Class MachineExtensionUpdate
java.lang.Object
com.azure.resourcemanager.hybridcompute.models.ResourceUpdate
com.azure.resourcemanager.hybridcompute.models.MachineExtensionUpdate
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ResourceUpdate>
Describes a Machine Extension Update.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MachineExtensionUpdate class. -
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.static MachineExtensionUpdatefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MachineExtensionUpdate from the JsonReader.Get the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.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.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".Get the typeHandlerVersion property: Specifies the version of the 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 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.withProtectedSettings(Map<String, 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(Map<String, Object> settings) Set the settings property: Json formatted public settings for the extension.Set the tags property: Resource tags.Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".withTypeHandlerVersion(String typeHandlerVersion) Set the typeHandlerVersion property: Specifies the version of the script handler.Methods inherited from class com.azure.resourcemanager.hybridcompute.models.ResourceUpdate
tagsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MachineExtensionUpdate
public MachineExtensionUpdate()Creates an instance of MachineExtensionUpdate class.
-
-
Method Details
-
withTags
Set the tags property: Resource tags.- Overrides:
withTagsin classResourceUpdate- Parameters:
tags- the tags value to set.- Returns:
- the ResourceUpdate object itself.
-
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 MachineExtensionUpdate 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 MachineExtensionUpdate object itself.
-
type
Get the type property: Specifies the type of the extension; an example is "CustomScriptExtension".- Returns:
- the type value.
-
withType
Set the type property: Specifies the type of the extension; an example is "CustomScriptExtension".- Parameters:
type- the type value to set.- Returns:
- the MachineExtensionUpdate 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 MachineExtensionUpdate 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 MachineExtensionUpdate 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 MachineExtensionUpdate 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 MachineExtensionUpdate 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 MachineExtensionUpdate object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classResourceUpdate- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ResourceUpdate>- Overrides:
toJsonin classResourceUpdate- Throws:
IOException
-
fromJson
public static MachineExtensionUpdate fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MachineExtensionUpdate from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MachineExtensionUpdate if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the MachineExtensionUpdate.
-