ApplicationPackageReference Class

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

public class ApplicationPackageReference

A reference to an Package to be deployed to Compute Nodes.

Constructor Summary

Constructor Description
ApplicationPackageReference()

Method Summary

Modifier and Type Method and 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.

Methods inherited from java.lang.Object

Constructor Details

ApplicationPackageReference

public ApplicationPackageReference()

Method Details

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

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

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.

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.

Applies to