ServiceArtifactReference Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.ServiceArtifactReference

public class ServiceArtifactReference

Specifies the service artifact reference id used to set same image version for all virtual machines in the scale set when using 'latest' image version.

Constructor Summary

Constructor Description
ServiceArtifactReference()

Method Summary

Modifier and Type Method and Description
String id()

Get the service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}.

ServiceArtifactReference withId(String id)

Set the service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}.

Methods inherited from java.lang.Object

Constructor Details

ServiceArtifactReference

public ServiceArtifactReference()

Method Details

id

public String id()

Get the service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}.

Returns:

the id value

withId

public ServiceArtifactReference withId(String id)

Set the service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}.

Parameters:

id - the id value to set

Returns:

the ServiceArtifactReference object itself.

Applies to