Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.compute.implementation; import com.microsoft.azure.management.compute.VirtualMachineExtensionInstanceView; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.Resource;
Describes a Virtual Machine Extension.
/** * Describes a Virtual Machine Extension. */
@JsonFlatten public class VirtualMachineExtensionInner extends Resource {
How the extension handler should be forced to update even if the extension configuration has not changed.
/** * How the extension handler should be forced to update even if the * extension configuration has not changed. */
@JsonProperty(value = "properties.forceUpdateTag") private String forceUpdateTag;
The name of the extension handler publisher.
/** * The name of the extension handler publisher. */
@JsonProperty(value = "properties.publisher") private String publisher;
Specifies the type of the extension; an example is "CustomScriptExtension".
/** * Specifies the type of the extension; an example is * "CustomScriptExtension". */
@JsonProperty(value = "properties.type") private String virtualMachineExtensionType;
Specifies the version of the script handler.
/** * Specifies the version of the script handler. */
@JsonProperty(value = "properties.typeHandlerVersion") private String typeHandlerVersion;
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.
/** * 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. */
@JsonProperty(value = "properties.autoUpgradeMinorVersion") private Boolean autoUpgradeMinorVersion;
Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.
/** * Indicates whether the extension should be automatically upgraded by the * platform if there is a newer version of the extension available. */
@JsonProperty(value = "properties.enableAutomaticUpgrade") private Boolean enableAutomaticUpgrade;
Json formatted public settings for the extension.
/** * Json formatted public settings for the extension. */
@JsonProperty(value = "properties.settings") private Object settings;
The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
/** * The extension can contain either protectedSettings or * protectedSettingsFromKeyVault or no protected settings at all. */
@JsonProperty(value = "properties.protectedSettings") private Object protectedSettings;
The provisioning state, which only appears in the response.
/** * The provisioning state, which only appears in the response. */
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY) private String provisioningState;
The virtual machine extension instance view.
/** * The virtual machine extension instance view. */
@JsonProperty(value = "properties.instanceView") private VirtualMachineExtensionInstanceView instanceView;
Get how the extension handler should be forced to update even if the extension configuration has not changed.
Returns:the forceUpdateTag value
/** * Get how the extension handler should be forced to update even if the extension configuration has not changed. * * @return the forceUpdateTag value */
public String forceUpdateTag() { return this.forceUpdateTag; }
Set how the extension handler should be forced to update even if the extension configuration has not changed.
Params:
  • forceUpdateTag – the forceUpdateTag value to set
Returns:the VirtualMachineExtensionInner object itself.
/** * Set how the extension handler should be forced to update even if the extension configuration has not changed. * * @param forceUpdateTag the forceUpdateTag value to set * @return the VirtualMachineExtensionInner object itself. */
public VirtualMachineExtensionInner withForceUpdateTag(String forceUpdateTag) { this.forceUpdateTag = forceUpdateTag; return this; }
Get the name of the extension handler publisher.
Returns:the publisher value
/** * Get the name of the extension handler publisher. * * @return the publisher value */
public String publisher() { return this.publisher; }
Set the name of the extension handler publisher.
Params:
  • publisher – the publisher value to set
Returns:the VirtualMachineExtensionInner object itself.
/** * Set the name of the extension handler publisher. * * @param publisher the publisher value to set * @return the VirtualMachineExtensionInner object itself. */
public VirtualMachineExtensionInner withPublisher(String publisher) { this.publisher = publisher; return this; }
Get specifies the type of the extension; an example is "CustomScriptExtension".
Returns:the virtualMachineExtensionType value
/** * Get specifies the type of the extension; an example is "CustomScriptExtension". * * @return the virtualMachineExtensionType value */
public String virtualMachineExtensionType() { return this.virtualMachineExtensionType; }
Set specifies the type of the extension; an example is "CustomScriptExtension".
Params:
  • virtualMachineExtensionType – the virtualMachineExtensionType value to set
Returns:the VirtualMachineExtensionInner object itself.
/** * Set specifies the type of the extension; an example is "CustomScriptExtension". * * @param virtualMachineExtensionType the virtualMachineExtensionType value to set * @return the VirtualMachineExtensionInner object itself. */
public VirtualMachineExtensionInner withVirtualMachineExtensionType(String virtualMachineExtensionType) { this.virtualMachineExtensionType = virtualMachineExtensionType; return this; }
Get specifies the version of the script handler.
Returns:the typeHandlerVersion value
/** * Get specifies the version of the script handler. * * @return the typeHandlerVersion value */
public String typeHandlerVersion() { return this.typeHandlerVersion; }
Set specifies the version of the script handler.
Params:
  • typeHandlerVersion – the typeHandlerVersion value to set
Returns:the VirtualMachineExtensionInner object itself.
/** * Set specifies the version of the script handler. * * @param typeHandlerVersion the typeHandlerVersion value to set * @return the VirtualMachineExtensionInner object itself. */
public VirtualMachineExtensionInner withTypeHandlerVersion(String typeHandlerVersion) { this.typeHandlerVersion = typeHandlerVersion; return this; }
Get 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
/** * Get 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. * * @return the autoUpgradeMinorVersion value */
public Boolean autoUpgradeMinorVersion() { return this.autoUpgradeMinorVersion; }
Set 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.
Params:
  • autoUpgradeMinorVersion – the autoUpgradeMinorVersion value to set
Returns:the VirtualMachineExtensionInner object itself.
/** * Set 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. * * @param autoUpgradeMinorVersion the autoUpgradeMinorVersion value to set * @return the VirtualMachineExtensionInner object itself. */
public VirtualMachineExtensionInner withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion) { this.autoUpgradeMinorVersion = autoUpgradeMinorVersion; return this; }
Get 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
/** * Get indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. * * @return the enableAutomaticUpgrade value */
public Boolean enableAutomaticUpgrade() { return this.enableAutomaticUpgrade; }
Set indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.
Params:
  • enableAutomaticUpgrade – the enableAutomaticUpgrade value to set
Returns:the VirtualMachineExtensionInner object itself.
/** * Set indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available. * * @param enableAutomaticUpgrade the enableAutomaticUpgrade value to set * @return the VirtualMachineExtensionInner object itself. */
public VirtualMachineExtensionInner withEnableAutomaticUpgrade(Boolean enableAutomaticUpgrade) { this.enableAutomaticUpgrade = enableAutomaticUpgrade; return this; }
Get json formatted public settings for the extension.
Returns:the settings value
/** * Get json formatted public settings for the extension. * * @return the settings value */
public Object settings() { return this.settings; }
Set json formatted public settings for the extension.
Params:
  • settings – the settings value to set
Returns:the VirtualMachineExtensionInner object itself.
/** * Set json formatted public settings for the extension. * * @param settings the settings value to set * @return the VirtualMachineExtensionInner object itself. */
public VirtualMachineExtensionInner withSettings(Object settings) { this.settings = settings; return this; }
Get the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
Returns:the protectedSettings value
/** * Get the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. * * @return the protectedSettings value */
public Object protectedSettings() { return this.protectedSettings; }
Set the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.
Params:
  • protectedSettings – the protectedSettings value to set
Returns:the VirtualMachineExtensionInner object itself.
/** * Set the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all. * * @param protectedSettings the protectedSettings value to set * @return the VirtualMachineExtensionInner object itself. */
public VirtualMachineExtensionInner withProtectedSettings(Object protectedSettings) { this.protectedSettings = protectedSettings; return this; }
Get the provisioning state, which only appears in the response.
Returns:the provisioningState value
/** * Get the provisioning state, which only appears in the response. * * @return the provisioningState value */
public String provisioningState() { return this.provisioningState; }
Get the virtual machine extension instance view.
Returns:the instanceView value
/** * Get the virtual machine extension instance view. * * @return the instanceView value */
public VirtualMachineExtensionInstanceView instanceView() { return this.instanceView; }
Set the virtual machine extension instance view.
Params:
  • instanceView – the instanceView value to set
Returns:the VirtualMachineExtensionInner object itself.
/** * Set the virtual machine extension instance view. * * @param instanceView the instanceView value to set * @return the VirtualMachineExtensionInner object itself. */
public VirtualMachineExtensionInner withInstanceView(VirtualMachineExtensionInstanceView instanceView) { this.instanceView = instanceView; return this; } }