VMExtension Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. VMExtension
- com.
Implements
public final class VMExtension
implements JsonSerializable<VMExtension>
The configuration for virtual machine extensions.
Constructor Summary
Constructor | Description |
---|---|
VMExtension() |
Creates an instance of VMExtension class. |
Method Summary
Modifier and Type | Method and Description |
---|---|
Boolean |
autoUpgradeMinorVersion()
Get the auto |
Boolean |
enableAutomaticUpgrade()
Get the enable |
static VMExtension |
fromJson(JsonReader jsonReader)
Reads an instance of VMExtension from the Json |
String |
name()
Get the name property: The name of the virtual machine extension. |
Object |
protectedSettings()
Get the protected |
List<String> |
provisionAfterExtensions()
Get the provision |
String |
publisher()
Get the publisher property: The name of the extension handler publisher. |
Object |
settings()
Get the settings property: JSON formatted public settings for the extension. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the extensions. |
String |
typeHandlerVersion()
Get the type |
void |
validate()
Validates the instance. |
VMExtension |
withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion)
Set the auto |
VMExtension |
withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade)
Set the enable |
VMExtension |
withName(String name)
Set the name property: The name of the virtual machine extension. |
VMExtension |
withProtectedSettings(Object protectedSettings)
Set the protected |
VMExtension |
withProvisionAfterExtensions(List<String> provisionAfterExtensions)
Set the provision |
VMExtension |
withPublisher(String publisher)
Set the publisher property: The name of the extension handler publisher. |
VMExtension |
withSettings(Object settings)
Set the settings property: JSON formatted public settings for the extension. |
VMExtension |
withType(String type)
Set the type property: The type of the extensions. |
VMExtension |
withTypeHandlerVersion(String typeHandlerVersion)
Set the type |
Methods inherited from java.lang.Object
Constructor Details
VMExtension
public VMExtension()
Creates an instance of VMExtension class.
Method Details
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:
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:
fromJson
public static VMExtension fromJson(JsonReader jsonReader)
Reads an instance of VMExtension from the JsonReader.
Parameters:
Returns:
Throws:
name
public String name()
Get the name property: The name of the virtual machine extension.
Returns:
protectedSettings
public Object protectedSettings()
Get the protectedSettings property: The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
Returns:
provisionAfterExtensions
public List
Get the provisionAfterExtensions property: Collection of extension names after which this extension needs to be provisioned.
Returns:
publisher
public String publisher()
Get the publisher property: The name of the extension handler publisher.
Returns:
settings
public Object settings()
Get the settings property: JSON formatted public settings for the extension.
Returns:
toJson
type
public String type()
Get the type property: The type of the extensions.
Returns:
typeHandlerVersion
public String typeHandlerVersion()
Get the typeHandlerVersion property: The version of script handler.
Returns:
validate
public void validate()
Validates the instance.
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:
Returns:
withEnableAutomaticUpgrade
public VMExtension 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:
Returns:
withName
public VMExtension withName(String name)
Set the name property: The name of the virtual machine extension.
Parameters:
Returns:
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:
Returns:
withProvisionAfterExtensions
public VMExtension withProvisionAfterExtensions(List
Set the provisionAfterExtensions property: Collection of extension names after which this extension needs to be provisioned.
Parameters:
Returns:
withPublisher
public VMExtension withPublisher(String publisher)
Set the publisher property: The name of the extension handler publisher.
Parameters:
Returns:
withSettings
public VMExtension withSettings(Object settings)
Set the settings property: JSON formatted public settings for the extension.
Parameters:
Returns:
withType
public VMExtension withType(String type)
Set the type property: The type of the extensions.
Parameters:
Returns:
withTypeHandlerVersion
public VMExtension withTypeHandlerVersion(String typeHandlerVersion)
Set the typeHandlerVersion property: The version of script handler.
Parameters:
Returns:
Applies to
Azure SDK for Java