Class ApplicationPackageReference


  • public class ApplicationPackageReference
    extends Object
    A reference to an Package to be deployed to Compute Nodes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      String applicationId()
      Get when creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}).
      String version()
      Get if this is omitted on a Pool, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences and HTTP status code 409.
      ApplicationPackageReference withApplicationId​(String applicationId)
      Set when creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}).
      ApplicationPackageReference withVersion​(String version)
      Set if this is omitted on a Pool, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences and HTTP status code 409.
    • Constructor Detail

      • ApplicationPackageReference

        public ApplicationPackageReference()
    • Method Detail

      • applicationId

        public String applicationId()
        Get when creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}).
        Returns:
        the applicationId value
      • withApplicationId

        public ApplicationPackageReference withApplicationId​(String applicationId)
        Set when creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationName}).
        Parameters:
        applicationId - the applicationId value to set
        Returns:
        the ApplicationPackageReference object itself.
      • version

        public String version()
        Get if this is omitted on a Pool, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences and HTTP status code 409. If this is omitted on a Task, and no default version is specified for this application, the Task fails with a pre-processing error.
        Returns:
        the version value
      • withVersion

        public ApplicationPackageReference withVersion​(String version)
        Set if this is omitted on a Pool, and no default version is specified for this application, the request fails with the error code InvalidApplicationPackageReferences and HTTP status code 409. If this is omitted on a Task, and no default version is specified for this application, the Task fails with a pre-processing error.
        Parameters:
        version - the version value to set
        Returns:
        the ApplicationPackageReference object itself.