ApplicationPackageReference Class

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

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.

ApplicationPackageReference withApplicationId(String applicationId)

Set the applicationId value.

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.

Method Details

applicationId

public String applicationId()

Get the applicationId value.

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 the applicationId value.

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