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 com.fasterxml.jackson.annotation.JsonProperty;
A reference to an Azure Virtual Machines Marketplace image or the Azure Image resource of a custom Virtual Machine. To get the list of all imageReferences verified by Azure Batch, see the 'List supported node agent SKUs' operation.
/** * A reference to an Azure Virtual Machines Marketplace image or the Azure * Image resource of a custom Virtual Machine. To get the list of all * imageReferences verified by Azure Batch, see the 'List supported node agent * SKUs' operation. */
public class ImageReference {
The publisher of the Azure Virtual Machines Marketplace image. For example, Canonical or MicrosoftWindowsServer.
/** * The publisher of the Azure Virtual Machines Marketplace image. * For example, Canonical or MicrosoftWindowsServer. */
@JsonProperty(value = "publisher") private String publisher;
The offer type of the Azure Virtual Machines Marketplace image. For example, UbuntuServer or WindowsServer.
/** * The offer type of the Azure Virtual Machines Marketplace image. * For example, UbuntuServer or WindowsServer. */
@JsonProperty(value = "offer") private String offer;
The SKU of the Azure Virtual Machines Marketplace image. For example, 18.04-LTS or 2019-Datacenter.
/** * The SKU of the Azure Virtual Machines Marketplace image. * For example, 18.04-LTS or 2019-Datacenter. */
@JsonProperty(value = "sku") private String sku;
The version of the Azure Virtual Machines Marketplace image. A value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'.
/** * The version of the Azure Virtual Machines Marketplace image. * A value of 'latest' can be specified to select the latest version of an * image. If omitted, the default is 'latest'. */
@JsonProperty(value = "version") private String version;
The ARM resource identifier of the Shared Image Gallery Image. Compute Nodes in the Pool will be created using this Image Id. This is of the form /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}. This property is mutually exclusive with other properties. The Shared Image Gallery image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration.
/** * The ARM resource identifier of the Shared Image Gallery Image. Compute * Nodes in the Pool will be created using this Image Id. This is of the * form * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/images/{imageDefinitionName}/versions/{versionId}. * This property is mutually exclusive with other properties. The Shared * Image Gallery image must have replicas in the same region as the Azure * Batch account. For information about the firewall settings for the Batch * node agent to communicate with the Batch service see * https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. */
@JsonProperty(value = "id") private String id;
Get for example, Canonical or MicrosoftWindowsServer.
Returns:the publisher value
/** * Get for example, Canonical or MicrosoftWindowsServer. * * @return the publisher value */
public String publisher() { return this.publisher; }
Set for example, Canonical or MicrosoftWindowsServer.
Params:
  • publisher – the publisher value to set
Returns:the ImageReference object itself.
/** * Set for example, Canonical or MicrosoftWindowsServer. * * @param publisher the publisher value to set * @return the ImageReference object itself. */
public ImageReference withPublisher(String publisher) { this.publisher = publisher; return this; }
Get for example, UbuntuServer or WindowsServer.
Returns:the offer value
/** * Get for example, UbuntuServer or WindowsServer. * * @return the offer value */
public String offer() { return this.offer; }
Set for example, UbuntuServer or WindowsServer.
Params:
  • offer – the offer value to set
Returns:the ImageReference object itself.
/** * Set for example, UbuntuServer or WindowsServer. * * @param offer the offer value to set * @return the ImageReference object itself. */
public ImageReference withOffer(String offer) { this.offer = offer; return this; }
Get for example, 18.04-LTS or 2019-Datacenter.
Returns:the sku value
/** * Get for example, 18.04-LTS or 2019-Datacenter. * * @return the sku value */
public String sku() { return this.sku; }
Set for example, 18.04-LTS or 2019-Datacenter.
Params:
  • sku – the sku value to set
Returns:the ImageReference object itself.
/** * Set for example, 18.04-LTS or 2019-Datacenter. * * @param sku the sku value to set * @return the ImageReference object itself. */
public ImageReference withSku(String sku) { this.sku = sku; return this; }
Get a value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'.
Returns:the version value
/** * Get a value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'. * * @return the version value */
public String version() { return this.version; }
Set a value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'.
Params:
  • version – the version value to set
Returns:the ImageReference object itself.
/** * Set a value of 'latest' can be specified to select the latest version of an image. If omitted, the default is 'latest'. * * @param version the version value to set * @return the ImageReference object itself. */
public ImageReference withVersion(String version) { this.version = version; return this; }
Get this property is mutually exclusive with other properties. The Shared Image Gallery image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration.
Returns:the id value
/** * Get this property is mutually exclusive with other properties. The Shared Image Gallery image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. * * @return the id value */
public String id() { return this.id; }
Set this property is mutually exclusive with other properties. The Shared Image Gallery image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration.
Params:
  • id – the id value to set
Returns:the ImageReference object itself.
/** * Set this property is mutually exclusive with other properties. The Shared Image Gallery image must have replicas in the same region as the Azure Batch account. For information about the firewall settings for the Batch node agent to communicate with the Batch service see https://docs.microsoft.com/en-us/azure/batch/batch-api-basics#virtual-network-vnet-and-firewall-configuration. * * @param id the id value to set * @return the ImageReference object itself. */
public ImageReference withId(String id) { this.id = id; return this; } }