ApplicationPackageReference Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. ApplicationPackageReference
- com.
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/{subscription |
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 Invalid |
Application |
withApplicationId(String applicationId)
Set when creating a pool, the package's application ID must be fully qualified (/subscriptions/{subscription |
Application |
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 Invalid |
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:
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:
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:
Returns:
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:
Returns:
Applies to
Azure SDK for Java