Class ServiceArtifactReference

java.lang.Object
com.azure.resourcemanager.batch.models.ServiceArtifactReference

public final class ServiceArtifactReference extends Object
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

    Constructors
    Constructor
    Description
    Creates an instance of ServiceArtifactReference class.
  • Method Summary

    Modifier and Type
    Method
    Description
    id()
    Get the id property: The service artifact reference id of ServiceArtifactReference The service artifact reference id in the form of /subscriptions/{subscriptionId}/resourceGroups/{resourceGroup}/providers/Microsoft.Compute/galleries/{galleryName}/serviceArtifacts/{serviceArtifactName}/vmArtifactsProfiles/{vmArtifactsProfilesName}.
    void
    Validates the instance.
    Set the id property: The service artifact reference id of ServiceArtifactReference 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 class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ServiceArtifactReference

      public ServiceArtifactReference()
      Creates an instance of ServiceArtifactReference class.
  • Method Details

    • id

      public String id()
      Get the id property: The service artifact reference id of ServiceArtifactReference 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 id property: The service artifact reference id of ServiceArtifactReference 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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.