ApplicationPackageReference Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. ApplicationPackageReference
- com.
public class ApplicationPackageReference
A reference to an application package to be deployed to compute nodes.
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
applicationId()
Get the applicationId value. |
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. |
Application |
withApplicationId(String applicationId)
Set the applicationId value. |
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 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. |
Method Details
applicationId
public String applicationId()
Get the applicationId value.
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 the applicationId value.
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