/**
* 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.
*/
@JsonFlatten
public class VirtualMachineExtensionInner extends Resource {
/**
* 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.
*/
@JsonProperty(value = "properties.publisher")
private String publisher;
/**
* The type of the extension handler.
*/
@JsonProperty(value = "properties.type")
private String virtualMachineExtensionType;
/**
* The type version of the extension handler.
*/
@JsonProperty(value = "properties.typeHandlerVersion")
private String typeHandlerVersion;
/**
* Whether the extension handler should be automatically upgraded across
* minor versions.
*/
@JsonProperty(value = "properties.autoUpgradeMinorVersion")
private Boolean autoUpgradeMinorVersion;
/**
* Json formatted public settings for the extension.
*/
@JsonProperty(value = "properties.settings")
private Object settings;
/**
* Json formatted protected settings for the extension.
*/
@JsonProperty(value = "properties.protectedSettings")
private Object protectedSettings;
/**
* 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.
*/
@JsonProperty(value = "properties.instanceView")
private VirtualMachineExtensionInstanceView instanceView;
/**
* Get the forceUpdateTag value.
*
* @return the forceUpdateTag value
*/
public String forceUpdateTag() {
return this.forceUpdateTag;
}
/**
* Set the forceUpdateTag value.
*
* @param forceUpdateTag the forceUpdateTag value to set
* @return the VirtualMachineExtensionInner object itself.
*/
public VirtualMachineExtensionInner withForceUpdateTag(String forceUpdateTag) {
this.forceUpdateTag = forceUpdateTag;
return this;
}
/**
* Get the publisher value.
*
* @return the publisher value
*/
public String publisher() {
return this.publisher;
}
/**
* Set the publisher value.
*
* @param publisher the publisher value to set
* @return the VirtualMachineExtensionInner object itself.
*/
public VirtualMachineExtensionInner withPublisher(String publisher) {
this.publisher = publisher;
return this;
}
/**
* Get the virtualMachineExtensionType value.
*
* @return the virtualMachineExtensionType value
*/
public String virtualMachineExtensionType() {
return this.virtualMachineExtensionType;
}
/**
* Set the virtualMachineExtensionType value.
*
* @param virtualMachineExtensionType the virtualMachineExtensionType value to set
* @return the VirtualMachineExtensionInner object itself.
*/
public VirtualMachineExtensionInner withVirtualMachineExtensionType(String virtualMachineExtensionType) {
this.virtualMachineExtensionType = virtualMachineExtensionType;
return this;
}
/**
* Get the typeHandlerVersion value.
*
* @return the typeHandlerVersion value
*/
public String typeHandlerVersion() {
return this.typeHandlerVersion;
}
/**
* Set the typeHandlerVersion value.
*
* @param typeHandlerVersion the typeHandlerVersion value to set
* @return the VirtualMachineExtensionInner object itself.
*/
public VirtualMachineExtensionInner withTypeHandlerVersion(String typeHandlerVersion) {
this.typeHandlerVersion = typeHandlerVersion;
return this;
}
/**
* Get the autoUpgradeMinorVersion value.
*
* @return the autoUpgradeMinorVersion value
*/
public Boolean autoUpgradeMinorVersion() {
return this.autoUpgradeMinorVersion;
}
/**
* Set the autoUpgradeMinorVersion value.
*
* @param autoUpgradeMinorVersion the autoUpgradeMinorVersion value to set
* @return the VirtualMachineExtensionInner object itself.
*/
public VirtualMachineExtensionInner withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion) {
this.autoUpgradeMinorVersion = autoUpgradeMinorVersion;
return this;
}
/**
* Get the settings value.
*
* @return the settings value
*/
public Object settings() {
return this.settings;
}
/**
* Set the settings value.
*
* @param settings the settings value to set
* @return the VirtualMachineExtensionInner object itself.
*/
public VirtualMachineExtensionInner withSettings(Object settings) {
this.settings = settings;
return this;
}
/**
* Get the protectedSettings value.
*
* @return the protectedSettings value
*/
public Object protectedSettings() {
return this.protectedSettings;
}
/**
* Set the protectedSettings value.
*
* @param protectedSettings the protectedSettings value to set
* @return the VirtualMachineExtensionInner object itself.
*/
public VirtualMachineExtensionInner withProtectedSettings(Object protectedSettings) {
this.protectedSettings = protectedSettings;
return this;
}
/**
* Get the provisioningState value.
*
* @return the provisioningState value
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* Get the instanceView value.
*
* @return the instanceView value
*/
public VirtualMachineExtensionInstanceView instanceView() {
return this.instanceView;
}
/**
* Set the instanceView value.
*
* @param instanceView the instanceView value to set
* @return the VirtualMachineExtensionInner object itself.
*/
public VirtualMachineExtensionInner withInstanceView(VirtualMachineExtensionInstanceView instanceView) {
this.instanceView = instanceView;
return this;
}
}