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.batch;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;
The configuration for virtual machine extensions.
/**
* The configuration for virtual machine extensions.
*/
public class VMExtension {
The name of the virtual machine extension.
/**
* The name of the virtual machine extension.
*/
@JsonProperty(value = "name", required = true)
private String name;
The name of the extension handler publisher.
/**
* The name of the extension handler publisher.
*/
@JsonProperty(value = "publisher", required = true)
private String publisher;
The type of the extensions.
/**
* The type of the extensions.
*/
@JsonProperty(value = "type", required = true)
private String type;
The version of script handler.
/**
* The version of script handler.
*/
@JsonProperty(value = "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 = "autoUpgradeMinorVersion")
private Boolean autoUpgradeMinorVersion;
JSON formatted public settings for the extension.
/**
* JSON formatted public settings for the extension.
*/
@JsonProperty(value = "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 = "protectedSettings")
private Object protectedSettings;
The collection of extension names.
Collection of extension names after which this extension needs to be
provisioned.
/**
* The collection of extension names.
* Collection of extension names after which this extension needs to be
* provisioned.
*/
@JsonProperty(value = "provisionAfterExtensions")
private List<String> provisionAfterExtensions;
Get the name value.
Returns: the name value
/**
* Get the name value.
*
* @return the name value
*/
public String name() {
return this.name;
}
Set the name value.
Params: - name – the name value to set
Returns: the VMExtension object itself.
/**
* Set the name value.
*
* @param name the name value to set
* @return the VMExtension object itself.
*/
public VMExtension withName(String name) {
this.name = name;
return this;
}
Get the publisher value.
Returns: the publisher value
/**
* Get the publisher value.
*
* @return the publisher value
*/
public String publisher() {
return this.publisher;
}
Set the publisher value.
Params: - publisher – the publisher value to set
Returns: the VMExtension object itself.
/**
* Set the publisher value.
*
* @param publisher the publisher value to set
* @return the VMExtension object itself.
*/
public VMExtension withPublisher(String publisher) {
this.publisher = publisher;
return this;
}
Get the type value.
Returns: the type value
/**
* Get the type value.
*
* @return the type value
*/
public String type() {
return this.type;
}
Set the type value.
Params: - type – the type value to set
Returns: the VMExtension object itself.
/**
* Set the type value.
*
* @param type the type value to set
* @return the VMExtension object itself.
*/
public VMExtension withType(String type) {
this.type = type;
return this;
}
Get the typeHandlerVersion value.
Returns: the typeHandlerVersion value
/**
* Get the typeHandlerVersion value.
*
* @return the typeHandlerVersion value
*/
public String typeHandlerVersion() {
return this.typeHandlerVersion;
}
Set the typeHandlerVersion value.
Params: - typeHandlerVersion – the typeHandlerVersion value to set
Returns: the VMExtension object itself.
/**
* Set the typeHandlerVersion value.
*
* @param typeHandlerVersion the typeHandlerVersion value to set
* @return the VMExtension object itself.
*/
public VMExtension 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 VMExtension 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 VMExtension object itself.
*/
public VMExtension withAutoUpgradeMinorVersion(Boolean autoUpgradeMinorVersion) {
this.autoUpgradeMinorVersion = autoUpgradeMinorVersion;
return this;
}
Get the settings value.
Returns: the settings value
/**
* Get the settings value.
*
* @return the settings value
*/
public Object settings() {
return this.settings;
}
Set the settings value.
Params: - settings – the settings value to set
Returns: the VMExtension object itself.
/**
* Set the settings value.
*
* @param settings the settings value to set
* @return the VMExtension object itself.
*/
public VMExtension 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 VMExtension 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 VMExtension object itself.
*/
public VMExtension withProtectedSettings(Object protectedSettings) {
this.protectedSettings = protectedSettings;
return this;
}
Get collection of extension names after which this extension needs to be provisioned.
Returns: the provisionAfterExtensions value
/**
* Get collection of extension names after which this extension needs to be provisioned.
*
* @return the provisionAfterExtensions value
*/
public List<String> provisionAfterExtensions() {
return this.provisionAfterExtensions;
}
Set collection of extension names after which this extension needs to be provisioned.
Params: - provisionAfterExtensions – the provisionAfterExtensions value to set
Returns: the VMExtension object itself.
/**
* Set collection of extension names after which this extension needs to be provisioned.
*
* @param provisionAfterExtensions the provisionAfterExtensions value to set
* @return the VMExtension object itself.
*/
public VMExtension withProvisionAfterExtensions(List<String> provisionAfterExtensions) {
this.provisionAfterExtensions = provisionAfterExtensions;
return this;
}
}