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 compute nodes in a pool based on the Azure Virtual Machines infrastructure.
/** * The configuration for compute nodes in a pool based on the Azure Virtual * Machines infrastructure. */
public class VirtualMachineConfiguration {
A reference to the Azure Virtual Machines Marketplace Image or the custom Virtual Machine Image to use.
/** * A reference to the Azure Virtual Machines Marketplace Image or the * custom Virtual Machine Image to use. */
@JsonProperty(value = "imageReference", required = true) private ImageReference imageReference;
The SKU of the Batch node agent to be provisioned on compute nodes in the pool. The Batch node agent is a program that runs on each node in the pool, and provides the command-and-control interface between the node and the Batch service. There are different implementations of the node agent, known as SKUs, for different operating systems. You must specify a node agent SKU which matches the selected image reference. To get the list of supported node agent SKUs along with their list of verified image references, see the 'List supported node agent SKUs' operation.
/** * The SKU of the Batch node agent to be provisioned on compute nodes in * the pool. * The Batch node agent is a program that runs on each node in the pool, * and provides the command-and-control interface between the node and the * Batch service. There are different implementations of the node agent, * known as SKUs, for different operating systems. You must specify a node * agent SKU which matches the selected image reference. To get the list of * supported node agent SKUs along with their list of verified image * references, see the 'List supported node agent SKUs' operation. */
@JsonProperty(value = "nodeAgentSkuId", required = true) private String nodeAgentSkuId;
Windows operating system settings on the virtual machine. This property must not be specified if the imageReference specifies a Linux OS image.
/** * Windows operating system settings on the virtual machine. * This property must not be specified if the imageReference specifies a * Linux OS image. */
@JsonProperty(value = "windowsConfiguration") private WindowsConfiguration windowsConfiguration;
The configuration for data disks attached to the compute nodes in the pool. This property must be specified if the compute nodes in the pool need to have empty data disks attached to them.
/** * The configuration for data disks attached to the compute nodes in the * pool. * This property must be specified if the compute nodes in the pool need to * have empty data disks attached to them. */
@JsonProperty(value = "dataDisks") private List<DataDisk> dataDisks;
The type of on-premises license to be used when deploying the operating system. This only applies to images that contain the Windows operating system, and should only be used when you hold valid on-premises licenses for the nodes which will be deployed. If omitted, no on-premises licensing discount is applied. Values are: Windows_Server - The on-premises license is for Windows Server. Windows_Client - The on-premises license is for Windows Client.
/** * The type of on-premises license to be used when deploying the operating * system. * This only applies to images that contain the Windows operating system, * and should only be used when you hold valid on-premises licenses for the * nodes which will be deployed. If omitted, no on-premises licensing * discount is applied. Values are: * * Windows_Server - The on-premises license is for Windows Server. * Windows_Client - The on-premises license is for Windows Client. */
@JsonProperty(value = "licenseType") private String licenseType;
The container configuration for the pool. If specified, setup is performed on each node in the pool to allow tasks to run in containers. All regular tasks and job manager tasks run on this pool must specify the containerSettings property, and all other tasks may specify it.
/** * The container configuration for the pool. * If specified, setup is performed on each node in the pool to allow tasks * to run in containers. All regular tasks and job manager tasks run on * this pool must specify the containerSettings property, and all other * tasks may specify it. */
@JsonProperty(value = "containerConfiguration") private ContainerConfiguration containerConfiguration;
The disk encryption configuration for the pool. If specified, encryption is performed on each node in the pool during node provisioning.
/** * The disk encryption configuration for the pool. * If specified, encryption is performed on each node in the pool during * node provisioning. */
@JsonProperty(value = "diskEncryptionConfiguration") private DiskEncryptionConfiguration diskEncryptionConfiguration;
The node placement configuration for the pool. This configuration will specify rules on how nodes in the pool will be physically allocated.
/** * The node placement configuration for the pool. * This configuration will specify rules on how nodes in the pool will be * physically allocated. */
@JsonProperty(value = "nodePlacementConfiguration") private NodePlacementConfiguration nodePlacementConfiguration;
The virtual machine extension for the pool. If specified, the extensions mentioned in this configuration will be installed on each node.
/** * The virtual machine extension for the pool. * If specified, the extensions mentioned in this configuration will be * installed on each node. */
@JsonProperty(value = "extensions") private List<VMExtension> extensions;
Get the imageReference value.
Returns:the imageReference value
/** * Get the imageReference value. * * @return the imageReference value */
public ImageReference imageReference() { return this.imageReference; }
Set the imageReference value.
Params:
  • imageReference – the imageReference value to set
Returns:the VirtualMachineConfiguration object itself.
/** * Set the imageReference value. * * @param imageReference the imageReference value to set * @return the VirtualMachineConfiguration object itself. */
public VirtualMachineConfiguration withImageReference(ImageReference imageReference) { this.imageReference = imageReference; return this; }
Get the Batch node agent is a program that runs on each node in the pool, and provides the command-and-control interface between the node and the Batch service. There are different implementations of the node agent, known as SKUs, for different operating systems. You must specify a node agent SKU which matches the selected image reference. To get the list of supported node agent SKUs along with their list of verified image references, see the 'List supported node agent SKUs' operation.
Returns:the nodeAgentSkuId value
/** * Get the Batch node agent is a program that runs on each node in the pool, and provides the command-and-control interface between the node and the Batch service. There are different implementations of the node agent, known as SKUs, for different operating systems. You must specify a node agent SKU which matches the selected image reference. To get the list of supported node agent SKUs along with their list of verified image references, see the 'List supported node agent SKUs' operation. * * @return the nodeAgentSkuId value */
public String nodeAgentSkuId() { return this.nodeAgentSkuId; }
Set the Batch node agent is a program that runs on each node in the pool, and provides the command-and-control interface between the node and the Batch service. There are different implementations of the node agent, known as SKUs, for different operating systems. You must specify a node agent SKU which matches the selected image reference. To get the list of supported node agent SKUs along with their list of verified image references, see the 'List supported node agent SKUs' operation.
Params:
  • nodeAgentSkuId – the nodeAgentSkuId value to set
Returns:the VirtualMachineConfiguration object itself.
/** * Set the Batch node agent is a program that runs on each node in the pool, and provides the command-and-control interface between the node and the Batch service. There are different implementations of the node agent, known as SKUs, for different operating systems. You must specify a node agent SKU which matches the selected image reference. To get the list of supported node agent SKUs along with their list of verified image references, see the 'List supported node agent SKUs' operation. * * @param nodeAgentSkuId the nodeAgentSkuId value to set * @return the VirtualMachineConfiguration object itself. */
public VirtualMachineConfiguration withNodeAgentSkuId(String nodeAgentSkuId) { this.nodeAgentSkuId = nodeAgentSkuId; return this; }
Get this property must not be specified if the imageReference specifies a Linux OS image.
Returns:the windowsConfiguration value
/** * Get this property must not be specified if the imageReference specifies a Linux OS image. * * @return the windowsConfiguration value */
public WindowsConfiguration windowsConfiguration() { return this.windowsConfiguration; }
Set this property must not be specified if the imageReference specifies a Linux OS image.
Params:
  • windowsConfiguration – the windowsConfiguration value to set
Returns:the VirtualMachineConfiguration object itself.
/** * Set this property must not be specified if the imageReference specifies a Linux OS image. * * @param windowsConfiguration the windowsConfiguration value to set * @return the VirtualMachineConfiguration object itself. */
public VirtualMachineConfiguration withWindowsConfiguration(WindowsConfiguration windowsConfiguration) { this.windowsConfiguration = windowsConfiguration; return this; }
Get this property must be specified if the compute nodes in the pool need to have empty data disks attached to them.
Returns:the dataDisks value
/** * Get this property must be specified if the compute nodes in the pool need to have empty data disks attached to them. * * @return the dataDisks value */
public List<DataDisk> dataDisks() { return this.dataDisks; }
Set this property must be specified if the compute nodes in the pool need to have empty data disks attached to them.
Params:
  • dataDisks – the dataDisks value to set
Returns:the VirtualMachineConfiguration object itself.
/** * Set this property must be specified if the compute nodes in the pool need to have empty data disks attached to them. * * @param dataDisks the dataDisks value to set * @return the VirtualMachineConfiguration object itself. */
public VirtualMachineConfiguration withDataDisks(List<DataDisk> dataDisks) { this.dataDisks = dataDisks; return this; }
Get this only applies to images that contain the Windows operating system, and should only be used when you hold valid on-premises licenses for the nodes which will be deployed. If omitted, no on-premises licensing discount is applied. Values are: Windows_Server - The on-premises license is for Windows Server. Windows_Client - The on-premises license is for Windows Client.
Returns:the licenseType value
/** * Get this only applies to images that contain the Windows operating system, and should only be used when you hold valid on-premises licenses for the nodes which will be deployed. If omitted, no on-premises licensing discount is applied. Values are: Windows_Server - The on-premises license is for Windows Server. Windows_Client - The on-premises license is for Windows Client. * * @return the licenseType value */
public String licenseType() { return this.licenseType; }
Set this only applies to images that contain the Windows operating system, and should only be used when you hold valid on-premises licenses for the nodes which will be deployed. If omitted, no on-premises licensing discount is applied. Values are: Windows_Server - The on-premises license is for Windows Server. Windows_Client - The on-premises license is for Windows Client.
Params:
  • licenseType – the licenseType value to set
Returns:the VirtualMachineConfiguration object itself.
/** * Set this only applies to images that contain the Windows operating system, and should only be used when you hold valid on-premises licenses for the nodes which will be deployed. If omitted, no on-premises licensing discount is applied. Values are: Windows_Server - The on-premises license is for Windows Server. Windows_Client - The on-premises license is for Windows Client. * * @param licenseType the licenseType value to set * @return the VirtualMachineConfiguration object itself. */
public VirtualMachineConfiguration withLicenseType(String licenseType) { this.licenseType = licenseType; return this; }
Get if specified, setup is performed on each node in the pool to allow tasks to run in containers. All regular tasks and job manager tasks run on this pool must specify the containerSettings property, and all other tasks may specify it.
Returns:the containerConfiguration value
/** * Get if specified, setup is performed on each node in the pool to allow tasks to run in containers. All regular tasks and job manager tasks run on this pool must specify the containerSettings property, and all other tasks may specify it. * * @return the containerConfiguration value */
public ContainerConfiguration containerConfiguration() { return this.containerConfiguration; }
Set if specified, setup is performed on each node in the pool to allow tasks to run in containers. All regular tasks and job manager tasks run on this pool must specify the containerSettings property, and all other tasks may specify it.
Params:
  • containerConfiguration – the containerConfiguration value to set
Returns:the VirtualMachineConfiguration object itself.
/** * Set if specified, setup is performed on each node in the pool to allow tasks to run in containers. All regular tasks and job manager tasks run on this pool must specify the containerSettings property, and all other tasks may specify it. * * @param containerConfiguration the containerConfiguration value to set * @return the VirtualMachineConfiguration object itself. */
public VirtualMachineConfiguration withContainerConfiguration(ContainerConfiguration containerConfiguration) { this.containerConfiguration = containerConfiguration; return this; }
Get if specified, encryption is performed on each node in the pool during node provisioning.
Returns:the diskEncryptionConfiguration value
/** * Get if specified, encryption is performed on each node in the pool during node provisioning. * * @return the diskEncryptionConfiguration value */
public DiskEncryptionConfiguration diskEncryptionConfiguration() { return this.diskEncryptionConfiguration; }
Set if specified, encryption is performed on each node in the pool during node provisioning.
Params:
  • diskEncryptionConfiguration – the diskEncryptionConfiguration value to set
Returns:the VirtualMachineConfiguration object itself.
/** * Set if specified, encryption is performed on each node in the pool during node provisioning. * * @param diskEncryptionConfiguration the diskEncryptionConfiguration value to set * @return the VirtualMachineConfiguration object itself. */
public VirtualMachineConfiguration withDiskEncryptionConfiguration(DiskEncryptionConfiguration diskEncryptionConfiguration) { this.diskEncryptionConfiguration = diskEncryptionConfiguration; return this; }
Get this configuration will specify rules on how nodes in the pool will be physically allocated.
Returns:the nodePlacementConfiguration value
/** * Get this configuration will specify rules on how nodes in the pool will be physically allocated. * * @return the nodePlacementConfiguration value */
public NodePlacementConfiguration nodePlacementConfiguration() { return this.nodePlacementConfiguration; }
Set this configuration will specify rules on how nodes in the pool will be physically allocated.
Params:
  • nodePlacementConfiguration – the nodePlacementConfiguration value to set
Returns:the VirtualMachineConfiguration object itself.
/** * Set this configuration will specify rules on how nodes in the pool will be physically allocated. * * @param nodePlacementConfiguration the nodePlacementConfiguration value to set * @return the VirtualMachineConfiguration object itself. */
public VirtualMachineConfiguration withNodePlacementConfiguration(NodePlacementConfiguration nodePlacementConfiguration) { this.nodePlacementConfiguration = nodePlacementConfiguration; return this; }
Get if specified, the extensions mentioned in this configuration will be installed on each node.
Returns:the extensions value
/** * Get if specified, the extensions mentioned in this configuration will be installed on each node. * * @return the extensions value */
public List<VMExtension> extensions() { return this.extensions; }
Set if specified, the extensions mentioned in this configuration will be installed on each node.
Params:
  • extensions – the extensions value to set
Returns:the VirtualMachineConfiguration object itself.
/** * Set if specified, the extensions mentioned in this configuration will be installed on each node. * * @param extensions the extensions value to set * @return the VirtualMachineConfiguration object itself. */
public VirtualMachineConfiguration withExtensions(List<VMExtension> extensions) { this.extensions = extensions; return this; } }