Class ImageReference
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionid()
Get the id property: The ARM resource identifier of the Shared Image Gallery Image.offer()
Get the offer property: The offer type of the Azure Virtual Machines Marketplace image.Get the publisher property: The publisher of the Azure Virtual Machines Marketplace image.sku()
Get the sku property: The SKU of the Azure Virtual Machines Marketplace image.void
validate()
Validates the instance.version()
Get the version property: The version of the Azure Virtual Machines Marketplace image.Set the id property: The ARM resource identifier of the Shared Image Gallery Image.Set the offer property: The offer type of the Azure Virtual Machines Marketplace image.withPublisher
(String publisher) Set the publisher property: The publisher of the Azure Virtual Machines Marketplace image.Set the sku property: The SKU of the Azure Virtual Machines Marketplace image.withVersion
(String version) Set the version property: The version of the Azure Virtual Machines Marketplace image.
-
Constructor Details
-
ImageReference
public ImageReference()Creates an instance of ImageReference class.
-
-
Method Details
-
publisher
Get the publisher property: The publisher of the Azure Virtual Machines Marketplace image.For example, Canonical or MicrosoftWindowsServer.
- Returns:
- the publisher value.
-
withPublisher
Set the publisher property: The publisher of the Azure Virtual Machines Marketplace image.For example, Canonical or MicrosoftWindowsServer.
- Parameters:
publisher
- the publisher value to set.- Returns:
- the ImageReference object itself.
-
offer
Get the offer property: The offer type of the Azure Virtual Machines Marketplace image.For example, UbuntuServer or WindowsServer.
- Returns:
- the offer value.
-
withOffer
Set the offer property: The offer type of the Azure Virtual Machines Marketplace image.For example, UbuntuServer or WindowsServer.
- Parameters:
offer
- the offer value to set.- Returns:
- the ImageReference object itself.
-
sku
Get the sku property: The SKU of the Azure Virtual Machines Marketplace image.For example, 18.04-LTS or 2022-datacenter.
- Returns:
- the sku value.
-
withSku
Set the sku property: The SKU of the Azure Virtual Machines Marketplace image.For example, 18.04-LTS or 2022-datacenter.
- Parameters:
sku
- the sku value to set.- Returns:
- the ImageReference object itself.
-
version
Get the version property: 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'.
- Returns:
- the version value.
-
withVersion
Set the version property: 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'.
- Parameters:
version
- the version value to set.- Returns:
- the ImageReference object itself.
-
id
Get the id property: 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.
- Returns:
- the id value.
-
withId
Set the id property: 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.
- Parameters:
id
- the id value to set.- Returns:
- the ImageReference object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-